// https://syzkaller.appspot.com/bug?id=53e94327328c1f60939402b055f41ccdcd7a559a // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[4] = {0xffffffffffffffff, 0x0, 0xffffffffffffffff, 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 = syscall(__NR_socket, 0x11ul, 0x800000003ul, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20000080 = 0x11; memcpy((void*)0x20000082, "\x00\x00\x01\x00\x00\x00\x00\x00\x08\x00\x44\x94\x4e\xeb\xa7\x1a\x49" "\x76\xe2\x52\x92\x2c\xb1\x8f\x6e\x2e\x2a\xba\x00\x00\x00\x01\x2e\x0b" "\x38\x36\x00\x54\x04\xb0\xe0\x30\x1a\x4c\xe8\x75\xf2\xe3\xff\x5f\x16" "\x3e\xe3\x40\xb7\x67\x95\x00\x80\x00\x00\x00\x00\x00\x00\x01\x01\x01" "\x3c\x58\x11\x03\x9e\x15\x77\x50\x27\xec\xce\x66\xfd\x79\x2b\xbf\x0e" "\x5b\xf5\xff\x1b\x08\x16\xf3\xf6\xdb\x1c\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x49\x74\x00\x00\x00\x00\x00\x00\x00\x06\xad\x8e\x5e\xcc\x32" "\x6d\x3a\x09\xff\xc2\xc6\x54", 126); syscall(__NR_bind, r[0], 0x20000080ul, 0x80ul); *(uint32_t*)0x20000000 = 0x14; res = syscall(__NR_getsockname, r[0], 0x200003c0ul, 0x20000000ul); if (res != -1) r[1] = *(uint32_t*)0x200003c4; res = syscall(__NR_socket, 0x10ul, 3ul, 0); if (res != -1) r[2] = res; *(uint64_t*)0x200007c0 = 0; *(uint32_t*)0x200007c8 = 0; *(uint64_t*)0x200007d0 = 0x20000780; *(uint64_t*)0x20000780 = 0x200012c0; *(uint32_t*)0x200012c0 = 0x48; *(uint16_t*)0x200012c4 = 0x24; *(uint16_t*)0x200012c6 = 0xf0b; *(uint32_t*)0x200012c8 = 0; *(uint32_t*)0x200012cc = 0; *(uint8_t*)0x200012d0 = 0; *(uint8_t*)0x200012d1 = 0; *(uint16_t*)0x200012d2 = 0; *(uint32_t*)0x200012d4 = r[1]; *(uint16_t*)0x200012d8 = 0; *(uint16_t*)0x200012da = 0; *(uint16_t*)0x200012dc = -1; *(uint16_t*)0x200012de = -1; *(uint16_t*)0x200012e0 = 0; *(uint16_t*)0x200012e2 = 0; *(uint16_t*)0x200012e4 = 0xd; *(uint16_t*)0x200012e6 = 1; memcpy((void*)0x200012e8, "fq_codel\000", 9); *(uint16_t*)0x200012f4 = 0x14; *(uint16_t*)0x200012f6 = 2; *(uint16_t*)0x200012f8 = 8; *(uint16_t*)0x200012fa = 3; *(uint32_t*)0x200012fc = 0; *(uint16_t*)0x20001300 = 8; *(uint16_t*)0x20001302 = 2; *(uint32_t*)0x20001304 = 0; *(uint64_t*)0x20000788 = 0x48; *(uint64_t*)0x200007d8 = 1; *(uint64_t*)0x200007e0 = 0; *(uint64_t*)0x200007e8 = 0; *(uint32_t*)0x200007f0 = 0; syscall(__NR_sendmsg, r[2], 0x200007c0ul, 0ul); res = syscall(__NR_socket, 0x11ul, 0x800000003ul, 0); if (res != -1) r[3] = res; memcpy((void*)0x20000000, "\xa2\xe6\xfa\x9a", 4); syscall(__NR_setsockopt, r[3], 0x107, 0xf, 0x20000000ul, 0x31cul); *(uint16_t*)0x20000080 = 0x11; memcpy((void*)0x20000082, "\x00\x00\x01\x00\x00\x00\x00\x00\x08\x00\x44\x94\x4e\xeb\xa7\x1a\x49" "\x76\xe2\x52\x92\x2c\xb1\x8f\x6e\x2e\x2a\xba\x00\x00\x00\x01\x2e\x0b" "\x38\x36\x00\x54\x04\xb0\xe0\x30\x1a\x4c\xe8\x75\xf2\xe3\xff\x5f\x16" "\x3e\xe3\x40\xb7\x67\x95\x00\x80\x00\x00\x00\x00\x00\x00\x01\x01\x01" "\x3c\x58\x11\x03\x9e\x15\x77\x50\x27\xec\xce\x66\xfd\x79\x2b\xbf\x0e" "\x5b\xf5\xff\x1b\x08\x16\xf3\xf6\xdb\x1c\x00\x01\x00\x00\x00\x00\x00" "\x00\x00\x49\x74\x00\x00\x00\x00\x00\x00\x00\x06\xad\x8e\x5e\xcc\x32" "\x6d\x3a\x09\xff\xc2\xc6\x54", 126); syscall(__NR_bind, r[3], 0x20000080ul, 0x80ul); memcpy((void*)0x20000480, "\xce\x04\x10\x01\x8b\x33\x50\xec\x00\x91\x1e\xfc\x0b\xb3\x5c\x02\x63" "\x0d\xff\xff\xa3\x28\xb4\x7c\xa8\xa8\x8a\x37\x87\x7b\x2b\x34\xe9\xff" "\x00\x00\x99\xdb\xe5\x47\xf4\x81\x70\x59\x24\xfa\xc3\x00\x00\x00\x00" "\x30\x96\x62\xbd\x84\x50\x11\x39\x9e\x97\x08\x00\xd8\x2b\x33\x0a\x7d" "\xa6\xd0\xed\xc5\x42\xcf\xf0\xc2\xd1\xe3\x27\xfb\x13\x28\x80\xf7\x0f" "\x9e\xa0\xee\xd8\x61\xc0\x35\x97\x19\x77\x1a\xaf\x54\xcf\x13\x2c\x4a" "\x68\x4a\x66\x9b\x62\x00\x00\x00\x00\x3c\xb4\xf1\x0e\x6f\xb6\xe9\x31" "\x41\x28\x76\x55\x1a\x46\xb4\xa0\xbd\x9d\x70\x73\x8b\x72\xdb\xc7\xdb" "\xae\xbf\xf1\xe0\xbb\xfd\x5f\xd1\x59\xc5\x49\xb5\xd3\x29\x84\x04\xb0" "\x6a\xb5\x99\xd9\x48\xfa\x87\x1b\xde\x41\x38\xdd\xfc\x42\x56\xdf\xa3" "\x67\x43\xb3\xc5\x08\x63\x2b\xef\x45\x31\x34\x6d\x82\xa2\x8b\xa3\x61" "\x2a\x9e\x26\x09\x5a\x14\x9b\xdb\xc9\xa8\x13\x6b\xc1\x41\xec\x1e\xb7" "\x93\x8d\x6d\xb2\xe8\x1e\xe8\xd6\x5c\x2c\xe5\x25\xbd\xf3\x96\x33\xfa" "\xca\x0a\x5f\x5a\x1e\xcc\x6e\x86\x23\x01\x4f\xe4\xc5\xbe\x6b\x7d\xdc" "\xbb\x48\x74\x48\xc2\xa1\x89\x88\x18\x9e\xb6\x3e\x7b\x1f\x6d\x52\x8b" "\x55\x02\x89\xe5\xdf\x10\xd7\x26\x4c\x1d\xae\xed\x70\x0b\x83\xd0\x0e" "\x32\xad\x86\xc6\xfb\x43\x30\xf4\x89\x19\xce\x5d\x26\xb7\x3b\x60\xa6" "\x59\x0b\x84\x54\x87\xad\x41\xbf\xc5\xa3\xb6\x40\x01\xa7\xbf\x41\xc8" "\x51\x02\xf5\x51\xa8\x9d\x99\xca\x7a\xc1\xde\xcb\x23\x02\x17\xd9\x70" "\x8a\x97\xe9\xc4\xca\xa4\x5d\x74\x85\x18\xb1\x88\x5f\x0c\xfe\x8e\x1b" "\xfc\x70\xbc\xec\xc2\x13\x57\xa1\x61\x6e\x91\xc5\x16\x49\xd4\x3a\xa4" "\x12\xda\xfb\x22\x85\xb7\x91\x74\x2a\x6c\x18\xd6\x57\x7b\xf8\x59\xbe" "\x80\xf6\xb2\xb6\x34\xa5\x22\xab\xe5\x7a\x86\xda\x8a\x45\x3c\xfe\xf6" "\xf0\xe4\x11\x40\x59\x6c\x46\x8f\x1f\x46\xb3\xbe\x2f\xe9\xbc\x70\xe7" "\xf5\x17\xe1\x9b\x95\x55\x50\xa6\xdb\x8a\x19\x95\x7e\x19\xcc\xfe\x9c" "\x84\x51\x37\xcf\x26\x73\xb2\x62\x18\x9f\x32\x3a\x1e\xe9\x97\x75\x27" "\x79\x51\x1b\xc4\xc5\xe1\xfa\xd6\x21\x6d\x9e\xf8\xac\xa5\xe9\xa3\x45" "\x84\x5b\x95\xbc\xb7\xbb\x90\x60\x27\x10\xbd\xd3\x8b\x21\xdf\x98\x98" "\xf0\x8a\x67\x6f\x85\xfc\x0f\x3c\xf8\x6e\x01\x8c", 488); syscall(__NR_sendto, r[3], 0x20000480ul, 0x1e8ul, 0ul, 0ul, 0ul); return 0; }