// https://syzkaller.appspot.com/bug?id=77d9a62c6781d69dd833adc06ead030abc367218 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 0xa, 1, 0); if (res != -1) r[0] = res; syscall(__NR_mmap, 0x2032e000, 0x2000, 0, 0x8811, r[0], 0); res = syscall(__NR_socket, 0xa, 1, 0x84); if (res != -1) r[1] = res; *(uint32_t*)0x20058000 = 1; *(uint16_t*)0x20058008 = 0xa; *(uint16_t*)0x2005800a = htobe16(0); *(uint32_t*)0x2005800c = 0; *(uint8_t*)0x20058010 = -1; *(uint8_t*)0x20058011 = 1; *(uint8_t*)0x20058012 = 0; *(uint8_t*)0x20058013 = 0; *(uint8_t*)0x20058014 = 0; *(uint8_t*)0x20058015 = 0; *(uint8_t*)0x20058016 = 0; *(uint8_t*)0x20058017 = 0; *(uint8_t*)0x20058018 = 0; *(uint8_t*)0x20058019 = 0; *(uint8_t*)0x2005801a = 0; *(uint8_t*)0x2005801b = 0; *(uint8_t*)0x2005801c = 0; *(uint8_t*)0x2005801d = 0; *(uint8_t*)0x2005801e = 0; *(uint8_t*)0x2005801f = 1; *(uint32_t*)0x20058020 = 0; syscall(__NR_setsockopt, r[1], 0x29, 0x2a, 0x20058000, 0x88); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }