// https://syzkaller.appspot.com/bug?id=f34aaaca22b6590b45be3c10114cf04f402cfdc0 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif #ifndef __NR_pwritev2 #define __NR_pwritev2 328 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } #define MAX_FDS 30 //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } static void setup_gadgetfs(); static void setup_binderfs(); static void setup_fusectl(); static void sandbox_common_mount_tmpfs(void) { write_file("/proc/sys/fs/mount-max", "100000"); if (mkdir("./syz-tmp", 0777)) exit(1); if (mount("", "./syz-tmp", "tmpfs", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot", 0777)) exit(1); if (mkdir("./syz-tmp/newroot/dev", 0700)) exit(1); unsigned bind_mount_flags = MS_BIND | MS_REC | MS_PRIVATE; if (mount("/dev", "./syz-tmp/newroot/dev", NULL, bind_mount_flags, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/proc", 0700)) exit(1); if (mount("syz-proc", "./syz-tmp/newroot/proc", "proc", 0, NULL)) exit(1); if (mkdir("./syz-tmp/newroot/selinux", 0700)) exit(1); const char* selinux_path = "./syz-tmp/newroot/selinux"; if (mount("/selinux", selinux_path, NULL, bind_mount_flags, NULL)) { if (errno != ENOENT) exit(1); if (mount("/sys/fs/selinux", selinux_path, NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); } if (mkdir("./syz-tmp/newroot/sys", 0700)) exit(1); if (mount("/sys", "./syz-tmp/newroot/sys", 0, bind_mount_flags, NULL)) exit(1); if (mount("/sys/kernel/debug", "./syz-tmp/newroot/sys/kernel/debug", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/sys/fs/smackfs", "./syz-tmp/newroot/sys/fs/smackfs", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mount("/proc/sys/fs/binfmt_misc", "./syz-tmp/newroot/proc/sys/fs/binfmt_misc", NULL, bind_mount_flags, NULL) && errno != ENOENT) exit(1); if (mkdir("./syz-tmp/newroot/syz-inputs", 0700)) exit(1); if (mount("/syz-inputs", "./syz-tmp/newroot/syz-inputs", NULL, bind_mount_flags | MS_RDONLY, NULL) && errno != ENOENT) exit(1); if (mkdir("./syz-tmp/pivot", 0777)) exit(1); if (syscall(SYS_pivot_root, "./syz-tmp", "./syz-tmp/pivot")) { if (chdir("./syz-tmp")) exit(1); } else { if (chdir("/")) exit(1); if (umount2("./pivot", MNT_DETACH)) exit(1); } if (chroot("./newroot")) exit(1); if (chdir("/")) exit(1); setup_gadgetfs(); setup_binderfs(); setup_fusectl(); } static void setup_gadgetfs() { if (mkdir("/dev/gadgetfs", 0777)) { } if (mount("gadgetfs", "/dev/gadgetfs", "gadgetfs", 0, NULL)) { } } static void setup_fusectl() { if (mount(0, "/sys/fs/fuse/connections", "fusectl", 0, 0)) { } } static void setup_binderfs() { if (mkdir("/dev/binderfs", 0777)) { } if (mount("binder", "/dev/binderfs", "binder", 0, NULL)) { } } static void loop(); static void sandbox_common() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); if (getppid() == 1) exit(1); struct rlimit rlim; rlim.rlim_cur = rlim.rlim_max = (200 << 20); setrlimit(RLIMIT_AS, &rlim); rlim.rlim_cur = rlim.rlim_max = 32 << 20; setrlimit(RLIMIT_MEMLOCK, &rlim); rlim.rlim_cur = rlim.rlim_max = 136 << 20; setrlimit(RLIMIT_FSIZE, &rlim); rlim.rlim_cur = rlim.rlim_max = 1 << 20; setrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max = 128 << 20; setrlimit(RLIMIT_CORE, &rlim); rlim.rlim_cur = rlim.rlim_max = 256; setrlimit(RLIMIT_NOFILE, &rlim); if (unshare(CLONE_NEWNS)) { } if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) { } if (unshare(CLONE_NEWIPC)) { } if (unshare(0x02000000)) { } if (unshare(CLONE_NEWUTS)) { } if (unshare(CLONE_SYSVSEM)) { } typedef struct { const char* name; const char* value; } sysctl_t; static const sysctl_t sysctls[] = { {"/proc/sys/kernel/shmmax", "16777216"}, {"/proc/sys/kernel/shmall", "536870912"}, {"/proc/sys/kernel/shmmni", "1024"}, {"/proc/sys/kernel/msgmax", "8192"}, {"/proc/sys/kernel/msgmni", "1024"}, {"/proc/sys/kernel/msgmnb", "1024"}, {"/proc/sys/kernel/sem", "1024 1048576 500 1024"}, }; unsigned i; for (i = 0; i < sizeof(sysctls) / sizeof(sysctls[0]); i++) write_file(sysctls[i].name, sysctls[i].value); } static int wait_for_loop(int pid) { if (pid < 0) exit(1); int status = 0; while (waitpid(-1, &status, __WALL) != pid) { } return WEXITSTATUS(status); } static void drop_caps(void) { struct __user_cap_header_struct cap_hdr = {}; struct __user_cap_data_struct cap_data[2] = {}; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = getpid(); if (syscall(SYS_capget, &cap_hdr, &cap_data)) exit(1); const int drop = (1 << CAP_SYS_PTRACE) | (1 << CAP_SYS_NICE); cap_data[0].effective &= ~drop; cap_data[0].permitted &= ~drop; cap_data[0].inheritable &= ~drop; if (syscall(SYS_capset, &cap_hdr, &cap_data)) exit(1); } static int do_sandbox_none(void) { if (unshare(CLONE_NEWPID)) { } int pid = fork(); if (pid != 0) return wait_for_loop(pid); sandbox_common(); drop_caps(); if (unshare(CLONE_NEWNET)) { } write_file("/proc/sys/net/ipv4/ping_group_range", "0 65535"); sandbox_common_mount_tmpfs(); loop(); exit(1); } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, umount_flags) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, umount_flags)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } int i, call, thread; for (call = 0; call < 13; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50 + (call == 0 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); close_fds(); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[4] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: // syz_mount_image$exfat arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 66 61 74 00} (length 0x6) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x10 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {75 74 66 38 2c 75 74 66 38 2c 69 6f 63 68 61 // 72 73 65 74 3d 63 70 38 36 32 2c 69 6f 63 68 61 72 73 65 74 3d // 63 70 38 36 34 2c 64 69 73 63 61 72 64 2c 65 72 72 6f 72 73 3d // 72 65 6d 6f 75 6e 74 2d 72 6f 2c 66 6d 61 73 6b 3d 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 37 37 37 37 2c 67 // 69 64 3d} (length 0x66) // } // union ANYUNION { // ANYRESHEX: ANYRES64 (resource) // } // union ANYUNION { // ANYBLOB: buffer: {2c 75 74 66 38 2c 61 6c 6c 6f 77 5f 75 74 69 // 6d 65 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 31 // 2c 61 6c 6c 6f 77 5f 75 74 69 6d 65 3d 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 30 33 37 37 37 2c 00 02 e5 cc 2c // 36 40 db 32 59 4e 71 db} (length 0x56) // } // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x1526 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x1526) // } // ] // returns fd_dir memcpy((void*)0x200000000540, "exfat\000", 6); memcpy((void*)0x200000000040, "./file0\000", 8); memcpy((void*)0x200000000300, "utf8,utf8,iocharset=cp862,iocharset=cp864,discard,errors=remount-" "ro,fmask=00000000000000000007777,gid=", 102); sprintf((char*)0x200000000366, "0x%016llx", (long long)0); memcpy((void*)0x200000000378, "\x2c\x75\x74\x66\x38\x2c\x61\x6c\x6c\x6f\x77\x5f\x75\x74\x69\x6d" "\x65\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x31\x2c\x61\x6c\x6c\x6f\x77\x5f\x75\x74\x69\x6d\x65" "\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x33\x37\x37\x37\x2c\x00\x02\xe5\xcc\x2c\x36\x40" "\xdb\x32\x59\x4e\x71\xdb", 86); memcpy( (void*)0x200000000780, "\x78\x9c\xec\xdc\x0b\xb8\x4d\xd5\xd7\x30\xf0\x31\xe6\x9c\x8b\x43\xd2" "\x4e\x72\x39\xac\x31\xc7\x62\xa7\x83\x49\x92\xe4\x92\x90\x4b\x92\x24" "\x49\x92\x5b\x42\x92\x24\x49\x48\x6e\xb9\x25\x21\x09\xb9\x27\xb9\x27" "\x9d\xdc\x3a\x4e\x3a\xee\xf7\xfb\x35\xe9\xe4\x95\x24\x49\x48\x48\x32" "\xbf\xe7\x74\xf9\x7b\x7b\xfb\xfa\xfc\xdf\xf7\xdf\xf7\x79\xbf\xf7\x8c" "\xdf\xf3\xac\xb3\xe7\x38\x6b\x8f\xb1\xe7\xdc\xe3\xac\xbd\xd7\x5e\xcf" "\x39\xe7\x9b\x2e\xc3\x6b\x34\xaa\x59\xb5\x01\x33\xc3\xbf\x42\xfd\x76" "\xdb\x1b\x00\x12\x00\x60\x10\x00\x5c\x03\x00\x01\x00\x94\xc9\x55\x26" "\x17\x20\x40\x36\x8d\xbd\xff\xa5\x07\x11\x7f\xb3\x07\x67\x5d\xe9\x19" "\x88\x2b\x49\xfa\x9f\xb9\x49\xff\x33\x37\xe9\x7f\xe6\x26\xfd\xcf\xdc" "\xa4\xff\x99\x9b\xf4\x3f\x73\x93\xfe\x67\x6e\xd2\x7f\x21\x32\xb3\xad" "\xb3\xf3\x5f\x2b\x5b\xe6\xdd\xbe\xe9\x32\xbc\xc6\xb2\x7f\xea\xfa\xbf" "\xfd\x3f\xef\xc6\x5f\x6f\xe4\xfa\xff\x7f\x27\xd9\x2e\xb3\x5f\xde\xff" "\xff\xc7\xfa\xa7\x8e\x34\xe9\x7f\xe6\x26\xfd\xcf\xdc\xa4\xff\x99\x9b" "\xf4\x3f\x73\x93\xfe\x67\x6e\xd2\xff\xcc\x4d\xfa\x9f\xb9\x49\xff\x85" "\xc8\xcc\xae\xf4\xf5\xe7\xff\x0f\xb6\xdf\x9f\xaa\x2b\x3d\x8f\xcb\x6c" "\xc1\x7f\x29\xef\xca\xfe\xf4\x09\x21\x84\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21" "\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10" "\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08" "\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84" "\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21" "\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\xc8" "\x2c\xce\xf9\x4b\x0c\x00\xfc\x3e\xbe\xd2\xf3\x12\x42\x08\x21\x84\x10" "\x42\x08\x21\xc4\xdf\xc7\x67\xbd\xd2\x33\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\xc4\xff\x7d\x08\x60\x34\x18\x08\x20\x0b\x64\x85\x04\xc8\x06" "\xd9\xe1\x2a\xc8\x01\x57\x43\x4e\xb8\x06\x62\x70\x2d\xe4\x82\xeb\x20" "\x37\x5c\x0f\x79\x20\x2f\xe4\x83\xfc\x90\x08\x05\xa0\x20\x84\x40\x60" "\x81\x21\x82\x42\x50\x18\xe2\xe0\x3d\xc0\x8d\x90\x04\x45\xa1\x18\x14" "\x07\x07\x25\xa0\x24\xdc\x04\xa5\xe0\x66\x28\x0d\xb7\x40\x19\x48\x4e" "\x01\xb8\x0d\xca\x41\x79\xa8\x00\x15\xe1\x76\xa8\x04\x77\x40\x65\xa8" "\x02\x55\xe1\x4e\xa8\x06\xd5\xa1\x06\xd4\x84\xbb\xa0\x16\xdc\x0d\xb5" "\xe1\x1e\xa8\x03\xf7\x42\x5d\xb8\x0f\xea\xc1\xfd\x50\x1f\x1e\x80\x06" "\xf0\x20\x34\x84\x87\xa0\x11\x3c\x0c\x8d\xe1\x11\x68\x02\x4d\xa1\x19" "\x34\x87\x16\xff\xa5\xfc\x17\xa0\x07\xbc\x08\x3d\xa1\x17\xf4\x86\x3e" "\xd0\x17\x5e\x82\x7e\xd0\x1f\x06\xc0\x40\x18\x04\x2f\xc3\x60\x78\x05" "\x86\xc0\xab\x30\x14\x86\xc1\x70\x78\x0d\x46\xc0\xeb\x30\x12\xde\x80" "\x51\x30\x1a\xc6\xc0\x9b\x30\x16\xc6\xc1\x78\x98\x00\x13\x61\x12\x4c" "\x86\xb7\x60\x0a\xbc\x0d\x53\xe1\x1d\x98\x06\xd3\x61\x06\xcc\x84\x59" "\x30\x1b\xe6\xc0\xbb\x30\x17\xde\x83\x79\xf0\x3e\x24\x23\xc0\x7c\x58" "\x00\x0b\x61\x11\x2c\x86\x0f\x21\x05\x96\x40\x2a\x7c\x04\x4b\xe1\x63" "\x48\x83\x65\xb0\x1c\x56\xc0\x4a\x58\x05\xab\x61\x0d\xac\x85\x75\xb0" "\x1e\x36\xc0\x46\xd8\x04\x9b\x61\x0b\x6c\x85\x6d\xb0\x1d\x76\xc0\x4e" "\xd8\x05\xbb\x61\x4f\x95\xbd\xf0\x09\xec\x83\x4f\x61\x3f\x7c\x06\xe9" "\xf0\xf9\x7f\x32\xff\x2c\xfc\x31\xbf\x2b\x02\x02\x2a\x54\x68\xd0\x60" "\x16\xcc\x82\x09\x98\x80\xd9\x31\x3b\xe6\xc0\x1c\x98\x13\x73\x62\x0c" "\x63\x98\x0b\x73\x61\x6e\xcc\x8d\x79\x30\x0f\xe6\xc3\x7c\x98\x88\x89" "\x58\x10\x0b\x22\x21\x21\x23\x63\x21\x2c\x84\x71\x8c\x63\x11\x2c\x82" "\x49\x98\x84\xc5\xb0\x18\x3a\x74\x58\x12\x4b\x62\x29\xbc\x19\x4b\x63" "\x69\x2c\x83\x65\xb0\x2c\x96\xc5\x72\x58\x1e\xcb\x63\x45\xac\x88\x95" "\xb0\x12\x56\xc6\xca\x58\xf5\xb6\x05\x00\x58\x0d\x6b\x60\x0d\xbc\x0b" "\xef\xc2\xbb\xb1\x36\xd6\xc6\x3a\x58\x07\xeb\x62\x5d\xac\x87\xf5\xb0" "\x3e\xd6\xc7\x06\xd8\x00\x1b\x62\x43\x6c\x84\x8d\xb0\x31\x36\xc6\x26" "\xd8\x04\x9b\x61\x33\x6c\x81\x2d\xb0\x25\xb6\xc4\x56\xd8\x0a\xdb\x60" "\x1b\x6c\x8b\x6d\xb1\x1d\xb6\xc3\xf6\xd8\x1e\x3b\x60\x07\xec\x88\x1d" "\xb1\x13\x76\xc2\xce\xd8\x19\xbb\x60\x17\xec\x8a\xdd\xb0\x1b\xbe\x80" "\x2f\xe0\x8b\xf8\x22\xf6\xc2\x6a\xaa\x0f\xf6\xc5\xbe\xd8\x0f\xfb\xe1" "\x00\x1c\x88\x03\xf1\x65\x1c\x8c\xaf\xe0\x2b\xf8\x2a\x0e\xc5\x61\x38" "\x1c\x5f\xc3\xd7\xf0\x75\x1c\x89\x67\x70\x14\x8e\xc6\x31\x38\x06\x2b" "\xa9\x71\x38\x1e\x27\x20\xab\x49\x38\x19\x27\xe3\x14\x9c\x82\x53\x71" "\x2a\x4e\xc3\xe9\x38\x1d\x67\xe2\x2c\x9c\x8d\x73\x70\x0e\xce\xc5\xf7" "\x30\xe3\x08\x4b\xc6\x0f\xf0\x03\x5c\x80\x0b\x70\x11\x2e\xc6\xc5\x98" "\x82\x4b\x30\x15\x53\x71\x29\x9e\xc5\x34\x5c\x86\xcb\x71\x05\xae\xc4" "\x55\xb8\x12\xd7\xe0\x5a\x5c\x83\xeb\x71\x03\xae\xc7\x4d\xb8\x09\xb7" "\xe0\x16\xdc\x86\xdb\x70\x07\xee\xc0\x5d\xb8\x0b\xf7\xe0\x1e\xfc\x04" "\x3f\xc1\x4f\xf1\x53\x1c\x8a\xe9\x98\x8e\x07\xf0\x00\x1e\xc4\x83\x78" "\x08\x0f\xe1\x61\x3c\x8c\x47\xf0\xc8\xb6\xab\x00\xf0\x18\x1e\xc3\xe3" "\x78\x1c\x4f\xe0\x49\x3c\x85\x27\xf1\x34\x9e\xc6\x33\x78\x16\xcf\xe1" "\x39\x3c\x8f\xe7\xf1\x02\x3e\x97\xf8\x55\xc3\x3d\x45\xd7\x0d\x05\x95" "\xc1\x28\xa3\xb2\xa8\x2c\x2a\x41\x25\xa8\xec\x2a\xbb\xca\xa1\x72\xa8" "\x9c\x2a\xa7\x8a\xa9\x98\xca\xa5\x72\xa9\xdc\x2a\xb7\xca\xa3\xf2\xa8" "\x7c\x2a\x9f\x4a\x54\x89\xaa\xa0\x2a\xa8\x48\x91\x62\x15\xa9\x42\xaa" "\x90\x8a\xab\xb8\x2a\xa2\x8a\xa8\x24\x95\xa4\x8a\xa9\x62\xca\x29\xa7" "\x4a\xaa\x92\xaa\x94\x2a\xa5\x4a\xab\xd2\xaa\x8c\xba\x55\x95\x55\xb7" "\xa9\x72\xaa\xbc\x6a\xed\x2a\xaa\x8a\xaa\x92\x6a\xe3\x2a\xab\x2a\xaa" "\xaa\xaa\xaa\xaa\xa9\xea\xaa\x86\xaa\xa9\x6a\xaa\x5a\xaa\x96\xaa\xad" "\x6a\xab\x3a\xaa\x8e\xaa\xab\xea\xaa\x7a\xea\x7e\x55\x5f\xf5\xc1\x01" "\xf8\xa0\xca\xe8\x4c\x23\x35\x0c\x1b\xab\xe1\xd8\x44\x35\x55\xcd\x54" "\x73\xf5\x3a\x3e\xaa\x5a\xaa\x91\xd8\x4a\xb5\x56\x6d\xd4\xe3\x6a\x34" "\x8e\xc2\x76\xaa\xa5\x6b\xaf\x9e\x52\x1d\xd4\x78\xec\xa8\x9e\x49\xf8" "\xfd\x85\xae\x8b\x7a\x5e\x75\x55\xdd\x54\x77\xf5\x82\xea\xa1\x5a\xb9" "\x9e\xaa\x97\x9a\x86\x7d\x54\x5f\x35\x13\xfb\xa9\xfe\x6a\x80\x1a\xa8" "\xe6\x62\x75\xf5\x3e\x26\x63\x0d\xf5\xaa\x1a\xaa\x86\xa9\xe1\xea\x35" "\xb5\x08\x5f\x57\x23\xd5\x1b\x6a\x94\x1a\xad\xc6\xa8\x37\xd5\x58\x35" "\x4e\x8d\x57\x13\xd4\x44\x35\x49\x4d\x56\x6f\xa9\x29\xea\x6d\x35\x55" "\xbd\xa3\xa6\xa9\xe9\x6a\x86\x9a\xa9\x66\xa9\xd9\x6a\x8e\x7a\x57\xcd" "\x55\xef\xa9\x79\xea\x7d\x95\xac\x3e\x50\xf3\xd5\x02\xb5\x50\x2d\x52" "\x8b\xd5\x87\x2a\x45\x2d\x51\xa9\xea\x23\xb5\x54\x7d\xac\xd2\xd4\x32" "\xb5\x5c\xad\x50\x2b\xd5\x2a\xb5\x5a\xad\x51\x6b\xd5\x3a\xb5\x5e\x6d" "\x50\x1b\xd5\x26\xb5\x59\x6d\x51\x5b\xd5\x36\xb5\x5d\xed\x50\x3b\xd5" "\x2e\xb5\x5b\xed\x51\x7b\xd5\x27\x6a\x9f\xfa\x54\xed\x57\x9f\xa9\x74" "\xf5\xb9\xca\x78\xfd\x3e\xa8\xbe\x50\x87\xd4\x97\xea\xb0\xfa\x4a\x1d" "\x51\x5f\xab\xa3\xea\x1b\x75\x4c\x7d\xab\x8e\xab\x5e\xea\x84\x3a\xa9" "\x4e\xa9\xef\xd5\x69\xf5\x83\x3a\xa3\xce\xf6\x39\xa7\x7e\x54\xe7\xd5" "\x4f\xea\x82\xfa\x59\x5d\x54\x5e\x81\x46\xad\xb4\xd6\x46\x07\x3a\x8b" "\xce\xaa\x13\x74\x36\x9d\x5d\x5f\xa5\x73\xe8\xab\x75\x4e\x7d\x8d\x8e" "\xe9\x6b\x75\x2e\x7d\x9d\xce\xad\xaf\xd7\x79\x74\x5e\x9d\x4f\xe7\xd7" "\x89\xba\x80\x2e\xa8\x43\x4d\xda\x6a\xd6\x91\x2e\xa4\x0b\xeb\xb8\xbe" "\x41\x17\xd1\x37\xea\x24\x5d\x54\x17\xd3\xc5\xb5\xd3\x25\x74\x49\x7d" "\x93\x2e\xa5\x6f\xd6\xa5\xf5\x2d\xba\x8c\xbe\x55\x97\xd5\xb7\xe9\x72" "\xba\xbc\xae\xa0\x2b\xea\xdb\x75\x25\x7d\x87\xae\xac\xab\xe8\xaa\xfa" "\x4e\x5d\x4d\x57\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xd6\x3f\xe8\x33\xfa\xac\x3e\xab\x7f\xd4\xe7\xf5\x79\x7d\xe1\xb7" "\xe7\x00\x0c\x1a\x65\xb4\x31\x26\x30\x59\x4c\x56\x93\x60\xb2\x99\xec" "\xe6\x2a\x93\xc3\x5c\x6d\x72\x9a\x6b\x4c\xcc\x5c\x6b\x72\x99\xeb\x4c" "\x6e\x73\xbd\xc9\x63\xf2\x9a\x7c\x26\xbf\x49\x34\x05\x4c\x41\x13\x1a" "\x32\xd6\xb0\x89\x4c\x21\x53\xd8\xc4\xcd\x0d\xa6\x88\xb9\xd1\x24\x99" "\xa2\xa6\x98\x29\x6e\x9c\x29\x61\x4a\x9a\x9b\x4c\xcc\x20\xfc\x2b\xf9" "\x7f\x31\xbf\x15\x33\x7e\x3d\xa6\x4d\x0b\xd3\xc2\xb4\x34\x2d\x4d\x2b" "\xd3\xca\xb4\x31\x6d\x4c\x5b\xd3\xd6\xb4\x33\xed\x4c\x7b\xd3\xde\x74" "\x30\x1d\x4c\x47\xd3\xd1\x74\x32\x9d\x4c\x67\xd3\xd9\x74\x31\x5d\x4c" "\x57\xd3\xd5\x74\x37\xdd\x4d\x0f\xd3\xc3\xf4\x44\x30\xbd\x4d\x6f\xd3" "\xd7\xbc\x64\xfa\x99\xfe\x66\x80\x19\x68\x06\x99\x97\x4d\x46\xe1\x21" "\x66\x88\x19\x6a\x86\x9a\xe1\x66\xb8\x19\x61\x46\x98\x91\x66\xa4\x19" "\x65\x46\x99\x8c\x9d\x63\xcd\x58\x33\xde\x8c\x37\x13\xcd\x44\x33\xd9" "\x4c\x36\x53\xcc\x14\x33\xd5\x4c\x35\xd3\xcc\x34\x33\xc3\xcc\x30\xb3" "\xcc\x2c\x33\xc7\xcc\x31\x73\xcd\x5c\x33\xcf\xcc\x33\xc9\x26\xd9\xcc" "\x37\xf3\xcd\x42\xb3\xd0\x2c\x36\x8b\x4d\x8a\x49\x31\xa9\x26\xd5\x2c" "\x35\x4b\x4d\x9a\x59\x66\x96\x99\x15\x66\x85\x59\x65\x56\x99\x35\x66" "\x8d\x59\x67\xd6\x99\x0d\x66\x83\xd9\x64\x36\x99\x34\xb3\xd5\x6c\x35" "\xdb\xcd\x76\xb3\xd3\xec\x34\xbb\xcd\x6e\xb3\xd7\xec\x35\xfb\xcc\x3e" "\xb3\xdf\xec\x37\xe9\x26\xdd\x1c\x30\x07\xcc\x41\x73\xd0\x1c\x32\x87" "\xcc\x61\x73\xd8\x1c\x31\x47\xcc\x51\x73\xd4\x1c\x33\xc7\xcc\x71\x73" "\xdc\x9c\x30\x27\xcc\x29\x73\xca\x9c\x36\xa7\xcd\x19\x73\xc6\x9c\x33" "\xe7\xcc\x79\x73\xde\x5c\x30\x17\xcc\x45\x73\x31\xe3\xb4\x2f\x50\x81" "\x0a\x4c\x60\x82\x2c\x41\x96\x20\x21\x48\x08\xb2\x07\xd9\x83\x1c\x41" "\x8e\x20\x67\x90\x33\x88\x05\xb1\x20\x57\x90\x2b\xc8\x1d\x5c\x1f\xe4" "\x09\xf2\x06\xf9\x82\xfc\x41\x62\x50\x20\x28\x18\x84\x01\x05\x36\xe0" "\x20\x0a\x0a\x05\x85\x83\x78\x70\x43\x50\x24\xb8\x31\x48\x0a\x8a\x06" "\xc5\x82\xe2\x81\x0b\x4a\x04\x25\x83\x9b\x82\x52\xc1\xcd\x41\xe9\xe0" "\x96\xa0\x4c\x70\x6b\x50\x36\xb8\x2d\x28\x17\x94\x0f\x2a\x04\x15\x83" "\xdb\x83\x4a\xc1\x1d\x41\xe5\xa0\x4a\x50\x35\xb8\x33\xa8\x16\x54\x0f" "\x6a\x04\x35\x83\xbb\x82\x5a\xc1\xdd\x41\xed\xe0\x9e\xa0\x4e\x70\x6f" "\x50\x37\xb8\x2f\xa8\x17\xdc\x1f\xd4\x0f\x1e\x08\x1a\x04\x0f\x06\x0d" "\x83\x87\x82\x46\xc1\xc3\x41\xe3\xe0\x91\xa0\x49\xd0\x34\x68\x16\x34" "\x0f\x5a\xfc\xad\xf5\xbd\x3f\x93\xf7\x31\xd7\x33\xec\x15\x66\x85\x3e" "\x61\xdf\xf0\xa5\xb0\x5f\xd8\x3f\x1c\x10\x0e\x0c\x07\x85\x2f\x87\x83" "\xc3\x57\xc2\x21\xe1\xab\xe1\xd0\x70\x58\x38\x3c\x7c\x2d\x1c\x11\xbe" "\x1e\x8e\x0c\xdf\x08\x47\x85\xa3\xc3\x31\xe1\x9b\xe1\xd8\x70\x5c\x38" "\x3e\x9c\x10\x4e\x0c\x27\x85\x93\xc3\xb7\xc2\x29\xe1\xdb\xe1\xd4\xf0" "\x9d\x70\x5a\x38\x3d\x9c\x11\xce\x0c\x67\x85\xb3\xc3\x39\xe1\xbb\xe1" "\xdc\xf0\xbd\x70\x5e\xf8\x7e\x98\x1c\x7e\x10\xce\x0f\x17\x84\x0b\xc3" "\x45\xe1\xe2\xf0\xc3\x30\x25\x5c\x12\xa6\x86\x1f\x85\x4b\xc3\x8f\xc3" "\xb4\x70\x59\xb8\x3c\x5c\x11\xae\x0c\x57\x85\xab\xc3\x35\xe1\xda\x70" "\x5d\xb8\x3e\xdc\x10\x6e\x0c\x37\x85\x9b\xc3\x2d\xe1\xd6\x70\x5b\xb8" "\x3d\xdc\x11\xee\x0c\x77\x85\xbb\xc3\x3d\xe1\xde\xf0\x93\x70\x5f\xf8" "\x69\xb8\x3f\xfc\x2c\x4c\x0f\x3f\x0f\x0f\x84\xbf\xbf\xed\x7d\x19\x1e" "\x0e\xbf\x0a\x8f\x84\x5f\x87\x47\xc3\x6f\xc2\x63\xe1\xb7\xe1\xf1\xf0" "\xbb\xf0\x44\x78\x32\x3c\x15\x7e\x1f\x9e\x0e\x7f\x08\xcf\x84\x67\xc3" "\x73\xe1\x8f\xe1\xf9\xf0\xa7\xf0\x42\xf8\x73\x78\x31\xf4\x19\x27\xf7" "\x19\x6f\xef\x64\xc8\x50\x16\xca\x42\x09\x94\x40\xd9\x29\x3b\xe5\xa0" "\x1c\x94\x93\x72\x52\x8c\x62\x94\x8b\x72\x51\x6e\xca\x4d\x79\x28\x0f" "\xe5\xa3\x7c\x94\x48\x89\x54\x90\x0a\x52\x06\x26\xa6\x42\x54\x88\xe2" "\x14\xa7\x22\x54\x84\x92\x28\x89\x8a\x51\x31\x72\xe4\xa8\x24\x95\xa4" "\x52\x54\x8a\x4a\x53\x69\x2a\x43\x65\xa8\x2c\x95\xa5\x72\x54\x8e\x2a" "\x50\x05\xba\x9d\x6e\xa7\x3b\xe8\x0e\xaa\x42\x55\xe8\x4e\xba\x93\xaa" "\x53\x75\xaa\x49\x35\xa9\x16\xd5\xa2\xda\x54\x9b\xea\x50\x1d\xaa\x4b" "\x75\xa9\x1e\xd5\xa3\xfa\x54\x9f\x1a\x50\x03\x6a\x48\x0d\xa9\x11\x35" "\xa2\xc6\xd4\x98\x9a\x50\x13\x6a\x46\xcd\xa8\x05\xb5\xa0\x96\xd4\x92" "\x5a\x51\x2b\x6a\x43\x6d\xa8\x2d\xb5\xa5\x76\xd4\x8e\xda\x53\x7b\xea" "\x40\x1d\xa8\x23\x75\xa4\x4e\xd4\x89\x3a\x53\x67\xea\x42\x5d\xa8\x2b" "\x75\xa5\xee\xd4\x9d\x7a\x50\x0f\xea\x49\x3d\xa9\x37\xf5\xa6\xbe\xd4" "\x97\xfa\x51\x3f\x1a\x40\x03\x68\x10\x0d\xa2\xc1\x34\x98\x86\xd0\x10" "\x1a\x4a\x43\x69\x38\x0d\xa7\x11\x34\x82\x46\xd2\x48\x1a\x45\xa3\x69" "\x0c\xbd\x49\x63\x69\x1c\x8d\xa7\x09\x34\x91\x26\xd1\x64\x9a\x4c\x53" "\x68\x0a\x4d\xa5\xa9\x34\x8d\xa6\xd1\x0c\x9a\x41\xb3\x68\x16\xcd\xa1" "\x39\x34\x97\xe6\xd2\x3c\x9a\x47\xc9\x94\x4c\xf3\x69\x3e\x2d\xa4\x85" "\xb4\x98\x16\x53\x0a\xa5\x50\x2a\xa5\xd2\x52\x5a\x4a\x69\x94\x46\xcb" "\x69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6c\x07" "\xdb\x57\xec\x10\xfb\xaa\x1d\x6a\x87\xfd\x29\x1e\x63\xdf\xb4\x63\xed" "\x38\x3b\xde\x4e\xb0\x13\xed\xa4\x3f\xc5\x33\xec\x4c\x3b\xcb\xce\xb6" "\x73\xec\xbb\x76\xae\x7d\xef\x4f\xf1\x62\xfb\xa1\x4d\xb6\xa9\x76\xbe" "\x5d\x60\x17\xda\x45\xbf\xc4\x19\x73\x4a\xb5\x1f\xd9\xa5\xf6\x63\x9b" "\x66\x97\xd9\xe5\x76\x85\x5d\x69\x57\xd9\xd5\x76\xcd\x3f\xe6\xba\xc2" "\x6e\xb2\x9b\xed\x16\xbb\xd7\x7e\x62\xb7\xdb\x1d\x76\xa7\xdd\x65\x77" "\xdb\x3d\xbf\xc4\x19\xeb\xd8\x6f\x3f\xb3\xe9\xf6\x73\x7b\xc4\x7e\x6d" "\x0f\xda\x2f\xec\x21\x7b\xcc\x1e\xb6\x5f\xfd\x12\x67\xac\xef\x98\xfd" "\xd6\x1e\xb7\xdf\xd9\x13\xf6\xa4\x3d\x65\xbf\xb7\xa7\xed\x0f\xf6\x8c" "\x3d\xfb\xcb\xfa\x33\xd6\xfe\xbd\xfd\xd9\x5e\xb4\xde\x02\x23\x2b\xd6" "\x6c\x38\xe0\x2c\x9c\x95\x13\x38\x1b\x67\xe7\xab\x38\x07\x5f\xcd\x39" "\xf9\x1a\x8e\xf1\xb5\x9c\x8b\xaf\xe3\xdc\x7c\x3d\xe7\xe1\xbc\x9c\x8f" "\xf3\x73\x22\x17\xe0\x82\x1c\x32\xb1\x65\xe6\x88\x0b\x71\x61\x8e\xf3" "\x0d\x5c\x84\x6f\xe4\x24\x2e\xca\xc5\xb8\x38\x3b\x2e\xc1\x25\xf9\x26" "\x2e\xc5\x37\x73\x69\xce\x38\x7b\xbd\x95\xcb\xf2\x6d\x5c\x8e\xcb\x73" "\x05\xae\xc8\xb7\x73\x25\xbe\x83\x2b\x73\x15\xae\xca\x77\x72\x35\xae" "\xce\x35\xb8\x26\xdf\xc5\xb5\xf8\x6e\xae\xcd\xf7\x70\x1d\xbe\x97\xeb" "\xf2\x7d\x5c\x8f\xef\xe7\xfa\xfc\x00\x37\xe0\x07\xb9\x21\x3f\xc4\x8d" "\xf8\x61\x6e\xcc\x8f\x70\x13\x6e\xca\xcd\xb8\x39\xb7\xe0\x47\xb9\x25" "\x3f\xc6\xad\xb8\x35\xb7\xe1\xc7\xb9\x2d\x3f\xc1\xed\xf8\x49\x6e\xcf" "\x4f\x71\x07\x7e\x9a\x3b\xf2\x33\xdc\x89\x9f\xe5\xce\xfc\x1c\x77\xe1" "\xe7\xb9\x2b\x77\xe3\xee\xfc\x02\xf7\xe0\x17\xb9\x27\xf7\xe2\xde\xdc" "\x87\xfb\xf2\x4b\xdc\x8f\xfb\xf3\x00\x1e\xc8\x83\xf8\x65\x1e\xcc\xaf" "\xf0\x10\x7e\x95\x87\xf2\x30\x1e\xce\xaf\xf1\x08\x7e\x9d\x47\xf2\x1b" "\x3c\x8a\x47\xf3\x18\x7e\x93\xc7\xf2\x38\x1e\xcf\x13\x78\x22\x4f\xe2" "\xc9\xfc\x16\x4f\xe1\xb7\x79\x2a\xbf\xc3\xd3\x78\x3a\xcf\xe0\x99\x3c" "\x8b\x67\xf3\x1c\x7e\x97\xe7\xf2\x7b\x3c\x8f\xdf\xe7\x64\xfe\x80\xe7" "\xf3\x02\x5e\xc8\x8b\x78\x31\x7f\xc8\x29\xbc\x84\x53\xf9\x23\x5e\xca" "\x1f\x73\x1a\x2f\xe3\xe5\xbc\x82\x57\xf2\x2a\x5e\xcd\x6b\x78\x2d\xaf" "\xe3\xf5\xbc\x81\x37\xf2\x26\xde\xcc\x5b\x78\x2b\x6f\xe3\xed\xbc\x83" "\x91\x77\xf1\x6e\xde\xc3\x7b\xf9\x13\xde\xc7\x9f\xf2\x7e\xfe\x8c\xd3" "\xf9\x73\x3e\xc0\xff\xc6\x07\xf9\x0b\x3e\xc4\x5f\xf2\x61\xfe\x8a\x8f" "\xf0\xd7\x7c\x94\xbf\xe1\x63\xfc\x2d\x1f\xe7\xef\xf8\x04\x9f\xe4\x53" "\xfc\x3d\x9f\xe6\x1f\xf8\x0c\x9f\xe5\x73\xfc\x23\x9f\xe7\x9f\xf8\x02" "\xff\xcc\x17\xd9\x33\x44\x18\xa9\x48\x47\x26\x0a\xa2\x2c\x51\xd6\x28" "\x21\xca\x16\x65\x8f\xae\x8a\x72\x44\x57\x47\x39\xa3\x6b\xa2\x58\x74" "\x6d\x94\x2b\xba\x2e\xca\x1d\x5d\x1f\xe5\x89\xf2\x46\xf9\xa2\xfc\x51" "\x62\x54\x20\x2a\x18\x85\x11\x45\x36\xe2\x28\x8a\x0a\x45\x85\xa3\x78" "\x74\x43\x54\x24\xba\x31\x4a\x8a\x8a\x46\xc5\xa2\xe2\x91\x8b\x4a\x44" "\x25\xa3\x9b\xa2\x52\xd1\xcd\x51\xe9\xe8\x96\xa8\x4c\x74\x6b\x54\x36" "\xba\x2d\x2a\x17\x95\x8f\x1e\xbe\xb7\x62\x74\x7b\x54\x29\xba\x23\xaa" "\x1c\x55\x89\xaa\x46\x77\x46\xd5\xa2\xea\x51\x8d\xa8\x66\x74\x57\x54" "\x2b\xba\x3b\xaa\x1d\xdd\x13\xd5\x89\xee\x8d\x4a\x47\xf7\x45\xf5\xa2" "\xfb\xa3\xfa\xd1\x03\x51\x03\x78\x30\x6a\x18\x3d\x14\x35\x8a\x1e\x8e" "\x1a\x47\x8f\x44\x4d\xa2\xa6\x51\xb3\xa8\x79\xd4\x22\x7a\x34\x6a\x19" "\x3d\x16\xb5\x8a\x5a\x47\x6d\xa2\xc7\xa3\xb6\xd1\x13\x51\xbb\xe8\xc9" "\xa8\x7d\xf4\x54\xd4\x21\x7a\xfa\xb2\xfb\x7b\x47\x7d\xa2\xbe\xd1\x4b" "\xd1\x4b\x91\xf7\xf7\xe8\x85\xf1\x45\xf1\xc5\xf1\x0f\xe3\x29\xf1\x25" "\xf1\xd4\xf8\x47\xf1\xa5\xf1\x8f\xe3\x69\xf1\x65\xf1\xe5\xf1\x15\xf1" "\x95\xf1\x55\xf1\xd5\xf1\x35\xf1\xb5\xf1\x75\xf1\xf5\xf1\x0d\xf1\x8d" "\xf1\x4d\xf1\xcd\xf1\x2d\x71\xef\x6b\x66\x05\x87\x4e\x39\xed\x8c\x0b" "\x5c\x16\x97\xd5\x25\xb8\x6c\x2e\xbb\xbb\xca\xe5\x70\x57\xbb\x9c\xee" "\x1a\x17\x73\xd7\xba\x5c\xee\x3a\x97\xdb\x5d\xef\xf2\xb8\xbc\x2e\x9f" "\xcb\xef\x12\x5d\x01\x57\xd0\x85\x8e\x9c\x75\xec\x22\x57\xc8\x15\x76" "\x71\x77\x83\x2b\xe2\x6e\x74\x49\xae\xa8\x2b\xe6\x8a\x3b\xe7\x4a\xb8" "\x92\xae\xb9\x6b\xe1\x5a\xb8\x96\xee\x31\xd7\xca\xb5\x76\x6d\xdc\xe3" "\xee\x71\xf7\x84\x7b\xc2\x3d\xe9\x9e\x74\x4f\xb9\x0e\xee\x69\xd7\xd1" "\x3d\xe3\x3a\xb9\x67\x5d\x67\xf7\x9c\x7b\xce\x3d\xef\xba\xba\x6e\xae" "\xbb\x7b\xc1\xf5\x70\x2f\xba\x9e\xae\x97\xeb\xed\x7a\xbb\xbe\xae\xaf" "\xeb\xe7\xfa\xb9\x01\x6e\x80\x1b\xe4\x06\xb9\xc1\x6e\xb0\x1b\xe2\x86" "\xb8\xa1\x6e\xa8\x1b\xee\x86\xbb\x11\x6e\x84\x1b\xe9\x46\xba\x51\x6e" "\x94\x1b\xe3\xc6\xb8\xb1\x6e\xac\x1b\xef\xc6\xbb\x89\x6e\xa2\x9b\xec" "\x26\xbb\x29\x6e\x8a\x9b\xea\xa6\xba\x69\x6e\x9a\x9b\xe1\x66\xb8\x59" "\x6e\x96\x9b\xe3\xe6\xb8\xb9\x6e\xae\x9b\xe7\xe6\xb9\xe4\xa4\x64\x37" "\xdf\xcd\x77\x0b\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\x3f\xeb\xcf\xf9\x1f\xfd\x79\xff\x93" "\xbf\xe0\x7f\xf6\x17\xe5\x6f\xd6\x84\x10\x42\x08\x21\xfe\x29\xfa\x32" "\xfb\xfb\xfc\x21\x52\xff\xf8\xaa\x7e\xfb\x4e\x5f\x00\xb8\x7a\x47\xfe" "\xc3\xff\xb1\xe6\xc6\x3c\xbf\x8e\xfb\xab\xc4\xb6\x31\x00\x78\xaa\x57" "\x97\x07\x7f\xdf\xaa\x55\xeb\xdd\xbb\xf7\x6f\xf7\x4d\xd3\x10\x14\x5e" "\x00\x00\xb1\x4b\xf9\x59\xe0\x52\xbc\x0c\xda\xc0\x13\xd0\x1e\x5a\x43" "\xa9\xff\xed\xfc\xfa\xab\x6e\xe7\xf9\x32\xf5\xe3\xb7\x02\x64\xff\x77" "\x39\x09\x70\x29\xbe\x54\xff\xe6\xbf\xa8\x3f\x2e\xf9\xb2\xf5\x17\x00" "\x24\x15\xbe\x94\x93\x0d\x2e\xc5\x97\xea\x97\xfe\x53\xed\xe0\x97\xfa" "\x79\x5b\x5e\xa6\x7e\xb6\x2f\x26\x03\xb4\xfa\x77\x79\x39\xe0\x52\x7c" "\xa9\x7e\x49\x78\x0c\x9e\x86\xf6\x7f\xb8\xa7\x10\x42\x08\x21\x84\x10" "\x42\x08\xf1\xab\xfe\xaa\x42\xa7\xcb\x7d\xbe\xcd\xf8\x7c\x9e\x68\x2e" "\xe5\x64\x85\x4b\xf1\xe5\x3e\x9f\x0b\x21\x84\x10\x42\x08\x21\x84\x10" "\xe2\xca\x7b\xb6\x5b\xf7\x27\x1f\x6d\xdf\xbe\x75\xa7\xbf\x18\x54\xf9" "\xeb\x5d\x32\xc8\x2c\x83\x2c\xff\x3d\xa6\x71\x25\x06\x97\x3d\x40\xfe" "\x33\x03\x80\x2b\xbd\x9c\x7f\x0c\x10\xe0\x97\x4b\x7c\x7f\x7d\x9f\x2b" "\xfd\xca\x24\x84\x10\x42\x08\x21\x84\xf8\xbb\x5d\x3a\xe9\xbf\xd2\x33" "\x11\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21" "\x84\x10\x42\x08\x21\x32\xaf\xff\x17\xff\x72\xec\x4a\xaf\x51\x08\x21" "\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10" "\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08" "\x21\x84\x10\x42\x08\x21\x84\x10\x42\x08\x21\x84\xb8\xd2\xfe\x57\x00" "\x00\x00\xff\xff\xdf\x08\x27\xfc", 5414); syz_mount_image(/*fs=*/0x200000000540, /*dir=*/0x200000000040, /*flags=MS_SYNCHRONOUS*/ 0x10, /*opts=*/0x200000000300, /*chdir=*/1, /*size=*/0x1526, /*img=*/0x200000000780); break; case 1: // mkdir arguments: [ // path: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // mode: open_mode = 0x10b (8 bytes) // ] memcpy((void*)0x200000000040, "./bus\000", 6); syscall(__NR_mkdir, /*path=*/0x200000000040ul, /*mode=S_IXOTH|S_IWOTH|S_IXGRP|S_IRUSR*/ 0x10bul); break; case 2: // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x200000000240, ".\000", 2); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000240ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; break; case 3: // ioctl$FS_IOC_REMOVE_ENCRYPTION_KEY arguments: [ // fd: fd_dir (resource) // cmd: const = 0x8004587d (4 bytes) // arg: ptr[inout, fscrypt_remove_key_arg] { // fscrypt_remove_key_arg { // key_spec: union fscrypt_key_specifier { // desc: fscrypt_key_specifier__by_descriptor { // type: const = 0x1 (4 bytes) // reserved: const = 0x0 (4 bytes) // descriptor: union fscrypt_key_descriptor { // desc2: buffer: {e3 55 a7 6a 11 a1 be 18} (length 0x8) // } // reserved2: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 // 00 00 00 00 00 00 00 00 00 00} (length 0x18) // } // } // removal_status_flags: int32 = 0x0 (4 bytes) // reserved: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // 00 00 00 00} (length 0x14) // } // } // ] *(uint32_t*)0x200000000080 = 1; *(uint32_t*)0x200000000084 = 0; memcpy((void*)0x200000000088, "\343U\247j\021\241\276\030", 8); memset((void*)0x200000000090, 0, 24); memset((void*)0x2000000000ac, 0, 20); syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x8004587d, /*arg=*/0x200000000080ul); break; case 4: // openat$smackfs_access arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: nil // flags: const = 0x2 (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd_smackfs_access res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0ul, /*flags=*/2, /*mode=*/0); if (res != -1) r[1] = res; break; case 5: // read$smackfs_access arguments: [ // fd: fd_smackfs_access (resource) // buf: nil // count: len = 0x0 (8 bytes) // ] syscall(__NR_read, /*fd=*/r[1], /*buf=*/0ul, /*count=*/0ul); break; case 6: // openat arguments: [ // fd: fd_dir (resource) // file: nil // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[2] = res; break; case 7: // fchown arguments: [ // fd: fd (resource) // uid: uid (resource) // gid: gid (resource) // ] syscall(__NR_fchown, /*fd=*/r[2], /*uid=*/0, /*gid=*/0xee01); break; case 8: // openat$sysctl arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: nil // flags: const = 0x1 (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd_sysctl res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0ul, /*flags=*/1, /*mode=*/0); if (res != -1) r[3] = res; break; case 9: // pwritev2 arguments: [ // fd: fd (resource) // vec: nil // vlen: len = 0x0 (8 bytes) // off_low: int32 = 0x6 (4 bytes) // off_high: int32 = 0x1 (4 bytes) // flags: rwf_flags = 0x2 (8 bytes) // ] syscall(__NR_pwritev2, /*fd=*/r[3], /*vec=*/0ul, /*vlen=*/0ul, /*off_low=*/6, /*off_high=*/1, /*flags=RWF_DSYNC*/ 2ul); break; case 10: // fchmodat arguments: [ // dirfd: fd_dir (resource) // file: nil // mode: open_mode = 0xfffffffb (8 bytes) // ] syscall( __NR_fchmodat, /*dirfd=*/0xffffff9c, /*file=*/0ul, /*mode=S_IXOTH|S_IWOTH|S_IXGRP|S_IWGRP|S_IRGRP|S_IXUSR|S_IWUSR|0xffffff00*/ 0xfffffffbul); break; case 11: // openat$cgroup_ro arguments: [ // fd: fd_cgroup (resource) // file: nil // flags: const = 0x26e1 (4 bytes) // mode: const = 0xfffffffb (2 bytes) // ] // returns fd syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0ul, /*flags=*/0x26e1, /*mode=*/0xfffb); break; case 12: // openat arguments: [ // fd: fd_dir (resource) // file: nil // flags: open_flags = 0x101000 (4 bytes) // mode: open_mode = 0x60 (2 bytes) // ] // returns fd syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0ul, /*flags=O_SYNC*/ 0x101000, /*mode=S_IRGRP|S_IXUSR*/ 0x60); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); do_sandbox_none(); } } sleep(1000000); return 0; }