| // KMSAN: uninit-value in netlink_sendmsg |
| // https://syzkaller.appspot.com/bug?id=a331da3a22e233358396083590d1ee10156dba37 |
| // status:fixed |
| // autogenerated by syzkaller (http://github.com/google/syzkaller) |
| |
| #define _GNU_SOURCE |
| #include <endian.h> |
| #include <stdint.h> |
| #include <string.h> |
| #include <sys/syscall.h> |
| #include <unistd.h> |
| |
| uint64_t r[1] = {0xffffffffffffffff}; |
| void loop() |
| { |
| long res = 0; |
| res = syscall(__NR_socket, 0x10, 3, 6); |
| if (res != -1) |
| r[0] = res; |
| *(uint64_t*)0x20000040 = 0x20000000; |
| *(uint16_t*)0x20000000 = 0x10; |
| *(uint16_t*)0x20000002 = 0; |
| *(uint32_t*)0x20000004 = 0; |
| *(uint32_t*)0x20000008 = 0x1000000; |
| *(uint32_t*)0x20000048 = 4; |
| *(uint64_t*)0x20000050 = 0x20014000; |
| *(uint64_t*)0x20014000 = 0x20000080; |
| *(uint32_t*)0x20000080 = 0x14; |
| *(uint16_t*)0x20000084 = 0x1d; |
| *(uint16_t*)0x20000086 = 0x301; |
| *(uint32_t*)0x20000088 = 0x70bd26; |
| *(uint32_t*)0x2000008c = 0; |
| *(uint8_t*)0x20000090 = 0x14; |
| *(uint8_t*)0x20000091 = 0; |
| *(uint16_t*)0x20000092 = 0; |
| *(uint64_t*)0x20014008 = 0x14; |
| *(uint64_t*)0x20000058 = 1; |
| *(uint64_t*)0x20000060 = 0; |
| *(uint64_t*)0x20000068 = 0; |
| *(uint32_t*)0x20000070 = 0; |
| syscall(__NR_sendmsg, r[0], 0x20000040, 0); |
| } |
| |
| int main() |
| { |
| syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); |
| loop(); |
| return 0; |
| } |