// https://syzkaller.appspot.com/bug?id=8593724cce469c9898b7fbc49f48f4943fee940f // 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 uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; *(uint32_t*)0x202a0fb8 = 3; *(uint32_t*)0x202a0fbc = 4; *(uint64_t*)0x202a0fc0 = 0x200004c0; memcpy( (void*)0x200004c0, "\x85\x00\x00\x00\x4f\x00\x00\x00\x35\x00\x00\x00\x00\x00\x00\x00\x85\x00" "\x00\x00\x05\x00\x00\x00\x95\x00\x00\x00\x00\x00\x00\x00\xf4\x67\x08\x80" "\x27\x1e\x35\x5a\x93\x26\x82\x03\x20\x0f\xfa\x95\xa2\xc8\xc0\x37\xc5\xa1" "\x42\xdf\xa8\xba\x62\x87\x06\x6c\x51\x97\xfa\xbd\x5f\x70\x10\xe8\x1a\xe0" "\xb7\x37\x12\x6e\xa6\xf7\xdc\x39\xcd\x34\x01\x01\x00\x00\x00\x00\x00\x00" "\xe2\x2f\xf5\xdd\xe5\x47\x04\xd2\x5c\x79\x94\x9c\x23\xe2\xeb\x15\x55\xa2" "\x35\x0e\xa7\xc0\x9c\xc2\x8d\xe1\x94\xf4\x48\x00\x00\x00\x00\xb0\xd3\x71" "\x2c\x7e\x93\x36\x3a\xf3\xc0\x75\xff\x1e\x23\x16\x01\x04\xd9\x54\x33\xb3" "\xd6\x34\x06\x5b\xcc\xba\xa2\xbb\x75\x5a\xf3\xd5\x76\x09\x0c\x48\x67\xa7" "\xb6\x39\x3e\x36\x6c\x63\x9e\xd5\xec\x72\x09\xd0\x31\xf4\x0f\x30\x03\x00" "\x6b\x6e\x51\xa7\xf5\x50\xaf\xc8\x52\x00\x3b\xad\x07\x42\xc6\x2f\x78\x46" "\xc7\x44\xae\x6a\xf3\xc0\x41\x43\xcc\xa8\xd9\x5c\x2c\x50\x5d\x5e\x37\x10" "\x21\x24\xd8\x5c\xec\x07\xad\x3f\x9a\x0f\x25\x8b\x09\x76\x64\xed\x72\x18" "\x8e\x09\x6d\x4c\x69\x49\xe1\xd7\x6d\x06\x7a\x99\x2d\x09\x6a\xce\x8f\x3b" "\x68\x2c\x97\x00\x02\x47\xfe\x5f\x17\xfd\x08\x00\x00\x00\x00\x00\x00\x00" "\x7f\x47\xef\x6d\x02\xba\x53\x6c\xda\xce\xcf\x7e\xb6\xba\xaa\x4a\x97\x79" "\xf8\x55\x5e\xae\xa7\x68\xc1\xf2\xc2\x21\xc1\x10\xef\x05\x00\x00\x00\x0e" "\xe2\x82\xab\x76\xf5\x93\xd9\x28\xcf\x95\x84\x01\x00\x27\x7c\x04\xb8\xc5" "\x32\x48\x12\x69\x6a\x62\xd9\x92\xa4\xf8\xdc\x8d\xcb\xa0\x0b\x1b\x2d\x25" "\x47\xc4\x09\x00\x52\x08\x7b\x5e\xfa\xbf\x84\x96\xb9\xa9\x51\x66\xbd\x00" "\x8e\xa0\x32\x7b\x56\xc0\xeb\xfb\x19\xa3\x42\x68\x33\x56\x48\xe1\xf8\x44" "\xce\x32\x8c\xdc\xa5\x2f\xb9\x8c\x14\x52\xb6\x51\xeb\xf9\x42\xf7\x29\x7f" "\x7b\x27\x44\x41\x9a\x2f\x23\x8f\x17\x3d\x0c\xd4\x6d\xaf\xc6\xe9\x55\x00" "\xf5\x3e\x53\x5d\xcd\x91\xd8\x3c\xf4\xfb\xd7\x75\xd9\xc0\x7d\x59\x10\x19" "\x49\xf8\x98\x2b\x6c\xe6\x29\xc0\xb2\x00\x00\x00\x00\x00\x00\x00\x00\xcc" "\xb6\x04\x87\x76\x25\x40\x67\x90\x74\x9e\x1a\xec\x3b\xf9\xf1\x04\xa0\x6c" "\x1e\x9c\x70\xc3\xcb\x5a\xd2\xe3\xc4\xaa\x11\xce\x98\x6e\x52\x16\x64\x68" "\x0b\x25\x7b\xb1\x38\xae\xf7\xc0\x8d\x3b\xed\x6a\xc5\xb0\xb2\x09\xa5\xfb" "\x71\xfd\x84\xb8\x06\xed\xf5\x96\xf3\x13\x11\x24\xe7\x24\x0a\x5b\xba\x1c" "\x07\x83\x7c\x4b\x87\x18\x59\x66\x5f\x2f\x1d\xa9\xa3\x5f\xed\xd7\xf7\x42" "\xce\x81\x89\xfc\xb7\xfc\xef\x31\x5c\xa9\xc7\x5e\xa2\x7e\x8b\xe8\xd1\xc0" "\x34\x95\x9d\x4c\x1e\xe6\x61\xe2\x14\xfd\xff\x62\x5f\xee\x83\x70\x94\x5f" "\x1a\x19\x56\xf2\x7f\x5d\xef\xe8\x32\xf8\x4d\xa8\x8f\xb2\xd7\x9f\xbc\xb7" "\xc4\x22\xba\x41\xae\x32\xab\x91\xec\x87\xde\xa5\x7f\x52\x2f\xdb\x4d\xfa" "\x72\x59\xfc\x60\xaa\xef\x47\x5d\xcc\x50\x27\xfb\xdb\xff\x20\x6c\xde\x62" "\xec\x2b\x72\x2d\xed\x82\xc6\x74\x19\x2d\xf1\xd2\xd0\x58\x2d\xde\x5b\x05" "\xdc\xd4\xb2\xb1\x96\x07\x99\x56\x3e\x2b\x63\x0e\x06\x2c\x0e\xbc\xcb\xa2" "\xc2\x0f\xa1\xb6\xd9\xf8\x2c\x27\x78\x29\xdd\x86\xe5\x60\xdf\xd3\x98\x8c" "\x11\x68\xd8\xd5\xfe\x51\xbd\xe1\x73\x57\xd1\x7e\x4f\x4c\x00\x00\x00\x00" "\x00\x00", 704); *(uint64_t*)0x202a0fc8 = 0x20000140; memcpy((void*)0x20000140, "GPL\000", 4); *(uint32_t*)0x202a0fd0 = 0; *(uint32_t*)0x202a0fd4 = 0xe0; *(uint64_t*)0x202a0fd8 = 0x20000180; *(uint32_t*)0x202a0fe0 = 0; *(uint32_t*)0x202a0fe4 = 0; memset((void*)0x202a0fe8, 0, 16); *(uint32_t*)0x202a0ff8 = 0; *(uint32_t*)0x202a0ffc = 0; *(uint32_t*)0x202a1000 = -1; *(uint32_t*)0x202a1004 = 8; *(uint64_t*)0x202a1008 = 0; *(uint32_t*)0x202a1010 = 0; *(uint32_t*)0x202a1014 = 0x10; *(uint64_t*)0x202a1018 = 0; *(uint32_t*)0x202a1020 = 0xfffffc1a; *(uint32_t*)0x202a1024 = 0; *(uint32_t*)0x202a1028 = -1; *(uint32_t*)0x202a102c = 0; *(uint64_t*)0x202a1030 = 0; res = syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x202a0fb8ul, /*size=*/0x15ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000440 = r[0]; *(uint32_t*)0x20000444 = 0xfffff000; *(uint32_t*)0x20000448 = 0xe; *(uint32_t*)0x2000044c = 0; *(uint64_t*)0x20000450 = 0x200000c0; memcpy((void*)0x200000c0, "\x61\xdf\x71\x2b\xc8\x84\xfe\xd5\x72\x27\x80\xb6\xc2\xa7", 14); *(uint64_t*)0x20000458 = 0; *(uint32_t*)0x20000460 = 0x8000; *(uint32_t*)0x20000464 = 0; *(uint32_t*)0x20000468 = 0; *(uint32_t*)0x2000046c = 0; *(uint64_t*)0x20000470 = 0x20000000; *(uint64_t*)0x20000478 = 0x20000000; *(uint32_t*)0x20000480 = 0; *(uint32_t*)0x20000484 = 0; syscall(__NR_bpf, /*cmd=*/0xaul, /*arg=*/0x20000440ul, /*size=*/0x28ul); return 0; }