// https://syzkaller.appspot.com/bug?id=d49347605ea0d28a180a418ec8260660dd1b7496 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0x0}; void loop() { long res = 0; res = syscall(__NR_shmget, 0x798dd816, 0x1000, 0x200, 0x20ffd000); if (res != -1) r[0] = res; syscall(__NR_shmat, r[0], 0x20ffc000, 0x3000); syscall(__NR_shmctl, r[0], 0); syscall(__NR_shmctl, r[0], 0); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }