Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alessandrocarminati/878325cb85f6b2d8e1058a2d46fc51ba to your computer and use it in GitHub Desktop.
Save alessandrocarminati/878325cb85f6b2d8e1058a2d46fc51ba to your computer and use it in GitHub Desktop.
Stupid bug to test syzkaller
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