// https://syzkaller.appspot.com/bug?id=528adc617286a11273518fca9fe85ba514a61f2a // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_madvise #define __NR_madvise 233 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #endif int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0xfbe000ul, 0x100000bul, 0x31ul, -1, 0ul); memcpy((void*)0x20000000, "/dev/vcsu\000", 10); syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000000ul, 0ul, 0ul); syscall(__NR_madvise, 0x20000000ul, 0x600003ul, 0x19ul); return 0; }