| // WARNING in __alloc_pages_nodemask |
| // https://syzkaller.appspot.com/bug?id=a743c25030c86d41c8b2cf6a0651603155c48245 |
| // 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[2] = {0xffffffffffffffff, 0xffffffffffffffff}; |
| |
| int main(void) |
| { |
| syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); |
| long res = 0; |
| memcpy((void*)0x200002c0, "/dev/vga_arbiter", 17); |
| res = syscall(__NR_openat, 0xffffffffffffff9c, 0x200002c0, 2, 0); |
| if (res != -1) |
| r[0] = res; |
| res = syscall(__NR_fcntl, r[0], 0, r[0]); |
| if (res != -1) |
| r[1] = res; |
| *(uint32_t*)0x20000000 = 0xf; |
| *(uint8_t*)0x20000004 = 0x1f; |
| *(uint16_t*)0x20000005 = 0x40; |
| *(uint64_t*)0x20000007 = 0; |
| syscall(__NR_write, r[1], 0x20000000, 0xfffffefa); |
| return 0; |
| } |