// 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 #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #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; } struct nlmsg { char* pos; int nesting; struct nlattr* nested[8]; char buf[4096]; }; static void netlink_init(struct nlmsg* nlmsg, int typ, int flags, const void* data, int size) { memset(nlmsg, 0, sizeof(*nlmsg)); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_type = typ; hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | flags; memcpy(hdr + 1, data, size); nlmsg->pos = (char*)(hdr + 1) + NLMSG_ALIGN(size); } static void netlink_attr(struct nlmsg* nlmsg, int typ, const void* data, int size) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_len = sizeof(*attr) + size; attr->nla_type = typ; if (size > 0) memcpy(attr + 1, data, size); nlmsg->pos += NLMSG_ALIGN(attr->nla_len); } static void netlink_nest(struct nlmsg* nlmsg, int typ) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_type = typ; nlmsg->pos += sizeof(*attr); nlmsg->nested[nlmsg->nesting++] = attr; } static void netlink_done(struct nlmsg* nlmsg) { struct nlattr* attr = nlmsg->nested[--nlmsg->nesting]; attr->nla_len = nlmsg->pos - (char*)attr; } static int netlink_send_ext(struct nlmsg* nlmsg, int sock, uint16_t reply_type, int* reply_len, bool dofail) { if (nlmsg->pos > nlmsg->buf + sizeof(nlmsg->buf) || nlmsg->nesting) exit(1); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_len = nlmsg->pos - nlmsg->buf; struct sockaddr_nl addr; memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; ssize_t n = sendto(sock, nlmsg->buf, hdr->nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr)); if (n != (ssize_t)hdr->nlmsg_len) { if (dofail) exit(1); return -1; } n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); if (reply_len) *reply_len = 0; if (n < 0) { if (dofail) exit(1); return -1; } if (n < (ssize_t)sizeof(struct nlmsghdr)) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type == NLMSG_DONE) return 0; if (reply_len && hdr->nlmsg_type == reply_type) { *reply_len = n; return 0; } if (n < (ssize_t)(sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr))) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type != NLMSG_ERROR) { errno = EINVAL; if (dofail) exit(1); return -1; } errno = -((struct nlmsgerr*)(hdr + 1))->error; return -errno; } static int netlink_send(struct nlmsg* nlmsg, int sock) { return netlink_send_ext(nlmsg, sock, 0, NULL, true); } static int netlink_query_family_id(struct nlmsg* nlmsg, int sock, const char* family_name, bool dofail) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = CTRL_CMD_GETFAMILY; netlink_init(nlmsg, GENL_ID_CTRL, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, CTRL_ATTR_FAMILY_NAME, family_name, strnlen(family_name, GENL_NAMSIZ - 1) + 1); int n = 0; int err = netlink_send_ext(nlmsg, sock, GENL_ID_CTRL, &n, dofail); if (err < 0) { return -1; } uint16_t id = 0; struct nlattr* attr = (struct nlattr*)(nlmsg->buf + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg->buf + n; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == CTRL_ATTR_FAMILY_ID) { id = *(uint16_t*)(attr + 1); break; } } if (!id) { errno = EINVAL; return -1; } recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); return id; } static unsigned int queue_count = 2; static void netlink_add_device_impl(struct nlmsg* nlmsg, const char* type, const char* name, bool up) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; netlink_init(nlmsg, RTM_NEWLINK, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); if (name) netlink_attr(nlmsg, IFLA_IFNAME, name, strlen(name)); netlink_attr(nlmsg, IFLA_NUM_TX_QUEUES, &queue_count, sizeof(queue_count)); netlink_attr(nlmsg, IFLA_NUM_RX_QUEUES, &queue_count, sizeof(queue_count)); netlink_nest(nlmsg, IFLA_LINKINFO); netlink_attr(nlmsg, IFLA_INFO_KIND, type, strlen(type)); } static void netlink_device_change(struct nlmsg* nlmsg, int sock, const char* name, bool up, const char* master, const void* mac, int macsize, const char* new_name) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; hdr.ifi_index = if_nametoindex(name); netlink_init(nlmsg, RTM_NEWLINK, 0, &hdr, sizeof(hdr)); if (new_name) netlink_attr(nlmsg, IFLA_IFNAME, new_name, strlen(new_name)); if (master) { int ifindex = if_nametoindex(master); netlink_attr(nlmsg, IFLA_MASTER, &ifindex, sizeof(ifindex)); } if (macsize) netlink_attr(nlmsg, IFLA_ADDRESS, mac, macsize); int err = netlink_send(nlmsg, sock); if (err < 0) { } } static struct nlmsg nlmsg; //% 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; } #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")) { } } #define NL802154_CMD_SET_SHORT_ADDR 11 #define NL802154_ATTR_IFINDEX 3 #define NL802154_ATTR_SHORT_ADDR 10 static const char* setup_802154() { const char* error = NULL; int sock_generic = -1; int sock_route = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock_route == -1) { error = "socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) failed"; goto fail; } sock_generic = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock_generic == -1) { error = "socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) failed"; goto fail; } { int nl802154_family_id = netlink_query_family_id(&nlmsg, sock_generic, "nl802154", true); if (nl802154_family_id < 0) { error = "netlink_query_family_id failed"; goto fail; } for (int i = 0; i < 2; i++) { char devname[] = "wpan0"; devname[strlen(devname) - 1] += i; uint64_t hwaddr = 0xaaaaaaaaaaaa0002 + (i << 8); uint16_t shortaddr = 0xaaa0 + i; int ifindex = if_nametoindex(devname); struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL802154_CMD_SET_SHORT_ADDR; netlink_init(&nlmsg, nl802154_family_id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, NL802154_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(&nlmsg, NL802154_ATTR_SHORT_ADDR, &shortaddr, sizeof(shortaddr)); if (netlink_send(&nlmsg, sock_generic) < 0) { error = "NL802154_CMD_SET_SHORT_ADDR failed"; goto fail; } netlink_device_change(&nlmsg, sock_route, devname, true, 0, &hwaddr, sizeof(hwaddr), 0); if (i == 0) { netlink_add_device_impl(&nlmsg, "lowpan", "lowpan0", false); netlink_done(&nlmsg); netlink_attr(&nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); if (netlink_send(&nlmsg, sock_route) < 0) { error = "netlink: adding device lowpan0 type lowpan link wpan0"; goto fail; } } } } fail: close(sock_route); close(sock_generic); return error; } 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 < 4; 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); } 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[1] = {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 31 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 0x1527) // } // ] // returns fd_dir memcpy((void*)0x200000000540, "exfat\000", 6); memcpy((void*)0x200000000040, "./file1\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*)0x200000003f80, "\x78\x9c\xec\xdc\x0b\xbc\x4d\x55\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\xdf\xe9\xf2\x78\x7a\xfb\xfa\x3c\xef\xfb\x3c\xdf\xe7\xf9\xde\x33" "\xfe\xbf\xdf\xb2\xe7\xb0\xf6\x18\x7b\xce\x3d\xce\xda\x7b\xed\x75\x2e" "\xdf\x74\x19\x5e\xa3\x51\xcd\xaa\x0d\x98\x19\xfe\x19\xea\xb7\xdb\xde" "\x00\x90\x00\x00\x83\x00\xe0\x1a\x00\x08\x00\xa0\x4c\xae\x32\xb9\x00" "\x01\xb2\x69\xec\xfd\x4f\x3d\x88\xf8\x17\x7b\x70\xd6\x95\x9e\x81\xb8" "\x92\xa4\xff\x99\x9b\xf4\x3f\x73\x93\xfe\x67\x6e\xd2\xff\xcc\x4d\xfa" "\x9f\xb9\x49\xff\x33\x37\xe9\x7f\xe6\x26\xfd\x17\x22\x33\xdb\x3a\x3b" "\xff\xb5\xb2\x65\xde\xed\x9b\x2e\xc3\x6b\x2c\xfb\x87\xae\xff\xdb\xff" "\xf3\x6e\xfc\xf5\x46\xae\xff\xff\x3b\xc9\x76\x99\xfd\xf2\xfe\xff\x3f" "\xd6\x3f\x74\xa4\x49\xff\x33\x37\xe9\x7f\xe6\x26\xfd\xcf\xdc\xa4\xff" "\x99\x9b\xf4\x3f\x73\x93\xfe\x67\x6e\xd2\xff\xcc\x4d\xfa\x2f\x44\x66" "\x76\xa5\xaf\x3f\xff\x7f\xb0\xfd\xfe\x54\x5d\xe9\x79\x5c\x66\x0b\xfe" "\x5b\x79\x57\xf6\xab\x4f\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\x10\x42\x08\x21\x44\x66\x71" "\xce\x5f\x62\x00\xe0\xf7\xf1\x95\x9e\x97\x10\x42\x08\x21\x84\x10\x42" "\x08\x21\xfe\x75\x7c\xd6\x2b\x3d\x03\x21\x84\x10\x42\x08\x21\x84\x10" "\x42\xfc\xdf\x87\x00\x46\x83\x81\x00\xb2\x40\x56\x48\x80\x6c\x90\x1d" "\xae\x82\x1c\x70\x35\xe4\x84\x6b\x20\x06\xd7\x42\x2e\xb8\x0e\x72\xc3" "\xf5\x90\x07\xf2\x42\x3e\xc8\x0f\x89\x50\x00\x0a\x42\x08\x04\x16\x18" "\x22\x28\x04\x85\x21\x0e\xde\x03\xdc\x08\x49\x50\x14\x8a\x41\x71\x70" "\x50\x02\x4a\xc2\x4d\x50\x0a\x6e\x86\xd2\x70\x0b\x94\x81\xe4\x14\x80" "\xdb\xa0\x1c\x94\x87\x0a\x50\x11\x6e\x87\x4a\x70\x07\x54\x86\x2a\x50" "\x15\xee\x84\x6a\x50\x1d\x6a\x40\x4d\xb8\x0b\x6a\xc1\xdd\x50\x1b\xee" "\x81\x3a\x70\x2f\xd4\x85\xfb\xa0\x1e\xdc\x0f\xf5\xe1\x01\x68\x00\x0f" "\x42\x43\x78\x08\x1a\xc1\xc3\xd0\x18\x1e\x81\x26\xd0\x14\x9a\x41\x73" "\x68\xf1\xdf\xca\x7f\x01\x7a\xc0\x8b\xd0\x13\x7a\x41\x6f\xe8\x03\x7d" "\xe1\x25\xe8\x07\xfd\x61\x00\x0c\x84\x41\xf0\x32\x0c\x86\x57\x60\x08" "\xbc\x0a\x43\x61\x18\x0c\x87\xd7\x60\x04\xbc\x0e\x23\xe1\x0d\x18\x05" "\xa3\x61\x0c\xbc\x09\x63\x61\x1c\x8c\x87\x09\x30\x11\x26\xc1\x64\x78" "\x0b\xa6\xc0\xdb\x30\x15\xde\x81\x69\x30\x1d\x66\xc0\x4c\x98\x05\xb3" "\x61\x0e\xbc\x0b\x73\xe1\x3d\x98\x07\xef\x43\x32\x02\xcc\x87\x05\xb0" "\x10\x16\xc1\x62\xf8\x10\x52\x60\x09\xa4\xc2\x47\xb0\x14\x3e\x86\x34" "\x58\x06\xcb\x61\x05\xac\x84\x55\xb0\x1a\xd6\xc0\x5a\x58\x07\xeb\x61" "\x03\x6c\x84\x4d\xb0\x19\xb6\xc0\x56\xd8\x06\xdb\x61\x07\xec\x84\x5d" "\xb0\x1b\xf6\x54\xd9\x0b\x9f\xc0\x3e\xf8\x14\xf6\xc3\x67\x90\x0e\x9f" "\xff\x17\xf3\xcf\xc2\x1f\xf3\xbb\x22\x20\xa0\x42\x85\x06\x0d\x66\xc1" "\x2c\x98\x80\x09\x98\x1d\xb3\x63\x0e\xcc\x81\x39\x31\x27\xc6\x30\x86" "\xb9\x30\x17\xe6\xc6\xdc\x98\x07\xf3\x60\x3e\xcc\x87\x89\x98\x88\x05" "\xb1\x20\x12\x12\x32\x32\x16\xc2\x42\x18\xc7\x38\x16\xc1\x22\x98\x84" "\x49\x58\x0c\x8b\xa1\x43\x87\x25\xb1\x24\x96\xc2\x9b\xb1\x34\x96\xc6" "\x32\x58\x06\xcb\x62\x59\x2c\x87\xe5\xb1\x3c\x56\xc4\x8a\x58\x09\x2b" "\x61\x65\xac\x8c\x55\x6f\x5b\x00\x80\xd5\xb0\x06\xd6\xc0\xbb\xf0\x2e" "\xbc\x1b\x6b\x63\x6d\xac\x83\x75\xb0\x2e\xd6\xc5\x7a\x58\x0f\xeb\x63" "\x7d\x6c\x80\x0d\xb0\x21\x36\xc4\x46\xd8\x08\x1b\x63\x63\x6c\x82\x4d" "\xb0\x19\x36\xc3\x16\xd8\x02\x5b\x62\x4b\x6c\x85\xad\xb0\x0d\xb6\xc1" "\xb6\xd8\x16\xdb\x61\x3b\x6c\x8f\xed\xb1\x03\x76\xc0\x8e\xd8\x11\x3b" "\x61\x27\xec\x8c\x9d\xb1\x0b\x76\xc1\xae\xd8\x0d\xbb\xe1\x0b\xf8\x02" "\xbe\x88\x2f\x62\x2f\xac\xa6\xfa\x60\x5f\xec\x8b\xfd\xb0\x1f\x0e\xc0" "\x81\x38\x10\x5f\xc6\xc1\xf8\x0a\xbe\x82\xaf\xe2\x50\x1c\x86\xc3\xf1" "\x35\x7c\x0d\x5f\xc7\x91\x78\x06\x47\xe1\x68\x1c\x83\x63\xb0\x92\x1a" "\x87\xe3\x71\x02\xb2\x9a\x84\x93\x71\x32\x4e\xc1\x29\x38\x15\xa7\xe2" "\x34\x9c\x8e\xd3\x71\x26\xce\xc2\xd9\x38\x07\xe7\xe0\x5c\x7c\x0f\x33" "\x8e\xb0\x64\xfc\x00\x3f\xc0\x05\xb8\x00\x17\xe1\x62\x5c\x8c\x29\xb8" "\x04\x53\x31\x15\x97\xe2\x59\x4c\xc3\x65\xb8\x1c\x57\xe0\x4a\x5c\x85" "\x2b\x71\x0d\xae\xc5\x35\xb8\x1e\x37\xe0\x7a\xdc\x84\x9b\x70\x0b\x6e" "\xc1\x6d\xb8\x0d\x77\xe0\x0e\xdc\x85\xbb\x70\x0f\xee\xc1\x4f\xf0\x13" "\xfc\x14\x3f\xc5\xa1\x98\x8e\xe9\x78\x00\x0f\xe0\x41\x3c\x88\x87\xf0" "\x10\x1e\xc6\xc3\x78\x04\x8f\x6c\xbb\x0a\x00\x8f\xe1\x31\x3c\x8e\xc7" "\xf1\x04\x9e\xc4\x53\x78\x12\x4f\xe3\x69\x3c\x83\x67\xf1\x1c\x9e\xc3" "\xf3\x78\x1e\x2f\xe0\x73\x89\x5f\x35\xdc\x53\x74\xdd\x50\x50\x19\x8c" "\x32\x2a\x8b\xca\xa2\x12\x54\x82\xca\xae\xb2\xab\x1c\x2a\x87\xca\xa9" "\x72\xaa\x98\x8a\xa9\x5c\x2a\x97\xca\xad\x72\xab\x3c\x2a\x8f\xca\xa7" "\xf2\xa9\x44\x95\xa8\x0a\xaa\x82\x8a\x14\x29\x56\x91\x2a\xa4\x0a\xa9" "\xb8\x8a\xab\x22\xaa\x88\x4a\x52\x49\xaa\x98\x2a\xa6\x9c\x72\xaa\xa4" "\x2a\xa9\x4a\xa9\x52\xaa\xb4\x2a\xad\xca\xa8\x5b\x55\x59\x75\x9b\x2a" "\xa7\xca\xab\xd6\xae\xa2\xaa\xa8\x2a\xa9\x36\xae\xb2\xaa\xa2\xaa\xaa" "\xaa\xaa\x9a\xaa\xae\x6a\xa8\x9a\xaa\xa6\xaa\xa5\x6a\xa9\xda\xaa\xb6" "\xaa\xa3\xea\xa8\xba\xaa\xae\xaa\xa7\xee\x57\xf5\x55\x1f\x1c\x80\x0f" "\xaa\x8c\xce\x34\x52\xc3\xb0\xb1\x1a\x8e\x4d\x54\x53\xd5\x4c\x35\x57" "\xaf\xe3\xa3\xaa\xa5\x1a\x89\xad\x54\x6b\xd5\x46\x3d\xae\x46\xe3\x28" "\x6c\xa7\x5a\xba\xf6\xea\x29\xd5\x41\x8d\xc7\x8e\xea\x99\x84\xdf\x5f" "\xe8\xba\xa8\xe7\x55\x57\xd5\x4d\x75\x57\x2f\xa8\x1e\xaa\x95\xeb\xa9" "\x7a\xa9\x69\xd8\x47\xf5\x55\x33\xb1\x9f\xea\xaf\x06\xa8\x81\x6a\x2e" "\x56\x57\xef\x63\x32\xd6\x50\xaf\xaa\xa1\x6a\x98\x1a\xae\x5e\x53\x8b" "\xf0\x75\x35\x52\xbd\xa1\x46\xa9\xd1\x6a\x8c\x7a\x53\x8d\x55\xe3\xd4" "\x78\x35\x41\x4d\x54\x93\xd4\x64\xf5\x96\x9a\xa2\xde\x56\x53\xd5\x3b" "\x6a\x9a\x9a\xae\x66\xa8\x99\x6a\x96\x9a\xad\xe6\xa8\x77\xd5\x5c\xf5" "\x9e\x9a\xa7\xde\x57\xc9\xea\x03\x35\x5f\x2d\x50\x0b\xd5\x22\xb5\x58" "\x7d\xa8\x52\xd4\x12\x95\xaa\x3e\x52\x4b\xd5\xc7\x2a\x4d\x2d\x53\xcb" "\xd5\x0a\xb5\x52\xad\x52\xab\xd5\x1a\xb5\x56\xad\x53\xeb\xd5\x06\xb5" "\x51\x6d\x52\x9b\xd5\x16\xb5\x55\x6d\x53\xdb\xd5\x0e\xb5\x53\xed\x52" "\xbb\xd5\x1e\xb5\x57\x7d\xa2\xf6\xa9\x4f\xd5\x7e\xf5\x99\x4a\x57\x9f" "\xab\x8c\xd7\xef\x83\xea\x0b\x75\x48\x7d\xa9\x0e\xab\xaf\xd4\x11\xf5" "\xb5\x3a\xaa\xbe\x51\xc7\xd4\xb7\xea\xb8\xea\xa5\x4e\xa8\x93\xea\x94" "\xfa\x5e\x9d\x56\x3f\xa8\x33\xea\x6c\x9f\x73\xea\x47\x75\x5e\xfd\xa4" "\x2e\xa8\x9f\xd5\x45\xe5\x15\x68\xd4\x4a\x6b\x6d\x74\xa0\xb3\xe8\xac" "\x3a\x41\x67\xd3\xd9\xf5\x55\x3a\x87\xbe\x5a\xe7\xd4\xd7\xe8\x98\xbe" "\x56\xe7\xd2\xd7\xe9\xdc\xfa\x7a\x9d\x47\xe7\xd5\xf9\x74\x7e\x9d\xa8" "\x0b\xe8\x82\x3a\xd4\xa4\xad\x66\x1d\xe9\x42\xba\xb0\x8e\xeb\x1b\x74" "\x11\x7d\xa3\x4e\xd2\x45\x75\x31\x5d\x5c\x3b\x5d\x42\x97\xd4\x37\xe9" "\x52\xfa\x66\x5d\x5a\xdf\xa2\xcb\xe8\x5b\x75\x59\x7d\x9b\x2e\xa7\xcb" "\xeb\x0a\xba\xa2\xbe\x5d\x57\xd2\x77\xe8\xca\xba\x8a\xae\xaa\xef\xd4" "\xd5\x74\x75\x5d\x43\xd7\xd4\x77\xe9\x5a\xfa\x6e\x5d\x5b\xdf\xa3\xeb" "\xe8\x7b\x75\x5d\x7d\x9f\xae\xa7\xef\xd7\xf5\xf5\x03\xba\x81\x7e\x50" "\x37\xd4\x0f\xe9\x46\xfa\x61\xdd\x58\x3f\xa2\x9b\xe8\xa6\xba\x99\x6e" "\xae\x5b\xe8\x47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\x9b\x3c\x26\xaf\xc9\x67\xf2\x9b\x44\x53\xc0\x14\x34\xa1\x21\x63" "\x0d\x9b\xc8\x14\x32\x85\x4d\xdc\xdc\x60\x8a\x98\x1b\x4d\x92\x29\x6a" "\x8a\x99\xe2\xc6\x99\x12\xa6\xa4\xb9\xc9\xc4\x0c\xc2\x3f\x93\xff\x17" "\xf3\x5b\x31\xe3\xd7\x63\xda\xb4\x30\x2d\x4c\x4b\xd3\xd2\xb4\x32\xad" "\x4c\x1b\xd3\xc6\xb4\x35\x6d\x4d\x3b\xd3\xce\xb4\x37\xed\x4d\x07\xd3" "\xc1\x74\x34\x1d\x4d\x27\xd3\xc9\x74\x36\x9d\x4d\x17\xd3\xc5\x74\x35" "\x5d\x4d\x77\xd3\xdd\xf4\x30\x3d\x4c\x4f\x04\xd3\xdb\xf4\x36\x7d\xcd" "\x4b\xa6\x9f\xe9\x6f\x06\x98\x81\x66\x90\x79\xd9\x64\x14\x1e\x62\x86" "\x98\xa1\x66\xa8\x19\x6e\x86\x9b\x11\x66\x84\x19\x69\x46\x9a\x51\x66" "\x94\xc9\xd8\x39\xd6\x8c\x35\xe3\xcd\x78\x33\xd1\x4c\x34\x93\xcd\x64" "\x33\xc5\x4c\x31\x53\xcd\x54\x33\xcd\x4c\x33\x33\xcc\x0c\x33\xcb\xcc" "\x32\x73\xcc\x1c\x33\xd7\xcc\x35\xf3\xcc\x3c\x93\x6c\x92\xcd\x7c\x33" "\xdf\x2c\x34\x0b\xcd\x62\xb3\xd8\xa4\x98\x14\x93\x6a\x52\xcd\x52\xb3" "\xd4\xa4\x99\x65\x66\x99\x59\x61\x56\x98\x55\x66\x95\x59\x63\xd6\x98" "\x75\x66\x9d\xd9\x60\x36\x98\x4d\x66\x93\x49\x33\x5b\xcd\x56\xb3\xdd" "\x6c\x37\x3b\xcd\x4e\xb3\xdb\xec\x36\x7b\xcd\x5e\xb3\xcf\xec\x33\xfb" "\xcd\x7e\x93\x6e\xd2\xcd\x01\x73\xc0\x1c\x34\x07\xcd\x21\x73\xc8\x1c" "\x36\x87\xcd\x11\x73\xc4\x1c\x35\x47\xcd\x31\x73\xcc\x1c\x37\xc7\xcd" "\x09\x73\xc2\x9c\x32\xa7\xcc\x69\x73\xda\x9c\x31\x67\xcc\x39\x73\xce" "\x9c\x37\xe7\xcd\x05\x73\xc1\x5c\x34\x17\x33\x4e\xfb\x02\x15\xa8\xc0" "\x04\x26\xc8\x12\x64\x09\x12\x82\x84\x20\x7b\x90\x3d\xc8\x11\xe4\x08" "\x72\x06\x39\x83\x58\x10\x0b\x72\x05\xb9\x82\xdc\xc1\xf5\x41\x9e\x20" "\x6f\x90\x2f\xc8\x1f\x24\x06\x05\x82\x82\x41\x18\x50\x60\x03\x0e\xa2" "\xa0\x50\x50\x38\x88\x07\x37\x04\x45\x82\x1b\x83\xa4\xa0\x68\x50\x2c" "\x28\x1e\xb8\xa0\x44\x50\x32\xb8\x29\x28\x15\xdc\x1c\x94\x0e\x6e\x09" "\xca\x04\xb7\x06\x65\x83\xdb\x82\x72\x41\xf9\xa0\x42\x50\x31\xb8\x3d" "\xa8\x14\xdc\x11\x54\x0e\xaa\x04\x55\x83\x3b\x83\x6a\x41\xf5\xa0\x46" "\x50\x33\xb8\x2b\xa8\x15\xdc\x1d\xd4\x0e\xee\x09\xea\x04\xf7\x06\x75" "\x83\xfb\x82\x7a\xc1\xfd\x41\xfd\xe0\x81\xa0\x41\xf0\x60\xd0\x30\x78" "\x28\x68\x14\x3c\x1c\x34\x0e\x1e\x09\x9a\x04\x4d\x83\x66\x41\xf3\xa0" "\xc5\xbf\xb4\xbe\xf7\x67\xf2\x3e\xe6\x7a\x86\xbd\xc2\xac\xd0\x27\xec" "\x1b\xbe\x14\xf6\x0b\xfb\x87\x03\xc2\x81\xe1\xa0\xf0\xe5\x70\x70\xf8" "\x4a\x38\x24\x7c\x35\x1c\x1a\x0e\x0b\x87\x87\xaf\x85\x23\xc2\xd7\xc3" "\x91\xe1\x1b\xe1\xa8\x70\x74\x38\x26\x7c\x33\x1c\x1b\x8e\x0b\xc7\x87" "\x13\xc2\x89\xe1\xa4\x70\x72\xf8\x56\x38\x25\x7c\x3b\x9c\x1a\xbe\x13" "\x4e\x0b\xa7\x87\x33\xc2\x99\xe1\xac\x70\x76\x38\x27\x7c\x37\x9c\x1b" "\xbe\x17\xce\x0b\xdf\x0f\x93\xc3\x0f\xc2\xf9\xe1\x82\x70\x61\xb8\x28" "\x5c\x1c\x7e\x18\xa6\x84\x4b\xc2\xd4\xf0\xa3\x70\x69\xf8\x71\x98\x16" "\x2e\x0b\x97\x87\x2b\xc2\x95\xe1\xaa\x70\x75\xb8\x26\x5c\x1b\xae\x0b" "\xd7\x87\x1b\xc2\x8d\xe1\xa6\x70\x73\xb8\x25\xdc\x1a\x6e\x0b\xb7\x87" "\x3b\xc2\x9d\xe1\xae\x70\x77\xb8\x27\xdc\x1b\x7e\x12\xee\x0b\x3f\x0d" "\xf7\x87\x9f\x85\xe9\xe1\xe7\xe1\x81\xf0\xf7\xb7\xbd\x2f\xc3\xc3\xe1" "\x57\xe1\x91\xf0\xeb\xf0\x68\xf8\x4d\x78\x2c\xfc\x36\x3c\x1e\x7e\x17" "\x9e\x08\x4f\x86\xa7\xc2\xef\xc3\xd3\xe1\x0f\xe1\x99\xf0\x6c\x78\x2e" "\xfc\x31\x3c\x1f\xfe\x14\x5e\x08\x7f\x0e\x2f\x86\x3e\xe3\xe4\x3e\xe3" "\xed\x9d\x0c\x19\xca\x42\x59\x28\x81\x12\x28\x3b\x65\xa7\x1c\x94\x83" "\x72\x52\x4e\x8a\x51\x8c\x72\x51\x2e\xca\x4d\xb9\x29\x0f\xe5\xa1\x7c" "\x94\x8f\x12\x29\x91\x0a\x52\x41\xca\xc0\xc4\x54\x88\x0a\x51\x9c\xe2" "\x54\x84\x8a\x50\x12\x25\x51\x31\x2a\x46\x8e\x1c\x95\xa4\x92\x54\x8a" "\x4a\x51\x69\x2a\x4d\x65\xa8\x0c\x95\xa5\xb2\x54\x8e\xca\x51\x05\xaa" "\x40\xb7\xd3\xed\x74\x07\xdd\x41\x55\xa8\x0a\xdd\x49\x77\x52\x75\xaa" "\x4e\x35\xa9\x26\xd5\xa2\x5a\x54\x9b\x6a\x53\x1d\xaa\x43\x75\xa9\x2e" "\xd5\xa3\x7a\x54\x9f\xea\x53\x03\x6a\x40\x0d\xa9\x21\x35\xa2\x46\xd4" "\x98\x1a\x53\x13\x6a\x42\xcd\xa8\x19\xb5\xa0\x16\xd4\x92\x5a\x52\x2b" "\x6a\x45\x6d\xa8\x0d\xb5\xa5\xb6\xd4\x8e\xda\x51\x7b\x6a\x4f\x1d\xa8" "\x03\x75\xa4\x8e\xd4\x89\x3a\x51\x67\xea\x4c\x5d\xa8\x0b\x75\xa5\xae" "\xd4\x9d\xba\x53\x0f\xea\x41\x3d\xa9\x27\xf5\xa6\xde\xd4\x97\xfa\x52" "\x3f\xea\x47\x03\x68\x00\x0d\xa2\x41\x34\x98\x06\xd3\x10\x1a\x42\x43" "\x69\x28\x0d\xa7\xe1\x34\x82\x46\xd0\x48\x1a\x49\xa3\x68\x34\x8d\xa1" "\x37\x69\x2c\x8d\xa3\xf1\x34\x81\x26\xd2\x24\x9a\x4c\x93\x69\x0a\x4d" "\xa1\xa9\x34\x95\xa6\xd1\x34\x9a\x41\x33\x68\x16\xcd\xa2\x39\x34\x87" "\xe6\xd2\x5c\x9a\x47\xf3\x28\x99\x92\x69\x3e\xcd\xa7\x85\xb4\x90\x16" "\xd3\x62\x4a\xa1\x14\x4a\xa5\x54\x5a\x4a\x4b\x29\x8d\xd2\x68\x39\x2d" "\xa7\x95\xb4\x92\x56\xd3\x6a\x5a\x4b\x6b\x69\x3d\xad\xa7\x8d\xb4\x91" "\x36\xd3\x66\xda\x4a\x5b\x69\x3b\x6d\xa7\x9d\xb4\x93\x76\xd3\x6e\xda" "\x4b\x7b\x69\x1f\xed\xa3\xfd\xb4\x9f\xd2\x29\x9d\x0e\xd0\x01\x3a\x48" "\x07\xe9\x10\x1d\xa2\xc3\x74\x98\x8e\xd0\x11\x3a\x4a\x47\xe9\x18\x1d" "\xa3\xe3\x74\x9c\x4e\xd0\x09\x3a\x45\xa7\xe8\x34\x9d\xa6\x33\x74\x86" "\xce\xd1\x39\x3a\x4f\x3f\xd1\x05\xfa\x99\x2e\x92\xa7\x04\x9b\xcd\x66" "\xb7\x57\xd9\x1c\xf6\x6a\x9b\xd3\x5e\x63\xff\x73\x9c\xcf\xe6\xb7\x89" "\xb6\x80\x2d\x68\x43\x9b\xc7\xe6\xfd\x43\x4c\xd6\xda\x24\x5b\xd4\x16" "\xb3\xc5\xad\xb3\x25\x6c\x49\x7b\xd3\x9f\xe2\x72\xb6\xbc\xad\x60\x2b" "\xda\xdb\x6d\x25\x7b\x87\xad\xfc\x5b\x0c\xf0\x7b\x5c\x6b\xed\xce\x5f" "\x7f\x10\xdd\xde\x6b\x6b\xda\xbb\x6c\x2d\x7b\xb7\xad\x6d\xef\xb1\x75" "\xec\xbd\xb6\xae\xbd\xcf\xd6\xb3\x0f\xdb\xfa\xf6\x11\xdb\xc0\x36\xb5" "\x0d\x6d\x73\xdb\xc8\x3e\x6c\x1b\xdb\x47\x6c\x13\xdb\xd4\x36\xb3\xcd" "\x6d\x5b\xfb\x84\x6d\x67\x9f\xb4\xed\xed\x53\xb6\x83\x7d\xfa\x4f\x71" "\x8a\x5d\x62\xd7\xda\x75\x76\xbd\xdd\x60\xf7\xd9\x4f\xed\x39\xfb\xa3" "\x3d\x6a\xbf\xb1\xe7\xed\x4f\xb6\xa7\xed\x65\x07\xd9\x97\xed\x60\xfb" "\x8a\x1d\x62\x5f\xb5\x43\xed\xb0\x3f\xc5\x63\xec\x9b\x76\xac\x1d\x67" "\xc7\xdb\x09\x76\xa2\x9d\xf4\xa7\x78\x86\x9d\x69\x67\xd9\xd9\x76\x8e" "\x7d\xd7\xce\xb5\xef\xfd\x29\x5e\x6c\x3f\xb4\xc9\x36\xd5\xce\xb7\x0b" "\xec\x42\xbb\xe8\x97\x38\x63\x4e\xa9\xf6\x23\xbb\xd4\x7e\x6c\xd3\xec" "\x32\xbb\xdc\xae\xb0\x2b\xed\x2a\xbb\xda\xae\xf9\xdb\x5c\x57\xd8\x4d" "\x76\xb3\xdd\x62\xf7\xda\x4f\xec\x76\xbb\xc3\xee\xb4\xbb\xec\x6e\xbb" "\xe7\x97\x38\x63\x1d\xfb\xed\x67\x36\xdd\x7e\x6e\x8f\xd8\xaf\xed\x41" "\xfb\x85\x3d\x64\x8f\xd9\xc3\xf6\xab\x5f\xe2\x8c\xf5\x1d\xb3\xdf\xda" "\xe3\xf6\x3b\x7b\xc2\x9e\xb4\xa7\xec\xf7\xf6\xb4\xfd\xc1\x9e\xb1\x67" "\x7f\x59\x7f\xc6\xda\xbf\xb7\x3f\xdb\x8b\xd6\x5b\x60\x64\xc5\x9a\x0d" "\x07\x9c\x85\xb3\x72\x02\x67\xe3\xec\x7c\x15\xe7\xe0\xab\x39\x27\x5f" "\xc3\x31\xbe\x96\x73\xf1\x75\x9c\x9b\xaf\xe7\x3c\x9c\x97\xf3\x71\x7e" "\x4e\xe4\x02\x5c\x90\x43\x26\xb6\xcc\x1c\x71\x21\x2e\xcc\x71\xbe\x81" "\x8b\xf0\x8d\x9c\xc4\x45\xb9\x18\x17\x67\xc7\x25\xb8\x24\xdf\xc4\xa5" "\xf8\x66\x2e\xcd\x19\x67\xaf\xb7\x72\x59\xbe\x8d\xcb\x71\x79\xae\xc0" "\x15\xf9\x76\xae\xc4\x77\x70\x65\xae\xc2\x55\xf9\x4e\xae\xc6\xd5\xb9" "\x06\xd7\xe4\xbb\xb8\x16\xdf\xcd\xb5\xf9\x1e\xae\xc3\xf7\x72\x5d\xbe" "\x8f\xeb\xf1\xfd\x5c\x9f\x1f\xe0\x06\xfc\x20\x37\xe4\x87\xb8\x11\x3f" "\xcc\x8d\xf9\x11\x6e\xc2\x4d\xb9\x19\x37\xe7\x16\xfc\x28\xb7\xe4\xc7" "\xb8\x15\xb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" "\xd9\xa2\xec\xd1\x55\x51\x8e\xe8\xea\x28\x67\x74\x4d\x14\x8b\xae\x8d" "\x72\x45\xd7\x45\xb9\xa3\xeb\xa3\x3c\x51\xde\x28\x5f\x94\x3f\x4a\x8c" "\x0a\x44\x05\xa3\x30\xa2\xc8\x46\x1c\x45\x51\xa1\xa8\x70\x14\x8f\x6e" "\x88\x8a\x44\x37\x46\x49\x51\xd1\xa8\x58\x54\x3c\x72\x51\x89\xa8\x64" "\x74\x53\x54\x2a\xba\x39\x2a\x1d\xdd\x12\x95\x89\x6e\x8d\xca\x46\xb7" "\x45\xe5\xa2\xf2\xd1\xc3\xf7\x56\x8c\x6e\x8f\x2a\x45\x77\x44\x95\xa3" "\x2a\x51\xd5\xe8\xce\xa8\x5a\x54\x3d\xaa\x11\xd5\x8c\xee\x8a\x6a\x45" "\x77\x47\xb5\xa3\x7b\xa2\x3a\xd1\xbd\x51\xe9\xe8\xbe\xa8\x5e\x74\x7f" "\x54\x3f\x7a\x20\x6a\x00\x0f\x46\x0d\xa3\x87\xa2\x46\xd1\xc3\x51\xe3" "\xe8\x91\xa8\x49\xd4\x34\x6a\x16\x35\x8f\x5a\x44\x8f\x46\x2d\xa3\xc7" "\xa2\x56\x51\xeb\xa8\x4d\xf4\x78\xd4\x36\x7a\x22\x6a\x17\x3d\x19\xb5" "\x8f\x9e\x8a\x3a\x44\x4f\x5f\x76\x7f\xef\xa8\x4f\xd4\x37\x7a\x29\x7a" "\x29\xf2\xfe\x1e\xbd\x30\xbe\x28\xbe\x38\xfe\x61\x3c\x25\xbe\x24\x9e" "\x1a\xff\x28\xbe\x34\xfe\x71\x3c\x2d\xbe\x2c\xbe\x3c\xbe\x22\xbe\x32" "\xbe\x2a\xbe\x3a\xbe\x26\xbe\x36\xbe\x2e\xbe\x3e\xbe\x21\xbe\x31\xbe" "\x29\xbe\x39\xbe\x25\xee\x7d\xcd\xac\xe0\xd0\x29\xa7\x9d\x71\x81\xcb" "\xe2\xb2\xba\x04\x97\xcd\x65\x77\x57\xb9\x1c\xee\x6a\x97\xd3\x5d\xe3" "\x62\xee\x5a\x97\xcb\x5d\xe7\x72\xbb\xeb\x5d\x1e\x97\xd7\xe5\x73\xf9" "\x5d\xa2\x2b\xe0\x0a\xba\xd0\x91\xb3\x8e\x5d\xe4\x0a\xb9\xc2\x2e\xee" "\x6e\x70\x45\xdc\x8d\x2e\xc9\x15\x75\xc5\x5c\x71\xe7\x5c\x09\x57\xd2" "\x35\x77\x2d\x5c\x0b\xd7\xd2\x3d\xe6\x5a\xb9\xd6\xae\x8d\x7b\xdc\x3d" "\xee\x9e\x70\x4f\xb8\x27\xdd\x93\xee\x29\xd7\xc1\x3d\xed\x3a\xba\x67" "\x5c\x27\xf7\xac\xeb\xec\x9e\x73\xcf\xb9\xe7\x5d\x57\xd7\xcd\x75\x77" "\x2f\xb8\x1e\xee\x45\xd7\xd3\xf5\x72\xbd\x5d\x6f\xd7\xd7\xf5\x75\xfd" "\x5c\x3f\x37\xc0\x0d\x70\x83\xdc\x20\x37\xd8\x0d\x76\x43\xdc\x10\x37" "\xd4\x0d\x75\xc3\xdd\x70\x37\xc2\x8d\x70\x23\xdd\x48\x37\xca\x8d\x72" "\x63\xdc\x18\x37\xd6\x8d\x75\xe3\xdd\x78\x37\xd1\x4d\x74\x93\xdd\x64" "\x37\xc5\x4d\x71\x53\xdd\x54\x37\xcd\x4d\x73\x33\xdc\x0c\x37\xcb\xcd" "\x72\x73\xdc\x1c\x37\xd7\xcd\x75\xf3\xdc\x3c\x97\x9c\x94\xec\xe6\xbb" "\xf9\x6e\xa1\x5b\xe8\x16\xbb\xc5\x2e\xc5\xa5\xb8\x54\x97\xea\x96\xba" "\xa5\x2e\xcd\xa5\xb9\xe5\x6e\xb9\x5b\xe9\x56\xba\xd5\x6e\xb5\x5b\xeb" "\xd6\xba\xf5\x6e\xbd\xdb\xe8\x36\xba\xcd\x6e\xb3\xdb\xea\xb6\xba\xed" "\x6e\xbb\xdb\xe9\x76\xba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" "\x83\xbf\x6f\xd5\xaa\xf5\xee\xdd\xfb\xb7\xfb\xa6\x69\x08\x0a\x2f\x00" "\x80\xd8\xa5\xfc\x2c\x70\x29\x5e\x06\x6d\xe0\x09\x68\x0f\xad\xa1\xd4" "\xff\x76\x7e\xfd\x55\xb7\xf3\x7c\x99\xfa\xf1\x5b\x01\xb2\xff\x5d\x4e" "\x02\x00\xfc\xf6\xfd\x83\xbf\xab\x7f\xf3\x5f\xd4\x1f\x97\x7c\xd9\xfa" "\x0b\x00\x92\x0a\x5f\xca\xc9\x06\x97\xe2\x4b\xf5\x4b\xff\xa9\x76\xf0" "\x4b\xfd\xbc\x2d\x2f\x53\x3f\xdb\x17\x93\x01\x5a\xfd\x5d\x5e\x0e\xb8" "\x14\x5f\xaa\x5f\x12\x1e\x83\xa7\xa1\xfd\x1f\xee\x29\x84\x10\x42\x08" "\x21\x84\x10\x42\xfc\xaa\xbf\xaa\xd0\xe9\x72\x9f\x6f\x33\x3e\x9f\x27" "\x9a\x4b\x39\x59\xe1\x52\x7c\xb9\xcf\xe7\x42\x08\x21\x84\x10\x42\x08" "\x21\x84\xb8\xf2\x9e\xed\xd6\xfd\xc9\x47\xdb\xb7\x6f\xdd\xe9\x2f\x06" "\x55\xfe\x7a\x97\x0c\x32\xcb\x20\xcb\xbf\xc7\x34\xae\xc4\xe0\xb2\x07" "\xc8\x7f\x65\x00\x70\xa5\x97\xf3\xb7\x01\x02\xfc\x72\x89\xef\xaf\xef" "\x73\xa5\x5f\x99\x84\x10\x42\x08\x21\x84\x10\xff\x6a\x97\x4e\xfa\xaf" "\xf4\x4c\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\x88\xcc\xeb\xff\xc5\x9f\x1c\xbb\xd2\x6b\x14" "\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\xae\xb4\xff" "\x15\x00\x00\xff\xff\xcc\xe2\x28\x9a", 5415); syz_mount_image(/*fs=*/0x200000000540, /*dir=*/0x200000000040, /*flags=MS_SYNCHRONOUS*/ 0x10, /*opts=*/0x200000000300, /*chdir=*/1, /*size=*/0x1526, /*img=*/0x200000003f80); break; case 1: // open arguments: [ // file: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: open_flags = 0x8000 (8 bytes) // mode: open_mode = 0x50 (8 bytes) // ] // returns fd memcpy((void*)0x2000000000c0, ".\000", 2); res = syscall(__NR_open, /*file=*/0x2000000000c0ul, /*flags=O_LARGEFILE*/ 0x8000ul, /*mode=S_IWGRP|S_IXUSR*/ 0x50ul); if (res != -1) r[0] = res; break; case 2: // 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 { // desc1: buffer: {00 00 11 11 22 22 33 33} (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, "\000\000\021\021\"\"33", 8); memset((void*)0x200000000090, 0, 24); memset((void*)0x2000000000ac, 0, 20); syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x8004587d, /*arg=*/0x200000000080ul); break; case 3: // mkdirat arguments: [ // fd: fd_dir (resource) // path: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // mode: open_mode = 0x0 (8 bytes) // ] memcpy((void*)0x2000000000c0, "./bus\000", 6); syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x2000000000c0ul, /*mode=*/0ul); 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; if ((reason = setup_802154())) printf("the reproducer may not work as expected: 802154 injection setup " "failed: %s\n", reason); for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }