// https://syzkaller.appspot.com/bug?id=6cbcbbb87ad94d599839bc99d9aa3a737aed4818 // 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, 2, 1, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20000280 = 0x33; syscall(__NR_getsockopt, r[0], 0, 0x30, 0x20000180, 0x20000280); res = syscall(__NR_socket, 2, 3, 2); if (res != -1) r[1] = res; *(uint32_t*)0x20000080 = 0; syscall(__NR_setsockopt, r[1], 0, 0xc8, 0x20000080, 4); *(uint32_t*)0x20000000 = 0; syscall(__NR_setsockopt, r[1], 0, 5, 0x20000000, 4); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }