// https://syzkaller.appspot.com/bug?id=74f05cd5671428da584f6f16899a350c2e3d3845 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_socket #define __NR_socket 359 #endif #ifndef __NR_setsockopt #define __NR_setsockopt 366 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 long r[1]; void loop() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0xf57000, 0x3, 0x32, 0xffffffff, 0x0); r[0] = syscall(__NR_socket, 0xa, 0x1, 0x0); memcpy((void*)0x20006000, "\x9c\x94\x80\x52\x25\x8e\x2d\x1e\x7c\xe9\x0c\x1c\xb2\x96\x61" "\xa3\x39\x5d\xda\x5e\xe1\xd3\xf1\xe4\x63\xa6\x80\xa8\xf5\x7b" "\x23\x7d\x3a\x28\xe4\xee\x6c\x0f\x78\xdb\xdb", 41); syscall(__NR_setsockopt, r[0], 0x0, 0x41, 0x20006000, 0x29); } int main() { loop(); return 0; }