// https://syzkaller.appspot.com/bug?id=004b0f7b61d4901cbfecfc33de7996e8cbe0a278 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 0x2b, 1, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20000180 = 0x20000000; *(uint16_t*)0x20000000 = 0x10; *(uint16_t*)0x20000002 = 0; *(uint32_t*)0x20000004 = 0; *(uint32_t*)0x20000008 = 0x22000040; *(uint32_t*)0x20000188 = 0xc; *(uint64_t*)0x20000190 = 0x20000140; *(uint64_t*)0x20000140 = 0x20000100; *(uint32_t*)0x20000100 = 0x30; *(uint16_t*)0x20000104 = 0; *(uint16_t*)0x20000106 = 0x800; *(uint32_t*)0x20000108 = 0x70bd27; *(uint32_t*)0x2000010c = 0x25dfdbfd; *(uint8_t*)0x20000110 = 1; *(uint8_t*)0x20000111 = 0; *(uint16_t*)0x20000112 = 0; *(uint16_t*)0x20000114 = 8; *(uint16_t*)0x20000116 = 4; *(uint8_t*)0x20000118 = 2; *(uint16_t*)0x2000011c = 8; *(uint16_t*)0x2000011e = 4; *(uint8_t*)0x20000120 = 2; *(uint16_t*)0x20000124 = 8; *(uint16_t*)0x20000126 = 2; *(uint8_t*)0x20000128 = 0xa; *(uint16_t*)0x2000012c = 4; *(uint16_t*)0x2000012e = 5; *(uint64_t*)0x20000148 = 0x30; *(uint64_t*)0x20000198 = 1; *(uint64_t*)0x200001a0 = 0; *(uint64_t*)0x200001a8 = 0; *(uint32_t*)0x200001b0 = 0x40000; syscall(__NR_sendmsg, r[0], 0x20000180, 0x20000005); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }