// https://syzkaller.appspot.com/bug?id=40eccf33adab0333176aac1200041f8e29dce3e9 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 0xa, 5, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20d10ffc = 0xfffffff9; syscall(__NR_setsockopt, r[0], 0, 0xf, 0x20d10ffc, 4); *(uint16_t*)0x20000140 = 2; *(uint16_t*)0x20000142 = htobe16(0x4e22); *(uint32_t*)0x20000144 = htobe32(-1); *(uint8_t*)0x20000148 = 0; *(uint8_t*)0x20000149 = 0; *(uint8_t*)0x2000014a = 0; *(uint8_t*)0x2000014b = 0; *(uint8_t*)0x2000014c = 0; *(uint8_t*)0x2000014d = 0; *(uint8_t*)0x2000014e = 0; *(uint8_t*)0x2000014f = 0; *(uint16_t*)0x20000150 = 2; *(uint16_t*)0x20000152 = htobe16(0x4e22); *(uint32_t*)0x20000154 = htobe32(-1); *(uint8_t*)0x20000158 = 0; *(uint8_t*)0x20000159 = 0; *(uint8_t*)0x2000015a = 0; *(uint8_t*)0x2000015b = 0; *(uint8_t*)0x2000015c = 0; *(uint8_t*)0x2000015d = 0; *(uint8_t*)0x2000015e = 0; *(uint8_t*)0x2000015f = 0; syscall(__NR_setsockopt, r[0], 0x84, 0x64, 0x20000140, 0x20); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }