// https://syzkaller.appspot.com/bug?id=8a47019c46b0fcffca58d29c2b8edbe7f1b999f9 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include const int kInitNetNsFd = 201; static long syz_init_net_socket(volatile long domain, volatile long type, volatile long proto) { return syscall(__NR_socket, domain, type, proto); } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; res = -1; res = syz_init_net_socket(0x24, 3, 0); if (res != -1) r[0] = res; *(uint64_t*)0x200033c0 = 0; *(uint32_t*)0x200033c8 = 0; *(uint64_t*)0x200033d0 = 0; *(uint64_t*)0x200033d8 = 0; *(uint64_t*)0x200033e0 = 0; *(uint64_t*)0x200033e8 = 0; *(uint32_t*)0x200033f0 = 0; *(uint32_t*)0x200033f8 = 0; *(uint64_t*)0x20003400 = 0; *(uint32_t*)0x20003408 = 0; *(uint64_t*)0x20003410 = 0; *(uint64_t*)0x20003418 = 0; *(uint64_t*)0x20003420 = 0; *(uint64_t*)0x20003428 = 0; *(uint32_t*)0x20003430 = 0; *(uint32_t*)0x20003438 = 0; syscall(__NR_sendmmsg, r[0], 0x200033c0ul, 2ul, 0ul); return 0; }