kernel: Remove NULL-ing after commit_creds

* Although it works, but i suspect it causing reboot
* issue in some device, so i'll drop it

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
rsuntk
2025-06-12 09:45:48 +07:00
committed by ShirkNeko
parent a0fd27dc33
commit 8331ed2d74

View File

@@ -186,13 +186,6 @@ void escape_to_root(void)
commit_creds(cred);
// FIXME: Maybe need to remove? The tests were fine.
// reference: https://elixir.bootlin.com/linux/v5.4/source/fs/exec.c#L1456
if (cred) {
pr_info("%s: NULL-ing creds after committing..\n", __func__);
cred = NULL;
}
// Refer to kernel/seccomp.c: seccomp_set_mode_strict
// When disabling Seccomp, ensure that current->sighand->siglock is held during the operation.
spin_lock_irq(&current->sighand->siglock);