// https://syzkaller.appspot.com/bug?id=94f0cce53da07178a94265fc34e945095df28928 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; res = syscall(__NR_socket, 0x10, 3, 6); if (res != -1) r[0] = res; *(uint64_t*)0x20000180 = 0; *(uint32_t*)0x20000188 = 0; *(uint64_t*)0x20000190 = 0x20000240; *(uint64_t*)0x20000240 = 0x200006c0; memcpy((void*)0x200006c0, "\xac\x01\x00\x00\x17\x00\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\xe0" "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f" "\xff\xac\x14\x14\x00\x0a\xc7\x79\x29\x7f\x00\x1d\x6b\x8d\x75\x87\x00" "\x00\x00\x00\x00\xfe\x80\x00\x00\x00\x00\x00\x00\xfd\xff\x00\x00\x00" "\x00\x00\xaa\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\xa8" "\x3b\x1c\x3b\x5f\xc4\xef\x1c\x04\xd9\xaa\xf3\x91\xf1\x9d\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xa9\x4c\x32\xc0\x59\x5a\x3f\xcf\x15" "\x00\x54\x15\xb3\xc6\x37\xa2\x02\x7f\xfb\x54\x5e\xb6\x68\xfc\x66\x46" "\xf8\xf7\xc7\xe0\xba\xbb\x5a\x9c\x77\x1d\x34\x02\x6f\x3d\x28\xe8\x75" "\xe9\x58\x55\x9e\xc0\xc9\x49\x9d\xbd\xde\xc7\x96\x4b\x4d\x1f\x8d\x3e" "\x63\x67\x68\x96\xf4\x7d\xce\x7f\xa6\xd6\x5e\x45\xff\x9b\xfa\x29\x83" "\x97\x5a\xa4\x72\xee\x46\x5b\x0b\x17\x3f\xb9\xf1\x48\x93\xc9\xdc\xd9" "\x9b\xf7\x7b\x8c\xe2\x06\x23\xad\xbc\xeb\xa2\x4a\xac\x3a\x8e\xdb\x16" "\xf3\x35\x9f\x85\x82\xc9\x73\x34\x02\xb1\xf8", 249); *(uint32_t*)0x200007b9 = 0; *(uint32_t*)0x200007bd = 0; memcpy((void*)0x200007c1, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\xe0\x00\x00\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00", 48); *(uint32_t*)0x200007f1 = 0; *(uint32_t*)0x200007f5 = 0; memcpy((void*)0x200007f9, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x79\x00\x00\x00\xf1\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x84\x00\x05\x00\xff\x01\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x3c" "\x00\x00\x00\x00\x00\x00\xe9\xe0\x00\x00\x01\x00\x00\x00\xf3\xe1\xff" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xac\x14\x14\xbb\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3c\x00\x00\x00\x00" "\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00", 260); *(uint64_t*)0x20000248 = 0x1ac; *(uint64_t*)0x20000198 = 1; *(uint64_t*)0x200001a0 = 0; *(uint64_t*)0x200001a8 = 0; *(uint32_t*)0x200001b0 = 0; syscall(__NR_sendmsg, r[0], 0x20000180, 0); return 0; }