| // KMSAN: uninit-value in __sctp_v6_cmp_addr |
| // https://syzkaller.appspot.com/bug?id=3fcb1c351dc2e9b5743f37996d163c508fc11028 |
| // 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, 0xa, 1, 0x84); |
| if (res != -1) |
| r[0] = res; |
| *(uint16_t*)0x2070ffe3 = 0xa; |
| *(uint16_t*)0x2070ffe5 = htobe16(0x4e20); |
| *(uint32_t*)0x2070ffe7 = 0; |
| *(uint8_t*)0x2070ffeb = 0; |
| *(uint8_t*)0x2070ffec = 0; |
| *(uint8_t*)0x2070ffed = 0; |
| *(uint8_t*)0x2070ffee = 0; |
| *(uint8_t*)0x2070ffef = 0; |
| *(uint8_t*)0x2070fff0 = 0; |
| *(uint8_t*)0x2070fff1 = 0; |
| *(uint8_t*)0x2070fff2 = 0; |
| *(uint8_t*)0x2070fff3 = 0; |
| *(uint8_t*)0x2070fff4 = 0; |
| *(uint8_t*)0x2070fff5 = 0; |
| *(uint8_t*)0x2070fff6 = 0; |
| *(uint8_t*)0x2070fff7 = 0; |
| *(uint8_t*)0x2070fff8 = 0; |
| *(uint8_t*)0x2070fff9 = 0; |
| *(uint8_t*)0x2070fffa = 0; |
| *(uint32_t*)0x2070fffb = 0; |
| syscall(__NR_bind, r[0], 0x2070ffe3, 0x1c); |
| *(uint32_t*)0x20000080 = 0; |
| *(uint32_t*)0x20000084 = 4; |
| *(uint32_t*)0x20000088 = 0; |
| *(uint32_t*)0x2000008c = 0; |
| syscall(__NR_setsockopt, r[0], 0x84, 0, 0x20000080, 0x10); |
| memcpy((void*)0x2023effe, "\x7f", 1); |
| *(uint16_t*)0x2010e000 = 0xa; |
| *(uint16_t*)0x2010e002 = htobe16(0x4e20); |
| *(uint32_t*)0x2010e004 = 0; |
| *(uint64_t*)0x2010e008 = htobe64(0); |
| *(uint64_t*)0x2010e010 = htobe64(1); |
| *(uint32_t*)0x2010e018 = 0; |
| syscall(__NR_sendto, r[0], 0x2023effe, 1, 0, 0x2010e000, 0x1c); |
| *(uint32_t*)0x20000180 = 0; |
| *(uint16_t*)0x20000184 = 2; |
| *(uint16_t*)0x20000186 = htobe16(0); |
| *(uint32_t*)0x20000188 = htobe32(0); |
| *(uint8_t*)0x2000018c = 0; |
| *(uint8_t*)0x2000018d = 0; |
| *(uint8_t*)0x2000018e = 0; |
| *(uint8_t*)0x2000018f = 0; |
| *(uint8_t*)0x20000190 = 0; |
| *(uint8_t*)0x20000191 = 0; |
| *(uint8_t*)0x20000192 = 0; |
| *(uint8_t*)0x20000193 = 0; |
| *(uint32_t*)0x20000204 = 0; |
| *(uint16_t*)0x20000208 = 0; |
| *(uint32_t*)0x2000020a = 0; |
| *(uint32_t*)0x2000020e = 0; |
| *(uint32_t*)0x20000212 = 4; |
| syscall(__NR_setsockopt, r[0], 0x84, 9, 0x20000180, 0x98); |
| } |
| |
| int main() |
| { |
| syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); |
| loop(); |
| return 0; |
| } |