// https://syzkaller.appspot.com/bug?id=41498cc1c55125e5e037a975e1e96257e6332fb4 // 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 #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 __thread int clone_ongoing; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { if (__atomic_load_n(&clone_ongoing, __ATOMIC_RELAXED) != 0) { exit(sig); } uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) 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 int netlink_add_addr(struct nlmsg* nlmsg, int sock, const char* dev, const void* addr, int addrsize) { struct ifaddrmsg hdr; memset(&hdr, 0, sizeof(hdr)); hdr.ifa_family = addrsize == 4 ? AF_INET : AF_INET6; hdr.ifa_prefixlen = addrsize == 4 ? 24 : 120; hdr.ifa_scope = RT_SCOPE_UNIVERSE; hdr.ifa_index = if_nametoindex(dev); netlink_init(nlmsg, RTM_NEWADDR, NLM_F_CREATE | NLM_F_REPLACE, &hdr, sizeof(hdr)); netlink_attr(nlmsg, IFA_LOCAL, addr, addrsize); netlink_attr(nlmsg, IFA_ADDRESS, addr, addrsize); return netlink_send(nlmsg, sock); } static void netlink_add_addr4(struct nlmsg* nlmsg, int sock, const char* dev, const char* addr) { struct in_addr in_addr; inet_pton(AF_INET, addr, &in_addr); int err = netlink_add_addr(nlmsg, sock, dev, &in_addr, sizeof(in_addr)); if (err < 0) { } } static void netlink_add_addr6(struct nlmsg* nlmsg, int sock, const char* dev, const char* addr) { struct in6_addr in6_addr; inet_pton(AF_INET6, addr, &in6_addr); int err = netlink_add_addr(nlmsg, sock, dev, &in6_addr, sizeof(in6_addr)); if (err < 0) { } } static void netlink_add_neigh(struct nlmsg* nlmsg, int sock, const char* name, const void* addr, int addrsize, const void* mac, int macsize) { struct ndmsg hdr; memset(&hdr, 0, sizeof(hdr)); hdr.ndm_family = addrsize == 4 ? AF_INET : AF_INET6; hdr.ndm_ifindex = if_nametoindex(name); hdr.ndm_state = NUD_PERMANENT; netlink_init(nlmsg, RTM_NEWNEIGH, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); netlink_attr(nlmsg, NDA_DST, addr, addrsize); netlink_attr(nlmsg, NDA_LLADDR, mac, macsize); int err = netlink_send(nlmsg, sock); if (err < 0) { } } static struct nlmsg nlmsg; static int tunfd = -1; #define TUN_IFACE "syz_tun" #define LOCAL_MAC 0xaaaaaaaaaaaa #define REMOTE_MAC 0xaaaaaaaaaabb #define LOCAL_IPV4 "172.20.20.170" #define REMOTE_IPV4 "172.20.20.187" #define LOCAL_IPV6 "fe80::aa" #define REMOTE_IPV6 "fe80::bb" #define IFF_NAPI 0x0010 static void correct_dev_net_tun(void) { struct stat st; if (stat("/dev/net/tun", &st) == 0) { if (S_ISCHR(st.st_mode) && major(st.st_rdev) == 10 && minor(st.st_rdev) == 200) return; if (unlink("/dev/net/tun")) { } } if (mkdir("/dev/net", 0755) && errno != EEXIST) { } if (mknod("/dev/net/tun", S_IFCHR | 0666, makedev(10, 200))) { } if (chmod("/dev/net/tun", 0666)) { } } static void initialize_tun(void) { correct_dev_net_tun(); tunfd = open("/dev/net/tun", O_RDWR | O_NONBLOCK); if (tunfd == -1) { printf("tun: can't open /dev/net/tun: please enable CONFIG_TUN=y\n"); printf("otherwise fuzzing or reproducing might not work as intended\n"); return; } const int kTunFd = 200; if (dup2(tunfd, kTunFd) < 0) exit(1); close(tunfd); tunfd = kTunFd; struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); strncpy(ifr.ifr_name, TUN_IFACE, IFNAMSIZ); ifr.ifr_flags = IFF_TAP | IFF_NO_PI; if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) { exit(1); } char sysctl[64]; sprintf(sysctl, "/proc/sys/net/ipv6/conf/%s/accept_dad", TUN_IFACE); write_file(sysctl, "0"); sprintf(sysctl, "/proc/sys/net/ipv6/conf/%s/router_solicitations", TUN_IFACE); write_file(sysctl, "0"); int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock == -1) exit(1); netlink_add_addr4(&nlmsg, sock, TUN_IFACE, LOCAL_IPV4); netlink_add_addr6(&nlmsg, sock, TUN_IFACE, LOCAL_IPV6); uint64_t macaddr = REMOTE_MAC; struct in_addr in_addr; inet_pton(AF_INET, REMOTE_IPV4, &in_addr); netlink_add_neigh(&nlmsg, sock, TUN_IFACE, &in_addr, sizeof(in_addr), &macaddr, ETH_ALEN); struct in6_addr in6_addr; inet_pton(AF_INET6, REMOTE_IPV6, &in6_addr); netlink_add_neigh(&nlmsg, sock, TUN_IFACE, &in6_addr, sizeof(in6_addr), &macaddr, ETH_ALEN); macaddr = LOCAL_MAC; netlink_device_change(&nlmsg, sock, TUN_IFACE, true, 0, &macaddr, ETH_ALEN, NULL); close(sock); } static int runcmdline(char* cmdline) { int ret = system(cmdline); if (ret) { } return ret; } static int read_tun(char* data, int size) { if (tunfd < 0) return -1; int rv = read(tunfd, data, size); if (rv < 0) { if (errno == EAGAIN || errno == EBADF || errno == EBADFD) return -1; exit(1); } return rv; } static void flush_tun() { char data[1000]; while (read_tun(&data[0], sizeof(data)) != -1) { } } #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_RDONLY); 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) { if (chdir(target) == -1) { err = errno; close(res); res = -1; } } 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, "stats=global")) { 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"); initialize_tun(); 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_RDONLY); 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"); flush_tun(); if (symlink("/dev/binderfs", "./binderfs")) { } } static void close_fds() { for (int fd = 3; fd < MAX_FDS; fd++) close(fd); } #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; } #define SWAP_FILE "./swap-file" #define SWAP_FILE_SIZE (128 * 1000 * 1000) static const char* setup_swap() { swapoff(SWAP_FILE); unlink(SWAP_FILE); int fd = open(SWAP_FILE, O_CREAT | O_WRONLY | O_CLOEXEC, 0600); if (fd == -1) return "swap file open failed"; fallocate(fd, FALLOC_FL_ZERO_RANGE, 0, SWAP_FILE_SIZE); close(fd); char cmdline[64]; sprintf(cmdline, "mkswap %s", SWAP_FILE); if (runcmdline(cmdline)) return "mkswap failed"; if (swapon(SWAP_FILE, SWAP_FLAG_PREFER) == 1) return "swapon failed"; return NULL; } 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 < 5; 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) + (call == 2 ? 4000 : 0) + (call == 4 ? 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); } } void execute_call(int call) { switch (call) { case 0: // syz_mount_image$udf arguments: [ // fs: ptr[in, buffer] { // buffer: {75 64 66 00} (length 0x4) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {6e 6f 61 64 69 6e 69 63 62 2c 6e 6f 73 74 72 // 69 63 74 2c 6d 6f 64 65 3d 30 30 30 30 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 34 2c 75 69 64 3d 66 6f 72 67 65 // 74 2c 6e 6f 61 64 69 6e 69 63 62 2c 75 6d 61 73 6b 3d 30 30 30 // 30 30 30 30 30 30 30 30 30 30 30 30 34 30 30 30 32 30 30 30 2c // 6c 61 73 74 62 6c 6f 63 6b 3d 30 30 30 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 30 31 33 2c 75 6e 64 65 6c 65 74 65 2c 70 61 // 72 74 69 74 69 6f 6e 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 35 2c 00} (length 0xab) // } // union ANYUNION { // ANYRES16: ANYRES16 (resource) // } // } // } // chdir: int8 = 0x47 (1 bytes) // size: len = 0xc15 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xc15) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x200000000c40, "udf\000", 4)); NONFAILING(memcpy((void*)0x2000000000c0, "./file1\000", 8)); NONFAILING(memcpy( (void*)0x200000000180, "noadinicb,nostrict,mode=00000000000000000000004,uid=forget,noadinicb," "umask=00000000000000040002000,lastblock=00000000000000000013,undelete," "partition=00000000000000000005,\000", 171)); NONFAILING(*(uint16_t*)0x20000000022b = 0); NONFAILING(memcpy( (void*)0x200000001940, "\x78\x9c\xec\xdd\x5d\x6c\x64\xe7\x59\x07\xf0\xe7\x9d\x63\xc7\x63\xa7" "\xb4\x4e\xd3\x6e\x5a\x68\xca\x48\x45\xed\xca\x65\xa3\xfd\xea\xae\xab" "\x45\x95\xb7\x71\x0d\x95\xb6\x9b\xaa\x5e\x57\xe4\xaa\x1e\x7f\xec\x76" "\x14\xef\x78\x65\x7b\xe9\xa6\x40\x65\x40\x05\x89\x9b\x8a\xdc\x20\x6e" "\x90\x45\x89\x40\xea\x05\x57\x84\x4b\x5c\x1a\xa4\x56\x08\x09\x55\xbd" "\x28\x17\x48\x96\x68\xa3\x5c\x70\xe1\x8b\x4a\x08\x50\x6a\x74\xce\xbc" "\x63\x8f\x77\xbd\x59\x37\x1b\x7f\x6c\xf2\xfb\x45\xce\xff\xcc\x99\xe7" "\x8c\xdf\x8f\xf1\x99\x63\x69\x5f\x9f\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x22\x3e\xfb\xb9\xcb\xa7\xcf\xa4\xa3\x6e" "\x05\x00\x70\x98\xae\x4e\x7e\xe9\xf4\x39\x9f\xff\x00\xf0\xae\x72\xcd" "\xef\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\xdc\xa5\x28" "\xe2\x44\xa4\x18\x7a\x65\x33\x4d\x57\x8f\x3b\xea\x57\x5a\xed\xdb\x77" "\xa6\xc6\x27\xf6\x3e\x6c\x30\x45\x8a\x5a\x14\x55\x7d\xf9\x55\x3f\x73" "\xf6\xdc\xf9\x4f\x5d\xb8\x38\xda\xcd\x37\x3f\xfe\xed\xf6\xe1\x78\x6e" "\xf2\xda\xe5\xc6\xb3\x8b\x37\x6f\x2d\xcd\x2f\x2f\xcf\xcf\x35\xa6\xda" "\xad\xd9\xc5\xb9\xf9\x7d\xbf\xc2\xc3\x1e\x7f\xb7\x91\x6a\x00\x1a\x37" "\x5f\xb8\x3d\x77\xfd\xfa\x72\xe3\xec\x33\xe7\x76\x3d\x7d\x67\xf8\xb5" "\x81\xc7\x4f\x0c\x5f\xba\x78\xea\xc2\x68\xb7\x76\x6a\x7c\x62\x62\xb2" "\xa7\xa6\xaf\xff\x2d\x7f\xf7\x7b\xdc\x6f\x85\xc7\x63\x51\x44\x33\x52" "\xbc\x31\xfc\x7a\x6a\x46\x44\x2d\x1e\x7e\x2c\x1e\xf0\xde\x39\x68\x83" "\x55\x27\x46\xaa\x4e\x4c\x8d\x4f\x54\x1d\x59\x68\x35\xdb\x2b\xe5\x93" "\xa9\x96\xab\x6a\x11\x8d\x9e\x83\xc6\xba\x63\x74\x08\x73\xf1\x50\xc6" "\x22\x56\xcb\xe6\x97\x0d\x1e\x29\xbb\x37\x79\xab\xb9\xd4\x9c\x59\x98" "\x6f\x7c\xb1\xb9\xb4\xd2\x5a\x69\x2d\xb6\x53\xad\xd3\xda\xb2\x3f\x8d" "\xa8\xc5\x68\x8a\x58\x8b\x88\x8d\x81\x7b\x5f\xae\x3f\x8a\xf8\x68\xa4" "\x78\xe9\xf4\x66\x9a\x89\x88\xa2\x3b\x0e\x9f\xac\x16\x06\x3f\xb8\x3d" "\xb5\x03\xe8\xe3\x3e\x94\xed\x6c\xf4\x47\xac\xd5\x1e\x81\x39\x3b\xc6" "\x06\xa2\x88\xab\x91\xe2\x67\xaf\x9e\x8c\xd9\x72\xcc\xf2\x57\x7c\x3c" "\xe2\x0b\x65\xbe\x12\xf1\x72\x99\x9f\x89\x48\xe5\x1b\xe3\x7c\xc4\x4f" "\xf7\x78\x1f\xf1\x68\xea\x8b\x22\xfe\x35\x52\x2c\xa6\xcd\x34\x57\x9d" "\x0f\xba\xe7\x95\x2b\x5f\x6e\x7c\xbe\x7d\x7d\xb1\xa7\xb6\x7b\x5e\x79" "\xe4\x3f\x1f\x0e\xd3\x31\x3f\x37\xd5\xa3\x88\x99\xea\x8c\xbf\x99\xde" "\xfa\xc5\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x6f" "\xb7\xc1\x28\xe2\xdb\x91\xe2\x8f\x9e\xfe\x9d\x6a\x5d\x71\x54\xeb\xd2" "\xdf\x77\x69\xf4\x3d\xcf\xff\x66\xef\x9a\xf1\xa7\x1e\xf0\x3a\x65\xed" "\x33\x11\xb1\x5a\xdb\xdf\x9a\xdc\xfe\xbc\x74\x38\xd5\xca\xff\x0e\xa0" "\x63\xec\x4b\x3d\x8a\xf8\x46\x5e\xff\xf7\x07\x47\xdd\x18\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x77\xb5\x22\x9e\x8f" "\x14\x5f\x39\x75\x32\xad\x45\xef\x3d\xc5\x5b\xed\x1b\x8d\x6b\xcd\x99" "\x85\xce\x5d\x61\xbb\xf7\xfe\xed\xde\x33\x7d\x6b\x6b\x6b\xab\x91\x3a" "\x39\x96\x73\x3a\xe7\x6a\xce\xb5\x9c\xeb\x39\x37\x72\x46\x2d\x1f\x9f" "\x73\x2c\xe7\x74\xce\xd5\x9c\x6b\x39\xd7\x73\x6e\xe4\x8c\x22\x1f\x9f" "\x73\x2c\xe7\x74\xce\xd5\x9c\x6b\x39\xd7\x73\x6e\xe4\x8c\xbe\x7c\x7c" "\xce\xb1\x9c\xd3\x39\x57\x73\xae\xe5\x5c\xcf\xb9\x91\x33\x8e\xc9\xbd" "\x7b\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xde\x49\x6a" "\x51\xc4\xcf\x23\xc5\xb7\xbe\xb6\x99\x22\x45\xc4\x58\xc4\x74\x74\x72" "\x7d\xe0\xa8\x5b\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x94\xea\xa9\x88\x67\x22\xc5\xfa\xf3\xf5\xea\xf1\x5a\x2d\xe2\x5a" "\x44\xfc\x7c\x6b\x6b\xab\xfa\xfa\x9f\xad\xad\xad\x88\xcd\x72\xfb\x61" "\x1d\x75\x5f\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xd8\x4a\x45\x7c\x2c\x52\x3c\xf9\xbf\x9b\xa9\x11\x11\x77\x86" "\x5f\x1b\x78\xfc\xc4\xf0\xa5\x8b\xa7\x2e\x8c\x16\x51\x44\x2a\x4b\x7a" "\xeb\x9f\x9b\xbc\x76\xb9\xf1\xec\xe2\xcd\x5b\x4b\xf3\xcb\xcb\xf3\x73" "\x8d\xa9\x76\x6b\x76\x71\x6e\x7e\xbf\xdf\xae\x7e\xa5\xd5\xbe\x7d\x67" "\x6a\x7c\xe2\x40\x3a\xf3\x40\x83\x07\xdc\xfe\xc1\xfa\xb3\x8b\xb7\x5e" "\x5c\x6a\xdd\xf8\xea\xca\x9e\xcf\x0f\xd5\x2f\xcf\x2c\xaf\x2c\x35\x67" "\xf7\x7e\x3a\x06\xa3\x16\x31\xdd\xbb\x67\xa4\x6a\xf0\xd4\xf8\x44\xd5" "\xe8\x85\x56\xb3\x5d\x1d\x9a\x6a\xf7\x69\x60\x2d\x62\x6c\xbf\x9d\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xd8\x18" "\x4a\x45\x7c\x2e\x52\xfc\xe4\x3f\xce\xa7\xee\xba\xf1\xbe\xce\x9a\xff" "\x5f\xea\x3c\x2a\xb6\x6b\x5f\xfe\xbd\x9d\xbf\x05\xb0\x70\x57\x76\xf5" "\xfe\xfd\x80\xfd\x6c\xa7\xfd\x36\x74\xa4\x5a\x78\xdf\x98\x1a\x9f\x98" "\x98\xec\xd9\xdd\xd7\x7f\x6f\x69\xd9\xa6\x94\x8a\x78\x2a\x52\x7c\xe2" "\xa5\x0f\x55\xeb\xe1\x53\x0c\xed\xb9\x36\xbe\xac\x7b\x6f\x59\x77\xf3" "\x7c\xae\x1b\xfe\x95\xb2\x6e\x75\x57\x55\x7d\x64\x6a\x7c\xa2\x71\x75" "\xb1\x7d\xea\xf2\xc2\xc2\xe2\x6c\x73\xa5\x39\xb3\x30\xdf\x98\xbc\xd5" "\x9c\xdd\xf7\x1f\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x80\x37\x31\x94\x8a\xf8\x51\xa4\xf8\xaf\xbf\xfd\xb7\xd4" "\xbd\xef\x7c\x5e\xff\xdf\xd7\x79\xd4\xb3\xfe\xff\x37\xaa\x25\xf4\x95" "\x7a\xda\x9d\xdb\xaa\xb5\xfd\xef\xad\xd6\xf6\x77\xb6\xdf\x77\x69\x74" "\xe8\xa3\x4f\xdf\x6f\xff\x41\xac\xff\x2f\xdb\x94\x52\x11\xdf\x8c\x14" "\xe7\x7e\xf4\xa1\xea\x7e\xfa\xdd\xf5\xff\xd3\x77\xd5\x96\x75\x7f\x12" "\x29\x5e\x7f\xfa\x23\xb9\xae\xf6\x58\x59\xd7\xec\x76\xa7\xf3\x8a\xd7" "\x5b\x0b\xf3\xa7\xcb\xda\xbf\x8c\x14\xbf\xfa\x46\xb7\x36\xaa\xda\x1b" "\xb9\xf6\xc9\x9d\xda\x33\x65\xed\x60\xa4\xf8\xf3\xcd\xdd\xb5\x5f\xcd" "\xb5\x1f\xd8\xa9\x3d\x5b\xd6\x9e\x8c\x14\xdf\xfb\xcf\xbd\x6b\x3f\xb8" "\x53\x7b\xae\xac\xfd\x49\xa4\xf8\x87\xbf\x69\x74\x6b\x87\xca\xda\xdf" "\xcd\xb5\x27\x76\x6a\x9f\x99\x5d\x5c\x98\x7b\xd0\xb0\x96\xf3\xff\x9d" "\x48\xf1\xd7\x57\x7f\x2b\x75\xfb\x7c\xdf\xf9\xef\xf9\xfb\x0f\xab\x77" "\xe5\xb6\x7b\xe6\xfc\xcd\xb7\xdf\xae\xf9\x1f\xee\xd9\xb7\x9a\xe7\xf5" "\x8f\xf3\xfc\x37\x1f\x30\xff\x17\x22\xc5\x77\xea\x1f\xc9\x75\x9d\xb1" "\x9f\xc9\xcf\x3f\x51\xfd\x7f\x67\xfe\x3f\x11\x29\xfe\xfd\x5f\x76\xd7" "\x5e\xcf\xb5\xef\xdf\xa9\x3d\xb3\xdf\x6e\x1d\xb5\x72\xfe\xbf\x1d\x29" "\xbe\xfb\x17\x3f\xde\xee\x73\x9e\xff\x3c\xb2\x3b\x33\xd4\x3b\xff\xbf" "\xdc\xb7\x3b\xb7\xdf\x25\x47\x34\xff\x4f\xf4\xec\x1b\xce\xed\x9a\xfd" "\x05\xc7\xe2\xdd\x68\xf9\xc5\xaf\xbf\xd0\x5c\x58\x98\x5f\xb2\x61\xc3" "\x86\x8d\xed\x8d\xa3\x3e\x33\x71\x18\xca\xcf\xff\x3f\x8d\x14\xff\x77" "\xa2\x48\xdd\xeb\x98\xfc\xf9\xff\x9e\xce\xa3\x9d\xeb\xbf\xff\xfe\xc6" "\xce\xe7\xff\xa5\xbb\x72\xdb\x11\x7d\xfe\xbf\xbf\x67\xdf\xa5\x7c\xd5" "\xd2\xdf\x17\x51\x5f\xb9\x79\xab\xff\xa9\x88\xfa\xf2\x8b\x5f\x3f\xd5" "\xba\xd9\xbc\x31\x7f\x63\xbe\x7d\xf6\xcc\xe9\x4f\x7f\xfa\xc2\x99\xd3" "\x67\x2e\xf4\x3f\xd6\xbd\xb8\xdb\xd9\xda\xf7\xd8\xbd\x13\x94\xf3\xff" "\x83\x48\xf1\xc3\xbf\xfb\xe1\xf6\xef\x31\xbb\xaf\xff\xf6\xbe\xfe\x1f" "\xba\x2b\xb7\x1d\xd1\xfc\x3f\xd9\xdb\xa7\x5d\xd7\x35\xfb\x1e\x8a\x77" "\xa5\x72\xfe\xff\x2a\x52\x3c\xf1\xd9\x1f\x6f\xff\xbe\xf9\x66\xd7\xff" "\xdd\xdf\xff\x4f\x7e\x6c\x77\x6e\xff\xfc\x1d\xd1\xfc\x7f\xa0\x67\xdf" "\x70\x6e\x57\xeb\x17\x1c\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x80\x47" "\xc9\x50\x2a\xe2\xcf\x22\xc5\x6f\xff\xe1\xaf\xa7\xee\x1a\xa2\xfd\xfc" "\xfb\xbf\xb9\xbb\x72\xdb\x11\xfd\xfb\xaf\x13\x3d\xfb\xe6\x0e\x69\x5d" "\xc3\xbe\x07\x19\x00\xe0\x18\x29\xaf\xff\x3e\x18\x29\xfe\x71\xeb\xfb" "\xdb\x6b\xb9\x77\x5f\xff\xc5\xaf\x75\x6b\x7b\xaf\xff\xee\xe7\x38\xdc" "\xff\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e" "\x75\x29\x8a\xf8\xfd\x48\x31\xf4\xca\x66\x5a\x1f\x28\x1f\x77\xd4\xaf" "\xb4\xda\xb7\xef\x4c\x8d\x4f\xec\x7d\xd8\x60\x8a\x14\xb5\x28\xaa\xfa" "\xf2\xab\x7e\xe6\xec\xb9\xf3\x9f\xba\x70\x71\xb4\x9b\x57\x06\x0e\xb3" "\x1b\x1f\x8e\xe7\x26\xaf\x5d\x6e\x3c\xbb\x78\xf3\xd6\xd2\xfc\xf2\xf2" "\xfc\x5c\x63\xaa\xdd\x9a\x5d\x9c\x9b\xdf\xf7\x2b\x3c\xec\xf1\x77\x1b" "\xa9\x06\xb0\x71\xf3\x85\xdb\x73\xd7\xaf\x2f\x37\xce\x3e\x73\x6e\xd7" "\xd3\x77\x86\x5f\x1b\x78\xfc\xc4\xf0\xa5\x8b\xa7\x2e\x8c\x76\x6b\xa7" "\xc6\x27\x26\x26\x7b\x6a\xfa\xfa\xdf\xf2\x77\xbf\x47\xba\xcf\xfe\xc7" "\xa2\x88\xef\x47\x8a\x37\x86\x5f\x4f\xdf\x1d\x88\xa8\xc5\xc3\x8f\xc5" "\x03\xde\x3b\x07\x6d\xb0\xea\xc4\x48\xd5\x89\xa9\xf1\x89\xaa\x23\x0b" "\xad\x66\x7b\xa5\x7c\x32\xd5\x72\x55\x2d\xa2\xd1\x73\xd0\x58\x77\x8c" "\x0e\x61\x2e\x1e\xca\x58\xc4\x6a\xd9\xfc\xb2\xc1\x23\x65\xf7\x26\x6f" "\x35\x97\x9a\x33\x0b\xf3\x8d\x2f\x36\x97\x56\x5a\x2b\xad\xc5\x76\xaa" "\x75\x5a\x5b\xf6\xa7\x11\xb5\x18\x4d\x11\x6b\x11\xb1\xb1\xc7\x8f\x64" "\x7f\x14\xf1\xcd\x48\xf1\xd2\xe9\xcd\xf4\x4f\x03\x11\x45\x77\x1c\x3e" "\x79\x75\xf2\x4b\xa7\xcf\x3d\xb8\x3d\xb5\x03\xe8\xe3\x3e\x94\xed\x6c" "\xf4\x47\xac\xd5\x1e\x81\x39\x3b\xc6\x06\xa2\x88\xbf\x8f\x14\x3f\x7b" "\xf5\x64\x7c\x6f\x20\xa2\x2f\x3a\x5f\xf1\xf1\x88\x2f\x94\xf9\x4a\xc4" "\xcb\x65\x7e\x26\x22\x95\x6f\x8c\xf3\x11\x3f\x3d\xd4\x53\x3b\x07\xa9" "\x2f\x8a\x38\x1f\x29\x16\xd3\x66\x7a\x75\xa0\x3c\x1f\x74\xcf\x2b\x57" "\xbe\xdc\xf8\x7c\xfb\xfa\x62\x4f\x6d\xf7\xbc\xf2\xc8\x7f\x3e\x1c\xa6" "\x63\x7e\x6e\xaa\x47\x11\x3f\xa8\xce\xf8\x9b\xe9\x9f\xfd\x5c\x03\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x23\x45\xac\x45\x8a" "\xaf\x9c\x3a\x99\xaa\xf5\xc1\xdb\x6b\x8a\x5b\xed\x1b\x8d\x6b\xcd\x99" "\x85\xce\xb2\xbe\xee\xda\xbf\xee\x9a\xe9\xad\xad\xad\xad\x46\xea\xe4" "\x58\xce\xe9\x9c\xab\x39\xd7\x72\xae\xe7\xdc\xc8\x19\xb5\x7c\x7c\xce" "\xb1\x9c\xd3\x39\x57\x73\xae\xe5\x5c\xcf\xb9\x91\x33\x8a\x7c\x7c\xce" "\xb1\x9c\xd3\x39\x57\x73\xae\xe5\x5c\xcf\xb9\x91\x33\xfa\xf2\xf1\x39" "\xc7\x72\x4e\xe7\x5c\xcd\xb9\x96\x73\x3d\xe7\x46\xce\x38\x26\x6b\xf7" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x77\x96" "\x5a\x14\xd5\x5d\xdc\xbf\xf5\xb5\xcd\xb4\x35\xd0\xb9\xbf\xf4\x74\x74" "\x72\xdd\xfd\x40\xdf\xf1\xfe\x3f\x00\x00\xff\xff\x18\x35\x73\x54", 3093)); NONFAILING(syz_mount_image(/*fs=*/0x200000000c40, /*dir=*/0x2000000000c0, /*flags=*/0, /*opts=*/0x200000000180, /*chdir=*/0x47, /*size=*/0xc15, /*img=*/0x200000001940)); break; case 1: // link arguments: [ // old: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // new: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 00} (length 0xfc) // } // ] NONFAILING(memcpy((void*)0x200000000400, "./file1\000", 8)); NONFAILING(memcpy( (void*)0x200000000240, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 252)); syscall(__NR_link, /*old=*/0x200000000400ul, /*new=*/0x200000000240ul); break; case 2: // syz_mount_image$msdos arguments: [ // fs: ptr[in, buffer] { // buffer: {6d 73 64 6f 73 00} (length 0x6) // } // dir: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: mount_flags = 0x1a5a438 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0xd (1 bytes) // size: len = 0x0 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x0) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x200000000f40, "msdos\000", 6)); NONFAILING(memcpy((void*)0x200000000f00, ".\000", 2)); NONFAILING(syz_mount_image( /*fs=*/0x200000000f40, /*dir=*/0x200000000f00, /*flags=MS_I_VERSION|MS_PRIVATE|MS_POSIXACL|MS_SYNCHRONOUS|MS_STRICTATIME|MS_SILENT|0x202428*/ 0x1a5a438, /*opts=*/0x200000005580, /*chdir=*/0xd, /*size=*/0, /*img=*/0x200000000000)); break; case 3: // openat arguments: [ // fd: fd_dir (resource) // file: nil // flags: open_flags = 0x80000 (4 bytes) // mode: open_mode = 0x1 (2 bytes) // ] // returns fd syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0ul, /*flags=O_CLOEXEC*/ 0x80000, /*mode=S_IXOTH*/ 1); break; case 4: // syz_mount_image$nilfs2 arguments: [ // fs: ptr[in, buffer] { // buffer: {6e 69 6c 66 73 32 00} (length 0x7) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 33 00} (length 0x8) // } // flags: mount_flags = 0x400 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0xadc (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xadc) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x200000000340, "nilfs2\000", 7)); NONFAILING(memcpy((void*)0x200000000380, "./file3\000", 8)); NONFAILING(memcpy( (void*)0x200000002580, "\x78\x9c\xec\xdd\x5d\x88\x5c\x57\x01\x00\xe0\x73\x77\x77\x36\xbb\x69" "\x6b\xa6\x35\xb5\x6b\x1a\xdb\xa4\xd5\xb6\xfe\x74\xd3\x6c\xd6\xf8\x13" "\x34\x29\x09\x82\xa1\x29\xe2\x4b\xa1\xf8\x12\xd2\xb4\x06\x63\x04\x2b" "\xa8\xa5\xd0\x24\x4f\xbe\xd9\x52\x52\xf0\xc9\x1f\x7c\xea\x4b\xa9\x22" "\x58\x10\x09\x7d\xf2\xa5\x60\x03\x45\xe8\x53\x15\xf4\xa1\x21\x62\xc1" "\x87\x1a\x4d\x46\xb2\x73\xce\xcc\x9d\x93\x99\xcc\xcc\x66\x77\xee\xce" "\xee\xf7\xc1\xdd\x33\xe7\x9e\x73\xe7\x9c\x3b\x7b\xe7\xce\xfd\x3b\xe7" "\x04\x60\xc3\x9a\x58\xfa\xbb\xb8\x38\x57\x84\x70\xee\x8d\x97\x0f\xbd" "\xff\xc0\x3f\x66\xaf\xcd\xd9\xdf\xca\x51\x5f\xfa\x3b\x55\x8a\xd5\x42" "\x08\x45\x8c\x4f\x65\xef\xf7\xde\x64\x33\xbc\xf2\xc1\xf3\xc7\xba\x85" "\x45\x58\x58\xfa\x9b\xe2\xe1\xf1\x4b\xad\x65\x6f\x09\x21\x9c\x0e\x3b" "\xc2\xf9\x50\x0f\xdb\xce\x5d\x78\xe9\xad\x85\xc7\x8e\x9c\x39\x7c\x76" "\xe7\xdb\xaf\xee\xbb\xb8\x3a\x6b\x0f\x00\x00\x1b\xcb\x37\xce\xef\x5b" "\xbc\xf3\xaf\x7f\xbe\xfb\xf6\xcb\xaf\xdd\x73\x20\x6c\x6a\xcd\x4f\xc7" "\xe7\xf5\x34\x63\xa6\x79\xdc\x7f\x20\x1e\xf8\xa7\xe3\xff\x89\xd0\x19" "\x2f\x4a\x53\xd9\x74\x96\x6f\x2a\x4e\x13\xb3\x9d\xf9\x26\xbb\xe4\x2b" "\x97\x53\xcb\xf2\x4d\xf5\x28\x7f\x3a\x2b\xbf\xd6\x23\xdf\xa6\x70\xe3" "\xf2\x27\x4b\xf3\xba\xad\x37\x8c\xb3\xb4\x1d\xd7\x43\x31\x31\x1f\x42" "\xd8\xdc\x8a\x4f\x4c\xcc\xcf\x37\xcf\xc9\xc3\xd2\x79\xfd\x74\x31\x7f" "\xea\xc4\xc9\xa7\x9f\xad\xa8\xa2\xc0\x8a\xfb\xf7\xbd\x21\x84\x1d\xa5" "\xe9\xe0\xd9\xce\xf8\x5a\x9b\xf6\xaf\x81\x3a\x2c\x73\x6a\xac\x81\x3a" "\x8c\xe5\x74\x60\x74\x65\x5d\x6e\x34\x55\xbe\xce\x23\x9a\x1a\x5b\xaa" "\xde\x03\x01\x34\xe5\xf7\x0b\xaf\x73\x3a\xbf\xb2\x70\x73\x5a\xef\x36" "\x35\x58\xf9\x97\x1e\x9d\xe8\xbe\x3c\xac\x80\x51\x6f\xff\x43\x95\x3f" "\x5d\x71\xf9\x41\xf9\xbf\x3e\x63\x8f\xc3\xca\x59\xaf\x5b\x53\x5a\xaf" "\xf4\x3d\xba\x35\xc6\xf3\xfb\x08\xf9\xf3\x4b\xaf\xfc\xa1\x73\xb9\xb6" "\xfc\x4e\x47\xe7\xdc\xfc\x7e\x44\x6d\xc0\x7a\xf6\xba\x8f\x30\x2e\xf7" "\x17\x7a\xd5\x73\x72\xc4\xf5\x58\xae\x5e\xf5\xcf\xb7\x8b\xf5\xea\x2b" "\x31\x4c\x9f\xc3\x57\x3b\x52\xef\xed\xf8\xfe\xe4\xff\xd3\x71\xf9\x1f" "\x03\xdd\x7d\x98\x5f\xff\x37\x99\x4c\x6b\x7b\x0a\x1d\xf1\xda\xcd\xbc" "\x57\xa3\xe2\xfd\x0f\xb0\x76\xe5\xcf\xcd\x35\xd2\xfd\xd1\x28\x7f\xae" "\x2f\x4f\xdf\xd4\x27\x7d\xa6\x4f\xfa\x6c\x9f\xf4\xcd\x7d\xd2\x6f\xe9" "\x93\x0e\x1b\xd9\x6f\x7f\xf0\xd3\xf0\x62\xd1\xbe\xde\x95\x9f\xd3\x0f" "\x7b\x3d\x3c\x5d\x67\xbb\x2d\x86\x1f\x19\xb2\x3e\xf9\xf5\xc8\x61\xcb" "\xcf\x9f\xfb\x1d\xd6\xcd\x96\x9f\x3f\x4f\x0c\x6b\xd9\xef\x8f\x3e\x71" "\xfc\x8b\x4f\x3d\x79\xa1\xf9\xfc\x7f\xd1\xda\xfe\xaf\xc6\xed\x3d\x9d" "\x6e\xd4\xe3\x77\xeb\x7c\xcc\x90\xae\x17\xe6\xd7\xd5\x5b\xcf\xfe\xd7" "\x3b\xcb\x99\xe8\x91\xef\x8e\xac\x3e\xb7\x75\xc9\xbf\xf4\x7a\x6b\x67" "\xbe\x62\x6b\xfb\x7d\x42\x69\x3f\x73\x5d\x3d\xe6\x3a\x97\xdb\xd2\x2b" "\xdf\xf6\xce\x7c\xf5\x2c\xdf\x6c\x9c\x66\xb2\xfa\xe6\xc7\x27\x9b\xb3" "\xe5\xd2\xf1\x47\xda\xaf\xa6\xcf\x6b\x2a\x5b\xdf\x5a\xb6\x1e\xd3\x59" "\x3d\xd2\x7e\xe5\xf6\x18\xe6\xf5\x80\xe5\x48\xdb\x63\x7a\xfe\xbf\xdd" "\x1e\xa0\xf9\xfc\x7f\xda\x3e\xe7\x42\xad\x78\xfa\xc4\xc9\xe3\x8f\xc4" "\x78\xda\x4e\xff\x34\x59\xdb\x74\x6d\xfe\xee\x11\xd7\x1b\x58\x39\xbd" "\xbe\xff\xe9\xf7\x6b\x2e\x74\xb6\xff\xb9\xb5\x35\xbf\x36\x51\xde\x2f" "\x6c\x69\xcf\x2f\x9a\xfb\x85\xd7\xe3\xfb\x75\xce\x5f\x68\x95\x53\x9a" "\x5f\xfa\x51\x4b\xbf\x73\xdf\x9e\x9c\x5d\xca\x3f\x7f\xec\x7b\x27\x9f" "\x5a\x85\xf5\x86\x8d\xec\xd9\x1f\x3f\xf7\x9d\xa3\x27\x4f\x1e\xff\xbe" "\x17\xcb\x7e\xf1\xb5\xb5\x51\x8d\x61\x5e\xa4\xd3\x96\xb5\x52\x1f\x2f" "\x86\x7d\xb1\x63\xb5\x8b\xa8\x78\xc7\x04\xac\xba\x5d\x2f\x34\x0f\x02" "\x1e\x3e\xf1\xdd\xa3\xcf\x1c\x7f\xe6\xf8\xa9\x3d\x7b\xf7\xee\x59\x58" "\xd8\xfb\xa5\x3d\x8b\xbb\x96\x8e\xeb\x77\x95\x8f\xee\xcb\x4e\x57\x50" "\x5b\x60\x25\xb5\x7f\xf4\xab\xae\x09\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x30\xa8\x1f\x1e\x3e\x74\xe1\x9d\x37\xbf\xf0\x6e\xb3\xfd\x7f\xbb" "\xfd\x5f\x6a\xff\x9f\x9e\xfc\x4d\xed\xff\x7f\x92\xb5\xff\xcf\xdb\xc9" "\xa7\x76\xf0\xa9\x1d\xe0\xed\x5d\xd2\x97\xf2\x64\x1d\xac\x4e\x67\xf9" "\x6a\x71\xfa\x68\x56\xdf\xd4\x0d\x40\xf1\x42\x33\xbc\x33\x5b\xee\x63" "\x31\x6c\x8d\xe3\x17\xdb\xff\xa7\xe2\xf2\x7e\x5d\x53\x7d\xee\xca\xe6" "\xd7\x7a\x44\xb3\xee\x04\xae\xeb\x2f\x65\x3a\xeb\x83\x24\x1f\x2f\xf0" "\xbe\x18\x9e\x8d\xe1\xaf\x02\x54\xa8\x98\xed\x3e\x3b\x86\x37\xe8\xdf" "\xba\xf8\xb0\xb4\xad\xa7\xfe\x29\x4a\x4d\x78\x1b\xfa\x07\x1e\x1f\xe9" "\xff\x96\xf7\x5f\x94\xda\x7f\x77\xed\xd7\xa9\x4b\x7b\x6d\xc6\xcb\x28" "\x5a\x2c\x56\xbd\x8e\x40\x77\xff\xdc\x50\xfd\x7f\xff\xab\xbd\xe2\x95" "\xd7\xc5\xd4\x7b\x9a\x1a\x6d\x79\x3f\xdb\xb8\xdb\x44\xa3\xe7\x51\xfa" "\xa0\x23\xd8\x00\xac\x8c\xaa\xc7\xff\xfc\x7b\x68\x96\x9b\xae\x7f\x9e" "\xfa\xe3\xd7\x67\xae\x4d\x29\xdb\xa5\x47\x3b\xf7\x97\x79\xff\xa5\x30" "\x8c\xbf\xbc\xd3\x19\x5f\xeb\xe3\x4f\xae\x76\xf9\xf9\xb8\x7d\xa3\x2e" "\xbf\xea\xf5\x1f\xf5\xf8\x9f\xad\xf1\xef\xe2\xfe\x2f\xed\xf7\x7a\xef" "\xff\xb2\x11\xf3\xea\xcb\x2b\xf7\x3f\x3f\xbf\xf8\x6e\xa9\xd8\xb0\x6d" "\xd0\xf2\xf3\xf5\x4f\xfd\x40\x6f\x1d\xae\xfc\xcb\xb1\xfc\xb4\x36\x0f" "\x86\xc1\xca\x6f\xfc\x32\x2b\x3f\xbf\x21\x34\xa0\xff\x66\xe5\x6f\x1e" "\xb0\xfc\xeb\xd6\x7f\xfb\xf2\xca\xff\x5f\x2c\x3f\x7d\x6c\x0f\xdd\x3f" "\x68\xf9\xcd\x1a\x17\x13\x9d\xf5\x98\xcd\xd6\x23\xdd\xff\xcb\xaf\x1b" "\x27\x57\xb2\xf5\x4f\x7d\x7b\xde\xa0\xfc\x6f\x3e\xd7\x6d\xfd\x97\x39" "\x50\xe3\xd5\x58\x3e\x6c\x64\xe3\x32\xce\xec\xb0\xb2\xe3\x88\xd6\x41" "\x7b\xbf\xf1\x7f\x87\xfd\xfd\xbf\xd9\xf1\x7f\x5b\x95\xcd\x76\x6b\xf9" "\x73\x18\x9f\x8f\xf1\xb4\x23\x4e\xcf\x39\xe4\xe3\x9d\x0c\x5b\xff\xf4" "\x7c\x45\xfa\x1d\xb8\x33\x7b\xff\xa2\xcf\xef\x9b\xf1\x7f\xc7\xdb\x97" "\x63\xd8\xef\xfb\x90\xc6\xff\x4d\xdb\x63\x3d\xfe\xe4\x97\xe2\x4b\x9f" "\x65\x8a\xd7\xba\x7c\xb6\xeb\x75\x5f\x03\xe3\xea\xbd\x0d\x75\xff\x6f" "\x54\xd3\xc5\xe6\x69\xd0\xf2\x96\x9f\xa9\xbe\xfe\xa6\x21\xa6\xc6\xe4" "\x32\x96\x6b\x3d\x67\x55\x71\xfd\x1b\x8d\xc6\xea\x5e\xd0\xea\xa3\xd2" "\xc2\xa9\xfc\xf3\xaf\xfa\xee\x73\xd5\xe7\x29\xf7\x55\x5c\x7e\x3f\xf9" "\xf8\xbf\xf9\x31\x7c\x3e\xfe\x6f\x9e\x9e\x8f\xff\x9b\xa7\xe7\xe3\xff" "\xe6\xe9\xb3\xf1\x3f\xf4\x7e\x8f\xf4\x7c\xfc\xdf\x7c\x7b\xce\xc7\xff" "\xcd\xd3\xef\xca\xde\x37\x1f\x1f\x78\xae\x4f\xfa\xc7\xbb\xa4\x17\xa1" "\x9d\xbe\xad\xfb\xf2\xad\xd3\xf6\xbb\xfb\xbc\xff\xf6\x3e\xe9\x9f\xe8" "\x93\xbe\xb3\x95\xbe\xbf\x23\x47\x4a\xbf\xe7\x86\xcb\xb7\xf3\xf5\x7a" "\xff\x3b\xfa\xa4\xdf\xdf\x27\xfd\x93\x7d\xd2\x3f\xd5\x27\xfd\x81\x3e" "\xe9\x0f\x95\xd2\xcb\x63\x40\xa7\xf4\x4f\x67\xcb\x17\x59\xfa\x7a\x97" "\xf6\x3f\xbd\x3e\x3f\x60\xfd\xca\xdb\xe7\xf9\xfe\xc3\xc6\x91\xee\xff" "\xf4\xfa\xfe\x6f\x6d\xa7\x4f\x97\xb3\x8c\xb6\x96\xc0\x6a\x78\xe5\xb5" "\xdd\x07\x9f\xfc\xcd\xb7\xea\xcd\xf6\xff\xd3\xad\xeb\x21\xe9\x3e\xde" "\x81\x18\xaf\xc5\x73\xa3\x1f\xc5\x78\x7e\xdf\x3b\x94\xe2\xd7\xd2\xde" "\x8c\xf1\xbf\x65\xe9\x55\x5f\x6f\x02\xda\xf2\xfe\x33\xf2\xdf\xff\x07" "\xfb\xa4\x03\xe3\x2b\x3d\xe7\xe5\xfb\x0d\x1b\x50\x31\xd3\x7d\x76\x0c" "\xfb\xf5\x5b\xd5\xeb\x38\x9f\xf1\xf2\x99\x18\x7e\x36\x86\x9f\x8b\xe1" "\xc3\x31\x9c\x8f\xe1\xae\x18\xee\x8e\xe1\xc2\x88\xea\xc7\xea\x38\xf8" "\xfa\xef\xf6\xbd\x58\xb4\xcf\xf7\xb7\x64\xe9\x83\x3e\x4f\x9e\xb7\x07" "\xea\xe8\x27\x2a\x84\xb0\x67\xc0\xfa\xe4\xd7\x07\x86\x7d\x9e\x3d\xef" "\xc7\x6f\x58\x37\x5b\xfe\x32\x9b\x83\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x54\x66\x62\xe9\xef\xe2\xe2\x5c\x11\xc2\xb9\x37\x5e\x3e\xf4\xc4\x91" "\x13\xbb\xae\xcd\xd9\xdf\xca\x51\x5f\xfa\x3b\x55\x8a\xd5\x5a\xcb\x85" "\xf0\x48\x0c\x27\x63\xf8\x8b\xf8\xe2\xca\x07\xcf\x1f\x2b\x87\x57\x63" "\x58\x84\x85\x50\x84\xa2\x35\x3f\x3c\x7e\xa9\x55\xd2\x2d\x21\x84\xd3" "\x61\x47\x38\x1f\xea\x61\xdb\xb9\x0b\x2f\xbd\xb5\xf0\xd8\x91\x33\x87" "\xcf\xee\x7c\xfb\xd5\x7d\x17\x57\xef\x13\x00\x00\x00\x80\xf5\xef\xff" "\x01\x00\x00\xff\xff\x4f\x76\x07\x39", 2780)); NONFAILING(syz_mount_image(/*fs=*/0x200000000340, /*dir=*/0x200000000380, /*flags=MS_NOATIME*/ 0x400, /*opts=*/0x2000000003c0, /*chdir=*/1, /*size=*/0xadc, /*img=*/0x200000002580)); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*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=*/0x1000, /*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); if ((reason = setup_swap())) printf("the reproducer may not work as expected: swap setup failed: %s\n", reason); install_segv_handler(); for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); do_sandbox_none(); } } sleep(1000000); return 0; }