// https://syzkaller.appspot.com/bug?id=527a000e3a661da4fcb29f48baab94242b3cb2fb // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_bpf #define __NR_bpf 321 #endif int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); *(uint64_t*)0x20000000 = 0x20000140; memcpy( (void*)0x20000140, "\x9f\xeb\x01\x00\x18\x00\x00\x00\x00\x00\x00\x00\x34\x00\x00\x00\x34\x00" "\x00\x00\x04\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x11\x04\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x0c" "\x08\x00\x00\x00\x00\x00\x61\x00\xf5\x9a\xed\x61\x60\x0e\x35\xe7\x31\x9a" "\x72\xde\x37\xa7\x50\xa1\x69\x9e\xde\xf6\x0a\x7d\x4e\x45\x3f\x12\x97\xac" "\x1a\x40\xf6\x5d\xf8\xd7\xb4\x20\x35\xf9\x4e\x2a\x63\x4a\x96\x60\x82\xae" "\x87\xe2\xa0\x1c\x69\x84\xb7\x80\xda\x42\x05\x55\x00\x7e\xb7\x4a\x17\x0a" "\x9e\xef\xef\x90\x64\x3a\xc4\xad\xe2\xd9\x71\x5d\xc4\xd1\x61\x3f\x53\x11" "\x16\x21\x68\x18\x37\x34\x90\x6f\x09\x2e\xcf\xa4\x7a\x45\x57\x13\x0c\x67" "\x1c\xfe\x85\x71\xf6\xe3\x72\x74\x7d\x5b\x81\xad\xd1\x62\xe0\x37\x01", 197); *(uint64_t*)0x20000008 = 0x20000040; *(uint32_t*)0x20000010 = 0x50; *(uint32_t*)0x20000014 = 0xf9; *(uint32_t*)0x20000018 = 7; syscall(__NR_bpf, 0x12ul, 0x20000000ul, 0x20ul); return 0; }