// 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*)0x20000080 = r[0]; *(uint16_t*)0x20000084 = 0x4000; *(uint16_t*)0x20000086 = 0; *(uint32_t*)0x20000088 = -1; *(uint16_t*)0x2000008c = 0x2000; *(uint16_t*)0x2000008e = 0; *(uint32_t*)0x20000090 = -1; *(uint16_t*)0x20000094 = 0x20; *(uint16_t*)0x20000096 = 0; *(uint32_t*)0x20000098 = -1; *(uint16_t*)0x2000009c = 0x240; *(uint16_t*)0x2000009e = 0; syscall(__NR_poll, 0x20000080, 4, 0xec); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }