From ff328ed65adf1e03f2b4f6b06173ec653bfa1bd6 Mon Sep 17 00:00:00 2001 From: rsuntk Date: Thu, 12 Jun 2025 16:47:31 +0700 Subject: [PATCH] kernel: mayfix freeze and reboot issue. * When ksys_umount/sys_umount/path_umount were called, we shouldn't call path_put again. References: https://elixir.bootlin.com/linux/v4.19.325/source/fs/namespace.c#L1671 https://elixir.bootlin.com/linux/v5.15.185/source/fs/namespace.c#L1759 Reported-by: NVG-064 Signed-off-by: rsuntk --- kernel/core_hook.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 019ae4ef..d55e11ca 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -1042,7 +1042,6 @@ static void ksu_try_umount(const char *mnt, bool check_mnt, int flags) #else ksu_sys_umount(mnt, flags); #endif - path_put(&path); } #ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT