// https://syzkaller.appspot.com/bug?id=41872265f1e3e0489eb0cc8762f8d48b3667afdb // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_connect #define __NR_connect 362 #endif #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_sendmmsg #define __NR_sendmmsg 345 #endif #ifndef __NR_socket #define __NR_socket 359 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x21, 2, 2); if (res != -1) r[0] = res; *(uint16_t*)0x20000040 = 0x21; *(uint16_t*)0x20000042 = 0; *(uint16_t*)0x20000044 = 2; *(uint16_t*)0x20000046 = 0x1c; *(uint16_t*)0x20000048 = 0xa; *(uint16_t*)0x2000004a = htobe16(0x4e22); *(uint32_t*)0x2000004c = htobe32(0x80000001); *(uint8_t*)0x20000050 = 0; *(uint8_t*)0x20000051 = 0; *(uint8_t*)0x20000052 = 0; *(uint8_t*)0x20000053 = 0; *(uint8_t*)0x20000054 = 0; *(uint8_t*)0x20000055 = 0; *(uint8_t*)0x20000056 = 0; *(uint8_t*)0x20000057 = 0; *(uint8_t*)0x20000058 = 0; *(uint8_t*)0x20000059 = 0; *(uint8_t*)0x2000005a = -1; *(uint8_t*)0x2000005b = -1; *(uint8_t*)0x2000005c = 0xac; *(uint8_t*)0x2000005d = 0x14; *(uint8_t*)0x2000005e = 0x14; *(uint8_t*)0x2000005f = 0xaa; *(uint32_t*)0x20000060 = 0xaa3b; syscall(__NR_connect, (long)r[0], 0x20000040, 0x24); *(uint32_t*)0x20005c00 = 0; *(uint32_t*)0x20005c04 = 0; *(uint32_t*)0x20005c08 = 0; *(uint32_t*)0x20005c0c = 0; *(uint32_t*)0x20005c10 = 0x20000000; *(uint32_t*)0x20000000 = 0x10; *(uint32_t*)0x20000004 = 0x110; *(uint32_t*)0x20000008 = 1; *(uint32_t*)0x20005c14 = 0x10; *(uint32_t*)0x20005c18 = 0; *(uint32_t*)0x20005c1c = 0; syscall(__NR_sendmmsg, (long)r[0], 0x20005c00, 1, 0); return 0; }