// 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*)0x20000280 = 0x20000100; *(uint16_t*)0x20000100 = 0x10; *(uint16_t*)0x20000102 = 0; *(uint32_t*)0x20000104 = 0; *(uint32_t*)0x20000108 = 0x80020; *(uint32_t*)0x20000288 = 0xc; *(uint64_t*)0x20000290 = 0x20000240; *(uint64_t*)0x20000240 = 0x200001c0; *(uint32_t*)0x200001c0 = 0x58; *(uint16_t*)0x200001c4 = 0; *(uint16_t*)0x200001c6 = 0x101; *(uint32_t*)0x200001c8 = 0x70bd25; *(uint32_t*)0x200001cc = 0x25dfdbfe; *(uint8_t*)0x200001d0 = 0xb; *(uint8_t*)0x200001d1 = 0; *(uint16_t*)0x200001d2 = 0; *(uint16_t*)0x200001d4 = 8; *(uint16_t*)0x200001d6 = 6; *(uint32_t*)0x200001d8 = 6; *(uint16_t*)0x200001dc = 0x34; *(uint16_t*)0x200001de = 2; *(uint16_t*)0x200001e0 = 8; *(uint16_t*)0x200001e2 = 9; *(uint32_t*)0x200001e4 = 7; *(uint16_t*)0x200001e8 = 8; *(uint16_t*)0x200001ea = 6; *(uint32_t*)0x200001ec = 0x1f; *(uint16_t*)0x200001f0 = 8; *(uint16_t*)0x200001f2 = 2; *(uint16_t*)0x200001f4 = htobe16(0x4e21); *(uint16_t*)0x200001f8 = 8; *(uint16_t*)0x200001fa = 9; *(uint32_t*)0x200001fc = 6; *(uint16_t*)0x20000200 = 8; *(uint16_t*)0x20000202 = 0xb; *(uint16_t*)0x20000204 = 2; *(uint16_t*)0x20000208 = 8; *(uint16_t*)0x2000020a = 8; *(uint32_t*)0x2000020c = 6; *(uint16_t*)0x20000210 = 8; *(uint16_t*)0x20000212 = 5; *(uint32_t*)0x20000214 = 1; *(uint64_t*)0x20000248 = 0x58; *(uint64_t*)0x20000298 = 1; *(uint64_t*)0x200002a0 = 0; *(uint64_t*)0x200002a8 = 0; *(uint32_t*)0x200002b0 = 0x2000c880; syscall(__NR_sendmsg, r[0], 0x20000280, 0x20000000); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }