// https://syzkaller.appspot.com/bug?id=685e9d95fc4ea8f99eb80136422c7251f523cef4 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } res = syscall(__NR_socket, /*domain=AF_PACKET*/ 0x11ul, /*type=SOCK_PACKET*/ 0xaul, /*proto=*/0); if (res != -1) r[0] = res; memcpy((void*)0x20001040, "bond0\000\000\000\000\000\000\000\000\000\000\000", 16); syscall(__NR_setsockopt, /*fd=*/r[0], /*level=*/1, /*optname=*/0x19, /*optval=*/0x20001040ul, /*optlen=*/0x10ul); *(uint32_t*)0x20000040 = 0x1ffff; syscall(__NR_setsockopt, /*fd=*/r[0], /*level=*/1, /*optname=SO_TIMESTAMPING_OLD*/ 0x25, /*optval=*/0x20000040ul, /*optlen=*/4ul); return 0; }