// https://syzkaller.appspot.com/bug?id=b9b008eddc4171a496a275cca1dd0ae6495fa263 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_seccomp #define __NR_seccomp 354 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 int main(void) { syscall(__NR_mmap, 0x1ffff000, 0x1000, 0, 0x32, -1, 0); syscall(__NR_mmap, 0x20000000, 0x1000000, 7, 0x32, -1, 0); syscall(__NR_mmap, 0x21000000, 0x1000, 0, 0x32, -1, 0); *(uint16_t*)0x20000080 = 2; *(uint32_t*)0x20000084 = 0x20000040; *(uint16_t*)0x20000040 = 0x2d; *(uint8_t*)0x20000042 = 0; *(uint8_t*)0x20000043 = 0; *(uint32_t*)0x20000044 = 0; *(uint16_t*)0x20000048 = 6; *(uint8_t*)0x2000004a = 0; *(uint8_t*)0x2000004b = 0; *(uint32_t*)0x2000004c = 0x7fffff77; syscall(__NR_seccomp, 1, 0, 0x20000080); return 0; }