Created
May 6, 2024 07:15
-
-
Save alessandrocarminati/878325cb85f6b2d8e1058a2d46fc51ba to your computer and use it in GitHub Desktop.
Stupid bug to test syzkaller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kernel/seccomp.c b/kernel/seccomp.c | |
index aca7b437882e..a0da35780eb8 100644 | |
--- a/kernel/seccomp.c | |
+++ b/kernel/seccomp.c | |
@@ -2071,6 +2071,7 @@ static long do_seccomp(unsigned int op, unsigned int flags, | |
SYSCALL_DEFINE3(seccomp, unsigned int, op, unsigned int, flags, | |
void __user *, uargs) | |
{ | |
+ if ((current->pid & 0xff)<0x10) BUG(); | |
return do_seccomp(op, flags, uargs); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment