// https://syzkaller.appspot.com/bug?id=d27f4f2d01ecc757131a6559a1d3aa50f3d10075 // 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, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; *(uint32_t*)0x20000200 = 0xc; *(uint32_t*)0x20000204 = 0xe; *(uint64_t*)0x20000208 = 0x20000480; memcpy((void*)0x20000480, "\xb7\x02\x00\x00\x18\x00\x00\x00\xbf\xa3\x00\x00\x00\x00\x00\x00\x07" "\x01\x00\x00\x00\xfe\xff\xff\x7a\x0a\xf0\xff\xf8\xff\xff\xff\x79\xa4" "\xf0\xff\x00\x00\x00\x00\xb7\x06\x00\x00\xff\xff\xff\xff\x2d\x64\x05" "\x00\x00\x00\x00\x00\x65\x04\x04\x00\x01\x00\x00\x00\x14\x04\x00\x00" "\x01\x00\x7d\x60\xb7\x03\x00\x00\x00\x00\x00\x00\x6a\x0a\x00\xfe\x00" "\x00\x00\x00\x85\x00\x00\x00\x26\x00\x00\x00\xb7\x00\x00\x00\x00\x20" "\x00\x20\x95\x00\x00\x00\x00\x00\x00\x00\xd4\x84\x19\x33\x8e\xa7\xe6" "\x39\x60\xa6\x17\x8e\x2c\xdb\x21\x96\x3b\x3b\xf5\x02\xee\xc0\xbc\x4d" "\xd4\x41\xc9\x97\x9e\xc3\x47\x2f\x1c\x0b\x06\x4f\x01\x2f\x79\xc7\x50" "\x4f\x26\x3a\x34\x90\xb3\x86\x25\xc1\xac\x0a\x10\xa1\x29\x3a\x79\x13" "\xd4\x2d\xed\xeb\xb9\x35\x24\xda\x7d\xa3\x9a\xc9\xec\x39\x5d\xe7\xbf" "\xe1\x98\xd2\x3a\xf2\x32\x5f\xd1\xf2\x58\xcc\xca\xd6\xe3\x63\x22\xb0" "\x8e\xb7\x05\x79\x68\x47\xe7\x1a\xe0\xb1\x2f\xc4\x6f\x2a\x40\x39\x3b" "\xc2\x2c\x8c\x90\xe9\xd7\x5b\x5d\x95\x6f\xa1", 232); *(uint64_t*)0x20000210 = 0x20000340; memcpy((void*)0x20000340, "syzkaller\000", 10); *(uint32_t*)0x20000218 = 0; *(uint32_t*)0x2000021c = 0; *(uint64_t*)0x20000220 = 0; *(uint32_t*)0x20000228 = 0; *(uint32_t*)0x2000022c = 0; *(uint8_t*)0x20000230 = 0; *(uint8_t*)0x20000231 = 0; *(uint8_t*)0x20000232 = 0; *(uint8_t*)0x20000233 = 0; *(uint8_t*)0x20000234 = 0; *(uint8_t*)0x20000235 = 0; *(uint8_t*)0x20000236 = 0; *(uint8_t*)0x20000237 = 0; *(uint8_t*)0x20000238 = 0; *(uint8_t*)0x20000239 = 0; *(uint8_t*)0x2000023a = 0; *(uint8_t*)0x2000023b = 0; *(uint8_t*)0x2000023c = 0; *(uint8_t*)0x2000023d = 0; *(uint8_t*)0x2000023e = 0; *(uint8_t*)0x2000023f = 0; *(uint32_t*)0x20000240 = 0; *(uint32_t*)0x20000244 = 0; *(uint32_t*)0x20000248 = -1; *(uint32_t*)0x2000024c = 8; *(uint64_t*)0x20000250 = 0x20000000; *(uint32_t*)0x20000000 = 0; *(uint32_t*)0x20000004 = 0; *(uint32_t*)0x20000258 = 0; *(uint32_t*)0x2000025c = 0x10; *(uint64_t*)0x20000260 = 0x20000000; *(uint32_t*)0x20000000 = 0; *(uint32_t*)0x20000004 = 0; *(uint32_t*)0x20000008 = 0; *(uint32_t*)0x2000000c = 0; *(uint32_t*)0x20000268 = 0; res = syscall(__NR_bpf, 5, 0x20000200, 0x48); if (res != -1) r[0] = res; *(uint32_t*)0x20000100 = r[0]; *(uint32_t*)0x20000104 = 0; *(uint32_t*)0x20000108 = 0xcc0; *(uint32_t*)0x2000010c = 0; *(uint64_t*)0x20000110 = 0x20000040; memcpy((void*)0x20000040, "\xb2\xc1\xd7\x10\x0c\x61\x68\xba\x76\x5f\xc9\xdb\x08\x78", 14); *(uint64_t*)0x20000118 = 0; *(uint32_t*)0x20000120 = 0x3f; *(uint32_t*)0x20000124 = 0; syscall(__NR_bpf, 0xa, 0x20000100, 0x28); return 0; }