// https://syzkaller.appspot.com/bug?id=386de184519616f3f653dc8b996d5a66bc63c3f9 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #define __syscall syscall uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul); intptr_t res = 0; res = syscall(SYS_socketpair, 1ul, 5ul, 0, 0x20000040ul); if (res != -1) { r[0] = *(uint32_t*)0x20000040; r[1] = *(uint32_t*)0x20000044; } syscall(SYS_shutdown, r[1], 0ul); *(uint64_t*)0x20000400 = 0; *(uint32_t*)0x20000408 = 0; *(uint64_t*)0x20000410 = 0; *(uint64_t*)0x20000418 = 0; *(uint64_t*)0x20000420 = 0x20000000; memcpy((void*)0x20000000, "\x28\x00\x00\x00\xff\xff\x00\x00\x01", 9); *(uint64_t*)0x20000428 = 9; *(uint32_t*)0x20000430 = 0; syscall(SYS_sendmsg, -1, 0x20000400ul, 0ul); *(uint64_t*)0x20000380 = 0; *(uint32_t*)0x20000388 = 0; *(uint64_t*)0x20000390 = 0; *(uint64_t*)0x20000398 = 0; *(uint64_t*)0x200003a0 = 0x20000000; *(uint64_t*)0x200003a8 = 0x28; *(uint32_t*)0x200003b0 = 0; syscall(SYS_sendmsg, r[0], 0x20000380ul, 0ul); return 0; }