// https://syzkaller.appspot.com/bug?id=80ffd087a886df22d21a44af2c6809a5d3ff2d9b // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; res = syscall(__NR_socket, /*domain=*/0x10ul, /*type=*/3ul, /*proto=*/0); if (res != -1) r[0] = res; res = syscall(__NR_socket, /*domain=*/0x11ul, /*type=*/2ul, /*proto=*/0x300); if (res != -1) r[1] = res; memcpy((void*)0x20000080, "ip6tnl0\000\000\000\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0x8933, /*arg=*/0x20000080ul); if (res != -1) r[2] = *(uint32_t*)0x20000090; *(uint64_t*)0x200007c0 = 0; *(uint32_t*)0x200007c8 = 0; *(uint64_t*)0x200007d0 = 0x20004640; *(uint64_t*)0x20004640 = 0x20003440; *(uint32_t*)0x20003440 = 0x58; *(uint16_t*)0x20003444 = 0x24; *(uint16_t*)0x20003446 = 0xf0b; *(uint32_t*)0x20003448 = 0; *(uint32_t*)0x2000344c = 0; *(uint8_t*)0x20003450 = 0; *(uint8_t*)0x20003451 = 0; *(uint16_t*)0x20003452 = 0; *(uint32_t*)0x20003454 = r[2]; *(uint16_t*)0x20003458 = 0; *(uint16_t*)0x2000345a = 0; *(uint16_t*)0x2000345c = -1; *(uint16_t*)0x2000345e = -1; *(uint16_t*)0x20003460 = 0; *(uint16_t*)0x20003462 = 0; *(uint16_t*)0x20003464 = 0xa; *(uint16_t*)0x20003466 = 1; memcpy((void*)0x20003468, "netem\000", 6); *(uint16_t*)0x20003470 = 0x28; *(uint16_t*)0x20003472 = 2; *(uint32_t*)0x20003474 = 0; *(uint32_t*)0x20003478 = 0; *(uint32_t*)0x2000347c = 0; *(uint32_t*)0x20003480 = 0; *(uint32_t*)0x20003484 = 0; *(uint32_t*)0x20003488 = 0; *(uint16_t*)0x2000348c = 4; *(uint16_t*)0x2000348e = 0xd; *(uint16_t*)0x20003490 = 6; *(uint16_t*)0x20003492 = 2; memcpy((void*)0x20003494, "