| // KMSAN: uninit-value in gf128mul_init_4k_lle |
| // https://syzkaller.appspot.com/bug?id=b835ac956e667010cfb547a0fbb5739530d7617e |
| // status:invalid |
| // 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, 0x26, 5, 0); |
| if (res != -1) |
| r[0] = res; |
| *(uint16_t*)0x201ca000 = 0x26; |
| memcpy((void*)0x201ca002, |
| "\x61\x65\x61\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 14); |
| *(uint32_t*)0x201ca010 = 0; |
| *(uint32_t*)0x201ca014 = 0; |
| memcpy((void*)0x201ca018, |
| "\x67\x63\x6d\x5f\x62\x61\x73\x65\x28\x63\x74\x72\x28\x61\x65\x73\x2d" |
| "\x61\x65\x73\x6e\x69\x29\x2c\x67\x68\x61\x73\x68\x2d\x67\x65\x6e\x65" |
| "\x72\x69\x63\x29\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", |
| 64); |
| syscall(__NR_bind, r[0], 0x201ca000, 0x58); |
| memcpy((void*)0x204f7000, |
| "\x64\x9c\x47\xad\x46\x39\x0d\x00\x6d\xc8\x00\x00\x00\x9d\x4d\x54", |
| 16); |
| syscall(__NR_setsockopt, r[0], 0x117, 1, 0x204f7000, 0x10); |
| } |
| |
| int main() |
| { |
| syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); |
| loop(); |
| return 0; |
| } |