// https://syzkaller.appspot.com/bug?id=a743c25030c86d41c8b2cf6a0651603155c48245 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_mmap #define __NR_mmap 192 #endif #ifndef __NR_openat #define __NR_openat 295 #endif #ifndef __NR_write #define __NR_write 4 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; memcpy((void*)0x20000180, "/selinux/load\000", 14); res = syscall(__NR_openat, 0xffffff9c, 0x20000180, 2, 0); if (res != -1) r[0] = res; memcpy((void*)0x200002c0, "\x8c\xff\x7c\xf9\x08\x00\x00\x00\x53\x45\x20\x4c\x69\x6e\x75\x78\x12" "\x00\x00\x00\x00\xc4\x6f\x00\x06\x00\x00\x00\x07\x00\x00\x00\x3c\x9f" "\x03\x00\x00\x00\x00\x00\x00\x00\xc2\x7e\xd0\xe8\x1f\x00\x03\x00\x80" "\x00\x00\x00\x00\x00\x67\x68\x1b\xfd\x07\x00\x00\x00\x00\x00\x00\x00" "\x00\xfb\x6c\x7a\x2c\xe2\x9a\x4f\x4b\x48\x62\x8f\xff\x74\x0d\x35\xf8" "\x82\xbd\xf2\x90\x97\x40\xf8\x6b\x3d\x48", 95); syscall(__NR_write, (intptr_t)r[0], 0x200002c0, 0x5f); return 0; }