// https://syzkaller.appspot.com/bug?id=2bf7e8a31b3d0f4a606a861ed1e76926d628617f // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_pipe, 0x20000200); if (res != -1) { r[0] = *(uint32_t*)0x20000200; r[1] = *(uint32_t*)0x20000204; } memcpy((void*)0x20000080, "\x00\xdb\xcf\x7e\xc6\x31\xde\x6b\x7f\x6e\xf8\x24\x86\x17\x22\xc1\x14" "\x05\xec\x25\xcd\x74\xb0\xb0\x6c\xd5\x48\x48\x08\xfb\x7c\xe4\x89\x3e" "\x18\xa8\x33\x5f\xaa\xc3\xa6\xd2\xc2\x7a\xd8\x3c\xfb\x13\x5a\x78\x02" "\xd1\x76\x6b\xa7\xc4\x82\xb0\x6f\x88\x22\xb0\xb8\x30\xc8\x27\x5b\xb0" "\x90\xee\xf0\x0f\x09\xa4\xc3\xff\x1a\xb5\x4d\x64\xb4\x0f\x59\x81\x8f" "\x81\xe4\xd8\x16\x92\x1e\xf5\xcc\x5f\x23\x72\xf3\x8f\x60\x5d\x06\x7e" "\xbb\x02\x05\x17\xe9\x21\xa6\x91\x90\xb8\xf9\xf1\x05\xb9\xf2\x2b\x07" "\xfb\xae\xa6\xef\xae\x28\xd8\x47\x14\x00\x00\x00\x00", 132); syscall(__NR_write, r[1], 0x20000080, 0x84); syscall(__NR_close, r[1]); memcpy((void*)0x20000000, "/proc/thread-self/attr/exec", 28); syscall(__NR_openat, 0xffffffffffffff9c, 0x20000000, 2, 0); syscall(__NR_splice, r[0], 0, r[1], 0, 3, 0); memcpy((void*)0x20f80000, "./file0", 8); syscall(__NR_mknod, 0x20f80000, 0x1040, 0); memcpy((void*)0x20000340, "./file0", 8); syscall(__NR_execve, 0x20000340, 0x200001c0, 0x20000200); return 0; }