// https://syzkaller.appspot.com/bug?id=19ae75601b70ce88b70f671a4b16787eddbc7040 // 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 280 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; *(uint64_t*)0x20000000 = 0x20000040; *(uint16_t*)0x20000040 = 0xeb9f; *(uint8_t*)0x20000042 = 1; *(uint8_t*)0x20000043 = 0; *(uint32_t*)0x20000044 = 0x18; *(uint32_t*)0x20000048 = 0; *(uint32_t*)0x2000004c = 0x28; *(uint32_t*)0x20000050 = 0x28; *(uint32_t*)0x20000054 = 4; *(uint32_t*)0x20000058 = 2; *(uint16_t*)0x2000005c = 0; *(uint8_t*)0x2000005e = 0; *(uint8_t*)0x2000005f = 0x11; *(uint32_t*)0x20000060 = 3; *(uint32_t*)0x20000064 = -1; *(uint32_t*)0x20000068 = 0; *(uint16_t*)0x2000006c = 0; *(uint8_t*)0x2000006e = 0; *(uint8_t*)0x2000006f = 2; *(uint32_t*)0x20000070 = 0; *(uint32_t*)0x20000074 = 2; *(uint16_t*)0x20000078 = 0; *(uint8_t*)0x2000007a = 0; *(uint8_t*)0x2000007b = 8; *(uint32_t*)0x2000007c = 2; *(uint8_t*)0x20000080 = 0; *(uint8_t*)0x20000081 = 0; *(uint8_t*)0x20000082 = 0x61; *(uint8_t*)0x20000083 = 0; *(uint64_t*)0x20000008 = 0; *(uint32_t*)0x20000010 = 0x44; *(uint32_t*)0x20000014 = 0; *(uint32_t*)0x20000018 = 0; *(uint32_t*)0x2000001c = 0; res = syscall(__NR_bpf, /*cmd=*/0x12ul, /*arg=*/0x20000000ul, /*size=*/0x20ul); if (res != -1) r[0] = res; *(uint32_t*)0x200000c0 = 9; *(uint32_t*)0x200000c4 = 0x400; *(uint32_t*)0x200000c8 = 7; *(uint32_t*)0x200000cc = 0xf2; *(uint32_t*)0x200000d0 = 0; *(uint32_t*)0x200000d4 = -1; *(uint32_t*)0x200000d8 = 0; memset((void*)0x200000dc, 0, 16); *(uint32_t*)0x200000ec = 0; *(uint32_t*)0x200000f0 = r[0]; *(uint32_t*)0x200000f4 = 1; *(uint32_t*)0x200000f8 = 5; *(uint32_t*)0x200000fc = 0; *(uint64_t*)0x20000100 = 0; syscall(__NR_bpf, /*cmd=*/0ul, /*arg=*/0x200000c0ul, /*size=*/0x48ul); return 0; }