| // general protection fault in nfnetlink_parse_nat_setup |
| // https://syzkaller.appspot.com/bug?id=7fed6d584f10a3e20118193cefa19346940df6e6 |
| // status:open |
| // autogenerated by syzkaller (https://github.com/google/syzkaller) |
| |
| #define _GNU_SOURCE |
| |
| #include <endian.h> |
| #include <stdint.h> |
| #include <stdio.h> |
| #include <stdlib.h> |
| #include <string.h> |
| #include <sys/syscall.h> |
| #include <sys/types.h> |
| #include <unistd.h> |
| |
| uint64_t r[1] = {0xffffffffffffffff}; |
| |
| int main(void) |
| { |
| syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0); |
| intptr_t res = 0; |
| res = syscall(__NR_socket, 0x10ul, 3ul, 0xcul); |
| if (res != -1) |
| r[0] = res; |
| *(uint64_t*)0x20000280 = 0; |
| *(uint32_t*)0x20000288 = 0; |
| *(uint64_t*)0x20000290 = 0x20000240; |
| *(uint64_t*)0x20000240 = 0x20000100; |
| memcpy((void*)0x20000100, |
| "\x68\x00\x00\x00\x00\x01\x19\x05\x00\x00\x87\xe1\x74\x8d\x49\xe1\xcc" |
| "\x58\x00\x00\x24\x00\x01\x00\x14\x00\x01\x00\x08\x00\x01\x00\xff\xff" |
| "\xff\xff\x08\x00\x02\x00\xac\x2c\x00\x01\x0c\x00\x02\x00\x05\x00\x01" |
| "\x00\x00\x00\x00\x00\x24\x00\x02\x00\x0c\x00\x02\x00\x05\x00\x01\x00" |
| "\x00\x00\x00\x00\x14\x00\x01\x00\x08\x00\x01\x00\xac\x14\x14\x00\x08" |
| "\x00\x02\x00\x00\x00\x00\x00\x08\x00\x07\x00\x00\x00\x00\x00\x04\x00" |
| "\x0d\x00", |
| 104); |
| *(uint64_t*)0x20000248 = 0x68; |
| *(uint64_t*)0x20000298 = 1; |
| *(uint64_t*)0x200002a0 = 0; |
| *(uint64_t*)0x200002a8 = 0; |
| *(uint32_t*)0x200002b0 = 0; |
| syscall(__NR_sendmsg, r[0], 0x20000280ul, 0ul); |
| return 0; |
| } |