// https://syzkaller.appspot.com/bug?id=71d19ff127410a28ebb96c74e20dcc5dd0476fb8 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_socket #define __NR_socket 359 #endif #ifndef __NR_sendmsg #define __NR_sendmsg 370 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 long r[1]; void loop() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0xfff000, 3, 0x32, -1, 0); r[0] = syscall(__NR_socket, 0x10, 3, 0x10); *(uint32_t*)0x20b3dfc8 = 0x20d49ff4; *(uint32_t*)0x20b3dfcc = 0xc; *(uint32_t*)0x20b3dfd0 = 0x20007000; *(uint32_t*)0x20b3dfd4 = 1; *(uint32_t*)0x20b3dfd8 = 0; *(uint32_t*)0x20b3dfdc = 0; *(uint32_t*)0x20b3dfe0 = 0; *(uint16_t*)0x20d49ff4 = 0x10; *(uint16_t*)0x20d49ff6 = 0; *(uint32_t*)0x20d49ff8 = 0; *(uint32_t*)0x20d49ffc = 0; *(uint32_t*)0x20007000 = 0x20f7bea4; *(uint32_t*)0x20007004 = 0x24; *(uint32_t*)0x20f7bea4 = 0x24; *(uint16_t*)0x20f7bea8 = 0x1c; *(uint16_t*)0x20f7beaa = 0x109; *(uint32_t*)0x20f7beac = 0; *(uint32_t*)0x20f7beb0 = 0; *(uint8_t*)0x20f7beb4 = 4; *(uint8_t*)0x20f7beb5 = 0; *(uint16_t*)0x20f7beb6 = 0; *(uint16_t*)0x20f7beb8 = 0x10; *(uint16_t*)0x20f7beba = 9; *(uint16_t*)0x20f7bebc = 0xc; *(uint16_t*)0x20f7bebe = 0; *(uint32_t*)0x20f7bec4 = 0; syscall(__NR_sendmsg, r[0], 0x20b3dfc8, 0); } int main() { loop(); return 0; }