// https://syzkaller.appspot.com/bug?id=1c56327ba2b5b6ac0b9e75fb91b6aa51f7cca6af // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include __attribute__((noreturn)) static void doexit(int status) { volatile unsigned i; syscall(__NR_exit_group, status); for (i = 0;; i++) { } } #include #include #include #include #include #include #include const int kFailStatus = 67; const int kRetryStatus = 69; static void fail(const char* msg, ...) { int e = errno; va_list args; va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); fprintf(stderr, " (errno %d)\n", e); doexit((e == ENOMEM || e == EAGAIN) ? kRetryStatus : kFailStatus); } static void use_temporary_dir() { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) fail("failed to mkdtemp"); if (chmod(tmpdir, 0777)) fail("failed to chmod"); if (chdir(tmpdir)) fail("failed to chdir"); } static uintptr_t syz_open_pts(uintptr_t a0, uintptr_t a1) { int ptyno = 0; if (ioctl(a0, TIOCGPTN, &ptyno)) return -1; char buf[128]; sprintf(buf, "/dev/pts/%d", ptyno); return open(buf, a1, 0); } struct thread_t { int created, running, call; pthread_t th; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static int collide; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { while (!__atomic_load_n(&th->running, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &th->running, FUTEX_WAIT, 0, 0); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); __atomic_store_n(&th->running, 0, __ATOMIC_RELEASE); syscall(SYS_futex, &th->running, FUTEX_WAKE); } return 0; } static void execute(int num_calls) { int call, thread; running = 0; for (call = 0; call < num_calls; call++) { for (thread = 0; thread < sizeof(threads) / sizeof(threads[0]); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); pthread_create(&th->th, &attr, thr, th); } if (!__atomic_load_n(&th->running, __ATOMIC_ACQUIRE)) { th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); __atomic_store_n(&th->running, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &th->running, FUTEX_WAKE); if (collide && call % 2) break; struct timespec ts; ts.tv_sec = 0; ts.tv_nsec = 20 * 1000 * 1000; syscall(SYS_futex, &th->running, FUTEX_WAIT, 1, &ts); if (__atomic_load_n(&running, __ATOMIC_RELAXED)) usleep((call == num_calls - 1) ? 10000 : 1000); break; } } } } uint64_t r[4] = {0xffffffffffffffff, 0x0, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { long res; switch (call) { case 0: memcpy((void*)0x20000000, "/dev/ptmx", 10); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000000, 0x200000, 0); if (res != -1) r[0] = res; break; case 1: syscall(__NR_ioctl, r[0], 0x4b6a, 0x20000040); break; case 2: res = syscall(__NR_semget, 0x798e2634, 3, 0x234); if (res != -1) r[1] = res; break; case 3: *(uint16_t*)0x20000080 = 0x815b; *(uint16_t*)0x20000082 = 0x200; *(uint16_t*)0x20000084 = 6; *(uint16_t*)0x20000086 = 1; *(uint16_t*)0x20000088 = 0x8001; *(uint16_t*)0x2000008a = 0x8bb1; *(uint16_t*)0x2000008c = 1; *(uint16_t*)0x2000008e = 0x8001; *(uint16_t*)0x20000090 = 8; *(uint16_t*)0x20000092 = 4; syscall(__NR_semctl, r[1], 0, 0x11, 0x20000080); break; case 4: *(uint64_t*)0x200000c0 = 0x3f; syscall(__NR_ioctl, r[0], 0x4b63, 0x200000c0); break; case 5: res = syz_open_pts(r[0], 0x103002); if (res != -1) r[2] = res; break; case 6: syscall(__NR_ioctl, r[2], 0x540d); break; case 7: syscall(__NR_getpid); break; case 8: syscall(__NR_ioctl, r[2], 0x4b65, 2); break; case 9: syscall(__NR_ioctl, r[2], 0x5425, 0x7fffffff); break; case 10: syscall(__NR_semctl, r[1], 0, 0); break; case 11: syscall(__NR_ioctl, r[0], 0x4b41, 0x20000240); break; case 12: res = syscall(__NR_dup, r[2]); if (res != -1) r[3] = res; break; case 13: *(uint16_t*)0x20000300 = 8; *(uint16_t*)0x20000302 = 3; *(uint16_t*)0x20000304 = 6; syscall(__NR_ioctl, r[0], 0x5603, 0x20000300); break; case 14: *(uint16_t*)0x20000340 = 0x1ff; *(uint16_t*)0x20000342 = 3; *(uint16_t*)0x20000344 = 6; syscall(__NR_ioctl, r[2], 0x5603, 0x20000340); break; case 15: *(uint32_t*)0x20000380 = r[2]; *(uint16_t*)0x20000384 = 0x1000; *(uint16_t*)0x20000386 = 0; syscall(__NR_poll, 0x20000380, 1, 0x400); break; case 16: *(uint16_t*)0x200013c0 = 0x18; *(uint32_t*)0x200013c2 = 1; *(uint32_t*)0x200013c6 = 0; *(uint32_t*)0x200013ca = r[3]; *(uint16_t*)0x200013ce = 2; *(uint16_t*)0x200013d0 = htobe16(0x4e21); *(uint8_t*)0x200013d2 = 0xac; *(uint8_t*)0x200013d3 = 0x14; *(uint8_t*)0x200013d4 = 0x14; *(uint8_t*)0x200013d5 = 0xaa; *(uint8_t*)0x200013d6 = 0; *(uint8_t*)0x200013d7 = 0; *(uint8_t*)0x200013d8 = 0; *(uint8_t*)0x200013d9 = 0; *(uint8_t*)0x200013da = 0; *(uint8_t*)0x200013db = 0; *(uint8_t*)0x200013dc = 0; *(uint8_t*)0x200013dd = 0; *(uint32_t*)0x200013de = 4; *(uint32_t*)0x200013e2 = 4; *(uint32_t*)0x200013e6 = 1; *(uint32_t*)0x200013ea = 4; syscall(__NR_sendto, r[3], 0x200003c0, 0, 0x4000, 0x200013c0, 0x80); break; case 17: syscall(__NR_ioctl, r[3], 0x8905, 0x20001440); break; case 18: *(uint32_t*)0x200014c0 = 0xc; syscall(__NR_getsockopt, r[3], 0, 0x481, 0x20001480, 0x200014c0); break; case 19: syscall(__NR_io_setup, 0xccaa, 0x20001500); break; case 20: *(uint32_t*)0x20001540 = 0; *(uint16_t*)0x20001548 = 2; *(uint16_t*)0x2000154a = htobe16(0x4e22); *(uint8_t*)0x2000154c = 0xac; *(uint8_t*)0x2000154d = 0x14; *(uint8_t*)0x2000154e = 0x14; *(uint8_t*)0x2000154f = 0x1f; *(uint8_t*)0x20001550 = 0; *(uint8_t*)0x20001551 = 0; *(uint8_t*)0x20001552 = 0; *(uint8_t*)0x20001553 = 0; *(uint8_t*)0x20001554 = 0; *(uint8_t*)0x20001555 = 0; *(uint8_t*)0x20001556 = 0; *(uint8_t*)0x20001557 = 0; *(uint32_t*)0x200015c8 = 1; *(uint32_t*)0x200015cc = 7; *(uint16_t*)0x200015d0 = 2; *(uint16_t*)0x200015d2 = htobe16(0x4e20); *(uint32_t*)0x200015d4 = htobe32(0xe0000001); *(uint8_t*)0x200015d8 = 0; *(uint8_t*)0x200015d9 = 0; *(uint8_t*)0x200015da = 0; *(uint8_t*)0x200015db = 0; *(uint8_t*)0x200015dc = 0; *(uint8_t*)0x200015dd = 0; *(uint8_t*)0x200015de = 0; *(uint8_t*)0x200015df = 0; *(uint16_t*)0x20001650 = 2; *(uint16_t*)0x20001652 = htobe16(0x4e22); *(uint32_t*)0x20001654 = htobe32(0xe0000002); *(uint8_t*)0x20001658 = 0; *(uint8_t*)0x20001659 = 0; *(uint8_t*)0x2000165a = 0; *(uint8_t*)0x2000165b = 0; *(uint8_t*)0x2000165c = 0; *(uint8_t*)0x2000165d = 0; *(uint8_t*)0x2000165e = 0; *(uint8_t*)0x2000165f = 0; *(uint16_t*)0x200016d0 = 2; *(uint16_t*)0x200016d2 = htobe16(0x4e23); *(uint32_t*)0x200016d4 = htobe32(0x7f000001); *(uint8_t*)0x200016d8 = 0; *(uint8_t*)0x200016d9 = 0; *(uint8_t*)0x200016da = 0; *(uint8_t*)0x200016db = 0; *(uint8_t*)0x200016dc = 0; *(uint8_t*)0x200016dd = 0; *(uint8_t*)0x200016de = 0; *(uint8_t*)0x200016df = 0; *(uint16_t*)0x20001750 = 2; *(uint16_t*)0x20001752 = htobe16(0x4e20); *(uint32_t*)0x20001754 = htobe32(0); *(uint8_t*)0x20001758 = 0; *(uint8_t*)0x20001759 = 0; *(uint8_t*)0x2000175a = 0; *(uint8_t*)0x2000175b = 0; *(uint8_t*)0x2000175c = 0; *(uint8_t*)0x2000175d = 0; *(uint8_t*)0x2000175e = 0; *(uint8_t*)0x2000175f = 0; *(uint16_t*)0x200017d0 = 2; *(uint16_t*)0x200017d2 = htobe16(0x4e24); *(uint32_t*)0x200017d4 = htobe32(0xe0000002); *(uint8_t*)0x200017d8 = 0; *(uint8_t*)0x200017d9 = 0; *(uint8_t*)0x200017da = 0; *(uint8_t*)0x200017db = 0; *(uint8_t*)0x200017dc = 0; *(uint8_t*)0x200017dd = 0; *(uint8_t*)0x200017de = 0; *(uint8_t*)0x200017df = 0; *(uint16_t*)0x20001850 = 2; *(uint16_t*)0x20001852 = htobe16(0x4e21); *(uint32_t*)0x20001854 = htobe32(0xe0000002); *(uint8_t*)0x20001858 = 0; *(uint8_t*)0x20001859 = 0; *(uint8_t*)0x2000185a = 0; *(uint8_t*)0x2000185b = 0; *(uint8_t*)0x2000185c = 0; *(uint8_t*)0x2000185d = 0; *(uint8_t*)0x2000185e = 0; *(uint8_t*)0x2000185f = 0; *(uint16_t*)0x200018d0 = 2; *(uint16_t*)0x200018d2 = htobe16(0x4e20); *(uint32_t*)0x200018d4 = htobe32(0); *(uint8_t*)0x200018d8 = 0; *(uint8_t*)0x200018d9 = 0; *(uint8_t*)0x200018da = 0; *(uint8_t*)0x200018db = 0; *(uint8_t*)0x200018dc = 0; *(uint8_t*)0x200018dd = 0; *(uint8_t*)0x200018de = 0; *(uint8_t*)0x200018df = 0; syscall(__NR_setsockopt, r[3], 0, 0x30, 0x20001540, 0x410); break; case 21: syscall(__NR_ioctl, r[3], 0x5412, 0x1ff); break; case 22: *(uint16_t*)0x20001980 = 0x10b; *(uint8_t*)0x20001982 = 0; *(uint8_t*)0x20001983 = 8; *(uint32_t*)0x20001984 = 0x302; *(uint32_t*)0x20001988 = 0x312; *(uint32_t*)0x2000198c = 5; *(uint32_t*)0x20001990 = 0x11d; *(uint32_t*)0x20001994 = 0x9af; *(uint32_t*)0x20001998 = 0; *(uint32_t*)0x2000199c = 0; *(uint64_t*)0x200019a0 = 0; *(uint64_t*)0x200019a8 = 0; *(uint64_t*)0x200019b0 = 0; *(uint64_t*)0x200019b8 = 0; *(uint64_t*)0x200019c0 = 0; *(uint64_t*)0x200019c8 = 0; *(uint64_t*)0x200019d0 = 0; *(uint64_t*)0x200019d8 = 0; *(uint64_t*)0x200019e0 = 0; *(uint64_t*)0x200019e8 = 0; *(uint64_t*)0x200019f0 = 0; *(uint64_t*)0x200019f8 = 0; *(uint64_t*)0x20001a00 = 0; *(uint64_t*)0x20001a08 = 0; *(uint64_t*)0x20001a10 = 0; *(uint64_t*)0x20001a18 = 0; *(uint64_t*)0x20001a20 = 0; *(uint64_t*)0x20001a28 = 0; *(uint64_t*)0x20001a30 = 0; *(uint64_t*)0x20001a38 = 0; *(uint64_t*)0x20001a40 = 0; *(uint64_t*)0x20001a48 = 0; *(uint64_t*)0x20001a50 = 0; *(uint64_t*)0x20001a58 = 0; *(uint64_t*)0x20001a60 = 0; *(uint64_t*)0x20001a68 = 0; *(uint64_t*)0x20001a70 = 0; *(uint64_t*)0x20001a78 = 0; *(uint64_t*)0x20001a80 = 0; *(uint64_t*)0x20001a88 = 0; *(uint64_t*)0x20001a90 = 0; *(uint64_t*)0x20001a98 = 0; *(uint64_t*)0x20001aa0 = 0; *(uint64_t*)0x20001aa8 = 0; *(uint64_t*)0x20001ab0 = 0; *(uint64_t*)0x20001ab8 = 0; *(uint64_t*)0x20001ac0 = 0; *(uint64_t*)0x20001ac8 = 0; *(uint64_t*)0x20001ad0 = 0; *(uint64_t*)0x20001ad8 = 0; *(uint64_t*)0x20001ae0 = 0; *(uint64_t*)0x20001ae8 = 0; *(uint64_t*)0x20001af0 = 0; *(uint64_t*)0x20001af8 = 0; *(uint64_t*)0x20001b00 = 0; *(uint64_t*)0x20001b08 = 0; *(uint64_t*)0x20001b10 = 0; *(uint64_t*)0x20001b18 = 0; *(uint64_t*)0x20001b20 = 0; *(uint64_t*)0x20001b28 = 0; *(uint64_t*)0x20001b30 = 0; *(uint64_t*)0x20001b38 = 0; *(uint64_t*)0x20001b40 = 0; *(uint64_t*)0x20001b48 = 0; *(uint64_t*)0x20001b50 = 0; *(uint64_t*)0x20001b58 = 0; *(uint64_t*)0x20001b60 = 0; *(uint64_t*)0x20001b68 = 0; *(uint64_t*)0x20001b70 = 0; *(uint64_t*)0x20001b78 = 0; *(uint64_t*)0x20001b80 = 0; *(uint64_t*)0x20001b88 = 0; *(uint64_t*)0x20001b90 = 0; *(uint64_t*)0x20001b98 = 0; *(uint64_t*)0x20001ba0 = 0; *(uint64_t*)0x20001ba8 = 0; *(uint64_t*)0x20001bb0 = 0; *(uint64_t*)0x20001bb8 = 0; *(uint64_t*)0x20001bc0 = 0; *(uint64_t*)0x20001bc8 = 0; *(uint64_t*)0x20001bd0 = 0; *(uint64_t*)0x20001bd8 = 0; *(uint64_t*)0x20001be0 = 0; *(uint64_t*)0x20001be8 = 0; *(uint64_t*)0x20001bf0 = 0; *(uint64_t*)0x20001bf8 = 0; *(uint64_t*)0x20001c00 = 0; *(uint64_t*)0x20001c08 = 0; *(uint64_t*)0x20001c10 = 0; *(uint64_t*)0x20001c18 = 0; *(uint64_t*)0x20001c20 = 0; *(uint64_t*)0x20001c28 = 0; *(uint64_t*)0x20001c30 = 0; *(uint64_t*)0x20001c38 = 0; *(uint64_t*)0x20001c40 = 0; *(uint64_t*)0x20001c48 = 0; *(uint64_t*)0x20001c50 = 0; *(uint64_t*)0x20001c58 = 0; *(uint64_t*)0x20001c60 = 0; *(uint64_t*)0x20001c68 = 0; *(uint64_t*)0x20001c70 = 0; *(uint64_t*)0x20001c78 = 0; *(uint64_t*)0x20001c80 = 0; *(uint64_t*)0x20001c88 = 0; *(uint64_t*)0x20001c90 = 0; *(uint64_t*)0x20001c98 = 0; *(uint64_t*)0x20001ca0 = 0; *(uint64_t*)0x20001ca8 = 0; *(uint64_t*)0x20001cb0 = 0; *(uint64_t*)0x20001cb8 = 0; *(uint64_t*)0x20001cc0 = 0; *(uint64_t*)0x20001cc8 = 0; *(uint64_t*)0x20001cd0 = 0; *(uint64_t*)0x20001cd8 = 0; *(uint64_t*)0x20001ce0 = 0; *(uint64_t*)0x20001ce8 = 0; *(uint64_t*)0x20001cf0 = 0; *(uint64_t*)0x20001cf8 = 0; *(uint64_t*)0x20001d00 = 0; *(uint64_t*)0x20001d08 = 0; *(uint64_t*)0x20001d10 = 0; *(uint64_t*)0x20001d18 = 0; *(uint64_t*)0x20001d20 = 0; *(uint64_t*)0x20001d28 = 0; *(uint64_t*)0x20001d30 = 0; *(uint64_t*)0x20001d38 = 0; *(uint64_t*)0x20001d40 = 0; *(uint64_t*)0x20001d48 = 0; *(uint64_t*)0x20001d50 = 0; *(uint64_t*)0x20001d58 = 0; *(uint64_t*)0x20001d60 = 0; *(uint64_t*)0x20001d68 = 0; *(uint64_t*)0x20001d70 = 0; *(uint64_t*)0x20001d78 = 0; *(uint64_t*)0x20001d80 = 0; *(uint64_t*)0x20001d88 = 0; *(uint64_t*)0x20001d90 = 0; *(uint64_t*)0x20001d98 = 0; *(uint64_t*)0x20001da0 = 0; *(uint64_t*)0x20001da8 = 0; *(uint64_t*)0x20001db0 = 0; *(uint64_t*)0x20001db8 = 0; *(uint64_t*)0x20001dc0 = 0; *(uint64_t*)0x20001dc8 = 0; *(uint64_t*)0x20001dd0 = 0; *(uint64_t*)0x20001dd8 = 0; *(uint64_t*)0x20001de0 = 0; *(uint64_t*)0x20001de8 = 0; *(uint64_t*)0x20001df0 = 0; *(uint64_t*)0x20001df8 = 0; *(uint64_t*)0x20001e00 = 0; *(uint64_t*)0x20001e08 = 0; *(uint64_t*)0x20001e10 = 0; *(uint64_t*)0x20001e18 = 0; *(uint64_t*)0x20001e20 = 0; *(uint64_t*)0x20001e28 = 0; *(uint64_t*)0x20001e30 = 0; *(uint64_t*)0x20001e38 = 0; *(uint64_t*)0x20001e40 = 0; *(uint64_t*)0x20001e48 = 0; *(uint64_t*)0x20001e50 = 0; *(uint64_t*)0x20001e58 = 0; *(uint64_t*)0x20001e60 = 0; *(uint64_t*)0x20001e68 = 0; *(uint64_t*)0x20001e70 = 0; *(uint64_t*)0x20001e78 = 0; *(uint64_t*)0x20001e80 = 0; *(uint64_t*)0x20001e88 = 0; *(uint64_t*)0x20001e90 = 0; *(uint64_t*)0x20001e98 = 0; *(uint64_t*)0x20001ea0 = 0; *(uint64_t*)0x20001ea8 = 0; *(uint64_t*)0x20001eb0 = 0; *(uint64_t*)0x20001eb8 = 0; *(uint64_t*)0x20001ec0 = 0; *(uint64_t*)0x20001ec8 = 0; *(uint64_t*)0x20001ed0 = 0; *(uint64_t*)0x20001ed8 = 0; *(uint64_t*)0x20001ee0 = 0; *(uint64_t*)0x20001ee8 = 0; *(uint64_t*)0x20001ef0 = 0; *(uint64_t*)0x20001ef8 = 0; *(uint64_t*)0x20001f00 = 0; *(uint64_t*)0x20001f08 = 0; *(uint64_t*)0x20001f10 = 0; *(uint64_t*)0x20001f18 = 0; *(uint64_t*)0x20001f20 = 0; *(uint64_t*)0x20001f28 = 0; *(uint64_t*)0x20001f30 = 0; *(uint64_t*)0x20001f38 = 0; *(uint64_t*)0x20001f40 = 0; *(uint64_t*)0x20001f48 = 0; *(uint64_t*)0x20001f50 = 0; *(uint64_t*)0x20001f58 = 0; *(uint64_t*)0x20001f60 = 0; *(uint64_t*)0x20001f68 = 0; *(uint64_t*)0x20001f70 = 0; *(uint64_t*)0x20001f78 = 0; *(uint64_t*)0x20001f80 = 0; *(uint64_t*)0x20001f88 = 0; *(uint64_t*)0x20001f90 = 0; *(uint64_t*)0x20001f98 = 0; *(uint64_t*)0x20001fa0 = 0; *(uint64_t*)0x20001fa8 = 0; *(uint64_t*)0x20001fb0 = 0; *(uint64_t*)0x20001fb8 = 0; *(uint64_t*)0x20001fc0 = 0; *(uint64_t*)0x20001fc8 = 0; *(uint64_t*)0x20001fd0 = 0; *(uint64_t*)0x20001fd8 = 0; *(uint64_t*)0x20001fe0 = 0; *(uint64_t*)0x20001fe8 = 0; *(uint64_t*)0x20001ff0 = 0; *(uint64_t*)0x20001ff8 = 0; *(uint64_t*)0x20002000 = 0; *(uint64_t*)0x20002008 = 0; *(uint64_t*)0x20002010 = 0; *(uint64_t*)0x20002018 = 0; *(uint64_t*)0x20002020 = 0; *(uint64_t*)0x20002028 = 0; *(uint64_t*)0x20002030 = 0; *(uint64_t*)0x20002038 = 0; *(uint64_t*)0x20002040 = 0; *(uint64_t*)0x20002048 = 0; *(uint64_t*)0x20002050 = 0; *(uint64_t*)0x20002058 = 0; *(uint64_t*)0x20002060 = 0; *(uint64_t*)0x20002068 = 0; *(uint64_t*)0x20002070 = 0; *(uint64_t*)0x20002078 = 0; *(uint64_t*)0x20002080 = 0; *(uint64_t*)0x20002088 = 0; *(uint64_t*)0x20002090 = 0; *(uint64_t*)0x20002098 = 0; *(uint64_t*)0x200020a0 = 0; *(uint64_t*)0x200020a8 = 0; *(uint64_t*)0x200020b0 = 0; *(uint64_t*)0x200020b8 = 0; *(uint64_t*)0x200020c0 = 0; *(uint64_t*)0x200020c8 = 0; *(uint64_t*)0x200020d0 = 0; *(uint64_t*)0x200020d8 = 0; *(uint64_t*)0x200020e0 = 0; *(uint64_t*)0x200020e8 = 0; *(uint64_t*)0x200020f0 = 0; *(uint64_t*)0x200020f8 = 0; *(uint64_t*)0x20002100 = 0; *(uint64_t*)0x20002108 = 0; *(uint64_t*)0x20002110 = 0; *(uint64_t*)0x20002118 = 0; *(uint64_t*)0x20002120 = 0; *(uint64_t*)0x20002128 = 0; *(uint64_t*)0x20002130 = 0; *(uint64_t*)0x20002138 = 0; *(uint64_t*)0x20002140 = 0; *(uint64_t*)0x20002148 = 0; *(uint64_t*)0x20002150 = 0; *(uint64_t*)0x20002158 = 0; *(uint64_t*)0x20002160 = 0; *(uint64_t*)0x20002168 = 0; *(uint64_t*)0x20002170 = 0; *(uint64_t*)0x20002178 = 0; *(uint64_t*)0x20002180 = 0; *(uint64_t*)0x20002188 = 0; *(uint64_t*)0x20002190 = 0; *(uint64_t*)0x20002198 = 0; *(uint64_t*)0x200021a0 = 0; *(uint64_t*)0x200021a8 = 0; *(uint64_t*)0x200021b0 = 0; *(uint64_t*)0x200021b8 = 0; *(uint64_t*)0x200021c0 = 0; *(uint64_t*)0x200021c8 = 0; *(uint64_t*)0x200021d0 = 0; *(uint64_t*)0x200021d8 = 0; *(uint64_t*)0x200021e0 = 0; *(uint64_t*)0x200021e8 = 0; *(uint64_t*)0x200021f0 = 0; *(uint64_t*)0x200021f8 = 0; *(uint64_t*)0x20002200 = 0; *(uint64_t*)0x20002208 = 0; *(uint64_t*)0x20002210 = 0; *(uint64_t*)0x20002218 = 0; *(uint64_t*)0x20002220 = 0; *(uint64_t*)0x20002228 = 0; *(uint64_t*)0x20002230 = 0; *(uint64_t*)0x20002238 = 0; *(uint64_t*)0x20002240 = 0; *(uint64_t*)0x20002248 = 0; *(uint64_t*)0x20002250 = 0; *(uint64_t*)0x20002258 = 0; *(uint64_t*)0x20002260 = 0; *(uint64_t*)0x20002268 = 0; *(uint64_t*)0x20002270 = 0; *(uint64_t*)0x20002278 = 0; *(uint64_t*)0x20002280 = 0; *(uint64_t*)0x20002288 = 0; *(uint64_t*)0x20002290 = 0; *(uint64_t*)0x20002298 = 0; syscall(__NR_write, r[2], 0x20001980, 0x920); break; } } void loop() { execute(23); collide = 1; execute(23); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); use_temporary_dir(); loop(); return 0; }