From 301406d051d1d60037dfe868b6ac54614ed0d909 Mon Sep 17 00:00:00 2001 From: weishu Date: Thu, 22 Dec 2022 22:03:59 +0700 Subject: [PATCH] kernel: fix seccomp. it may crash in https://elixir.bootlin.com/linux/v5.10.161/source/kernel/seccomp.c#L1079 --- kernel/ksu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/ksu.c b/kernel/ksu.c index 193a342a..88a5415f 100644 --- a/kernel/ksu.c +++ b/kernel/ksu.c @@ -60,7 +60,7 @@ void escape_to_root() { #ifdef CONFIG_GENERIC_ENTRY current_thread_info()->syscall_work &= ~SYSCALL_WORK_SECCOMP; #else - current_thread_info()->flags &= ~TIF_SECCOMP; + current_thread_info()->flags &= ~(TIF_SECCOMP | SYSCALL_ENTER_WORK); #endif current->seccomp.mode = 0; current->seccomp.filter = NULL;