// https://syzkaller.appspot.com/bug?id=924f61f6084bdb25ca671dde359fadfabe976b05 // 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; *(uint32_t*)0x20000100 = -1; *(uint16_t*)0x20000104 = 0; *(uint16_t*)0x20000106 = 0; *(uint32_t*)0x20000108 = -1; *(uint16_t*)0x2000010c = 0x4000; *(uint16_t*)0x2000010e = 0; *(uint32_t*)0x20000110 = -1; *(uint16_t*)0x20000114 = 0x5002; *(uint16_t*)0x20000116 = 0; *(uint32_t*)0x20000118 = -1; *(uint16_t*)0x2000011c = 0x110; *(uint16_t*)0x2000011e = 0; *(uint32_t*)0x20000120 = r[0]; *(uint16_t*)0x20000124 = 0x2000; *(uint16_t*)0x20000126 = 0; *(uint32_t*)0x20000128 = -1; *(uint16_t*)0x2000012c = 0x10; *(uint16_t*)0x2000012e = 0; *(uint32_t*)0x20000130 = -1; *(uint16_t*)0x20000134 = 0x200; *(uint16_t*)0x20000136 = 0; syscall(__NR_poll, 0x20000100, 7, 1); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }