| // KMSAN: uninit-value in tipc_nl_compat_name_table_dump |
| // https://syzkaller.appspot.com/bug?id=c40c98888fb6ebdb3f66d99dfa2c1b8df9601a34 |
| // status:fixed |
| // 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, 0x20000000, 0x1000000, 3, 0x32, -1, 0); |
| long res = 0; |
| res = syscall(__NR_socket, 0x10, 3, 0x10); |
| if (res != -1) |
| r[0] = res; |
| *(uint64_t*)0x20000100 = 0x20000040; |
| *(uint16_t*)0x20000040 = 0x10; |
| *(uint16_t*)0x20000042 = 0x4000; |
| *(uint32_t*)0x20000044 = 0; |
| *(uint32_t*)0x20000048 = 0; |
| *(uint32_t*)0x20000108 = 0xc; |
| *(uint64_t*)0x20000110 = 0x20000080; |
| *(uint64_t*)0x20000080 = 0x200002c0; |
| *(uint32_t*)0x200002c0 = 0x2c; |
| *(uint16_t*)0x200002c4 = 0x29; |
| *(uint16_t*)0x200002c6 = 1; |
| *(uint32_t*)0x200002c8 = 0; |
| *(uint32_t*)0x200002cc = 0; |
| *(uint8_t*)0x200002d0 = 1; |
| *(uint8_t*)0x200002d1 = 0; |
| *(uint16_t*)0x200002d2 = 0; |
| *(uint16_t*)0x200002d4 = 0x18; |
| *(uint16_t*)0x200002d6 = 0; |
| *(uint16_t*)0x200002d8 = 5; |
| *(uint16_t*)0x200002da = 0; |
| *(uint8_t*)0x200002dc = 0; |
| *(uint8_t*)0x200002dd = 0; |
| *(uint8_t*)0x200002de = 0; |
| *(uint8_t*)0x200002df = 0x19; |
| *(uint8_t*)0x200002e0 = 0; |
| *(uint8_t*)0x200002e1 = 0; |
| *(uint8_t*)0x200002e2 = 0; |
| *(uint8_t*)0x200002e3 = 0; |
| *(uint8_t*)0x200002e4 = 0; |
| *(uint8_t*)0x200002e5 = 0; |
| *(uint8_t*)0x200002e6 = -1; |
| *(uint8_t*)0x200002e7 = -1; |
| *(uint8_t*)0x200002e8 = 0xac; |
| *(uint8_t*)0x200002e9 = 0x14; |
| *(uint8_t*)0x200002ea = 0x14; |
| *(uint8_t*)0x200002eb = 0xbb; |
| *(uint64_t*)0x20000088 = 0x2c; |
| *(uint64_t*)0x20000118 = 1; |
| *(uint64_t*)0x20000120 = 0; |
| *(uint64_t*)0x20000128 = 0; |
| *(uint32_t*)0x20000130 = 0; |
| syscall(__NR_sendmsg, r[0], 0x20000100, 0); |
| return 0; |
| } |