| // possible deadlock in shmem_file_llseek |
| // https://syzkaller.appspot.com/bug?id=e86371dd7b6835334a55daec02e21a6449d83076 |
| // 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> |
| |
| long r[1]; |
| void loop() |
| { |
| memset(r, -1, sizeof(r)); |
| syscall(__NR_mmap, 0x20000000, 0xfff000, 3, 0x32, -1, 0); |
| memcpy((void*)0x20b2fff4, "/dev/ashmem", 12); |
| r[0] = syscall(__NR_openat, 0xffffffffffffff9c, 0x20b2fff4, 0, 0); |
| syscall(__NR_ioctl, r[0], 0x40087703, 2); |
| syscall(__NR_mmap, 0x206ff000, 0x3000, 0, 0x12, r[0], 0); |
| syscall(__NR_lseek, r[0], 0, 3); |
| } |
| |
| int main() |
| { |
| loop(); |
| return 0; |
| } |