| // WARNING in set_precision (2) |
| // https://syzkaller.appspot.com/bug?id=281782651d0e9ea74d81ba387aa89ab03822b63e |
| // 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, 2ul, 0x10ul); |
| if (res != -1) |
| r[0] = res; |
| *(uint64_t*)0x20000000 = 0; |
| *(uint32_t*)0x20000008 = 0xfffffed3; |
| *(uint64_t*)0x20000010 = 0x20000080; |
| *(uint64_t*)0x20000080 = 0x20000040; |
| memcpy((void*)0x20000040, "\xe0\x3f\x03\x00\x24\x00\x05\x05\xd2\x5a\x80\x64" |
| "\x8c\x63\x94\x0d\x05\x24\xfc\x60\x00\x81\x11\x40" |
| "\x0a\x00\x00\x00\x05\x35\x82\xc1\x37\x15\x3e\x37" |
| "\x09\x07\x08\x80\x00\xf0\x17\x00\xd1\xbd", |
| 46); |
| *(uint64_t*)0x20000088 = 0x33fe0; |
| *(uint64_t*)0x20000018 = 1; |
| *(uint64_t*)0x20000020 = 0; |
| *(uint64_t*)0x20000028 = 0; |
| *(uint32_t*)0x20000030 = 0; |
| syscall(__NR_sendmsg, r[0], 0x20000000ul, 0ul); |
| return 0; |
| } |