// https://syzkaller.appspot.com/bug?id=e7cb1c0fc7b386dbfedec70619f46fea3ae76480 // 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> int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); *(uint64_t*)0x20000000 = 0; *(uint32_t*)0x20000008 = 0; *(uint64_t*)0x20000010 = 0x20aa8000; *(uint64_t*)0x20aa8000 = 0x209b9000; *(uint8_t*)0x209b9000 = 2; *(uint8_t*)0x209b9001 = 9; *(uint8_t*)0x209b9002 = 0; *(uint8_t*)0x209b9003 = 2; *(uint16_t*)0x209b9004 = 2; *(uint16_t*)0x209b9006 = 0; *(uint32_t*)0x209b9008 = 0x70bd2c; *(uint32_t*)0x209b900c = 0; *(uint64_t*)0x20aa8008 = 0xfffffffffffffe54; *(uint64_t*)0x20000018 = 1; *(uint64_t*)0x20000020 = 0; *(uint64_t*)0x20000028 = 0; *(uint32_t*)0x20000030 = 0; syscall(__NR_sendmsg, -1, 0x20000000, 0); syscall(__NR_mprotect, 0x20000000, 0x800000, 0); return 0; }