// https://syzkaller.appspot.com/bug?id=f9e6788f42f295b15ac5761ad355e2e8c1fb9980 // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_mount #define __NR_mount 40 #endif #ifndef __NR_mprotect #define __NR_mprotect 226 #endif #ifndef __NR_openat #define __NR_openat 56 #endif #ifndef __NR_quotactl #define __NR_quotactl 60 #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 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); } 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 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; } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*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=*/0x21000000ul, /*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); install_segv_handler(); use_temporary_dir(); intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x3000010 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x3e (1 bytes) // size: len = 0x51b (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x51a) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x200000c0, "ext4\000", 5)); NONFAILING(memcpy((void*)0x20000640, "./file1\000", 8)); NONFAILING(*(uint8_t*)0x20000000 = 0); NONFAILING(memcpy( (void*)0x20001200, "\x78\x9c\xec\xdd\xcf\x6f\x23\x57\x1d\x00\xf0\xef\x4c\xe2\xdd\xec\x6e\x8a" "\x53\x40\xa8\x54\xa2\x54\xb4\x68\xb7\x82\xb5\x37\x0d\x6d\x23\x84\xa0\x5c" "\xe0\x54\x09\x28\xf7\x25\x24\x4e\x14\xc5\x8e\xa3\xd8\x29\x9b\xa8\xa2\xa9" "\xf8\x0f\x10\x12\x48\x9c\x38\x71\x41\xe2\x0f\x40\x42\x3d\xf0\x07\xa0\x4a" "\x95\xe0\x82\x38\x20\x40\x20\x04\x5b\x38\x20\x01\x1d\x34\xe3\xb1\x9a\x75" "\xec\x24\xd0\xac\x9d\xc6\x9f\x8f\xf4\xe2\xf7\xe6\xd7\xf7\xbd\xb1\xfc\x3c" "\x33\x7e\x99\x09\x60\x6a\x3d\x19\x11\x2f\x46\xc4\x4c\x44\x3c\x13\x11\xd5" "\x72\x7a\x5a\xa6\x38\xec\xa5\x7c\xb9\xb7\xef\xbf\xba\x9a\xa7\x24\xb2\xec" "\xe5\xbf\x26\x91\x94\xd3\xfa\xdb\xca\xcb\xb3\x11\x71\xa3\x5c\x6d\x2e\x22" "\xbe\xf6\xe5\x88\x6f\x26\xc7\xe3\x76\xf6\x0f\xb6\x56\x9a\xcd\xc6\x6e\x59" "\xae\x77\x5b\x3b\xf5\xce\xfe\xc1\xed\xcd\xd6\xca\x46\x63\xa3\xb1\xbd\xb4" "\xb4\xf8\xfc\xf2\x0b\xcb\xcf\x2d\xdf\xc9\x4a\xef\xa9\x9d\x0b\xfd\xcc\x8f" "\xbf\xf4\xf9\x9f\x7f\xfa\x5b\xbf\xbb\xfb\xe7\x5b\xdf\xce\xab\xf5\xb9\x8f" "\x44\x25\x06\xda\x71\x9e\x7a\x4d\xaf\x14\xfb\xa2\x2f\xdf\x47\xbb\x0f\x23" "\xd8\x04\xcc\x94\xed\xa9\x4c\xba\x22\x00\x00\x9c\x49\x7e\x8c\xff\xc1\x88" "\xf8\x44\x71\xfc\x5f\x8d\x99\xe2\x68\x6e\xc0\xcc\x24\x6a\x06\x00\x00\x00" "\x9c\x97\xec\x0b\xf3\xf1\xef\x24\x22\x03\x00\x00\x00\x2e\xad\x34\x22\xe6" "\x23\x49\x6b\xe5\x58\x80\xf9\x48\xd3\x2b\xe5\xb5\x81\x0f\xc7\xf5\xb4\xd9" "\xee\x74\x3f\xb5\xde\xde\xdb\x5e\xcb\xe7\x45\x2c\x44\x25\x5d\xdf\x6c\x36" "\xee\x94\x63\x85\x17\xa2\x92\xe4\xe5\xc5\x72\x8c\x6d\xbf\xfc\xec\x40\x79" "\x29\x22\x1e\x8d\x88\xef\x55\xaf\x15\xe5\xda\x6a\xbb\xb9\x36\xe1\x6b\x1f" "\x00\x00\x00\x30\x2d\x6e\x0c\x9c\xff\xff\xa3\x9a\x16\xf9\xd3\x0d\xf9\x3f" "\x01\x00\x00\x00\xe0\xe2\x5a\x18\x59\x00\x00\x00\x00\x2e\x0b\xa7\xfc\x00" "\x00\x00\x70\xf9\x0d\x9e\xff\xbb\xdf\x3f\x00\x00\x00\x5c\x2a\x5f\x79\xe9" "\xa5\x3c\x65\xfd\xe7\x5f\xaf\xbd\xb2\xbf\xb7\xd5\x7e\xe5\xf6\x5a\xa3\xb3" "\x55\x6b\xed\xad\xd6\x56\xdb\xbb\x3b\xb5\x8d\x76\x7b\xa3\xb8\x67\x5f\xeb" "\xb4\xed\x35\xdb\xed\x9d\xcf\xc4\xf6\xde\xbd\x7a\xb7\xd1\xe9\xd6\x3b\xfb" "\x07\x77\x5b\xed\xbd\xed\xee\xdd\xcd\x07\x1e\x81\x0d\x00\x00\x00\x8c\xd1" "\xa3\x1f\x7f\xe3\xd7\x49\x44\x1c\x7e\xf6\x5a\x91\xa2\xbc\x0f\x20\xc0\x03" "\xfe\x30\xe9\x0a\x00\xe7\xc9\x50\x3f\x98\x5e\xee\xe2\x0d\xd3\xab\x32\xe9" "\x0a\x00\x13\x97\x9c\x32\xdf\xe0\x1d\x00\x00\x78\xff\xbb\xf9\xd1\xe3\xbf" "\xff\xf7\x9f\xff\xef\xda\x00\x5c\x6e\xc6\xfa\x00\xc0\xf4\xf1\xfb\x3f\x4c" "\xaf\x8a\x11\x80\x30\xb5\x66\xcb\x6b\x00\x1f\xe8\x15\xaf\x8e\x5a\x6e\xe4" "\xef\xff\xbf\x3c\x6b\xa4\x2c\x8b\x78\xb3\x7a\x74\x8a\xeb\x8b\x00\x00\x30" "\x5e\xf3\x45\x4a\xd2\x5a\x79\x1e\x30\x1f\x69\x5a\xab\x45\x3c\x12\x91\x2e" "\x44\x25\x59\xdf\x6c\x36\xee\x94\xe7\x07\xbf\xaa\x56\xae\xe6\xe5\xc5\x62" "\xcd\xe4\xd4\x31\xc3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x40\x4f\x96\x25\x91\x01\x00\x00\x00\x97\x5a\x44" "\xfa\xa7\xa4\xb8\x9b\x7f\xc4\xcd\xea\xd3\xf3\x83\xd7\x07\xae\x24\xff\xac" "\xc6\x1f\xcb\xc2\x0f\x5f\xfe\xfe\xbd\x95\x6e\x77\x77\x31\x9f\xfe\xb7\xe2" "\x59\x5e\x57\x22\xa2\xfb\x83\x72\xfa\xb3\x23\x1f\x1f\x06\x00\x00\x00\x9c" "\xb7\xe4\x70\xe4\xac\xde\x79\x7a\xf9\xba\x38\xd6\x5a\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\x30\x05\xde\xbe" "\xff\xea\x6a\x3f\x8d\x33\xee\x5f\xbe\x18\x11\x0b\xc3\xe2\xcf\xc6\x5c\xf1" "\x3a\x17\x95\x88\xb8\xfe\xf7\x24\x66\x8f\xac\x97\x44\xc4\xcc\x39\xc4\x3f" "\x7c\x3d\x22\x1e\x1b\x16\x3f\x89\x77\xb2\xec\xb5\x28\x6b\x31\x2c\xfe\xb5" "\x87\x1c\x7f\xa1\xd8\x35\xc3\xe3\xa7\x11\x71\xe3\x1c\xe2\xc3\x34\x7b\x23" "\xef\x7f\x5e\x1c\xf6\xf9\x4b\xe3\xc9\xe2\x75\xf8\xe7\x6f\xb6\x4c\xef\xd5" "\xe8\xfe\x2f\x2d\x23\x3f\x56\xf4\x73\xc3\xfa\x9f\x47\x8e\x6d\xad\x35\x34" "\xc6\xe3\x6f\xfd\xb4\xde\xcb\x55\x8e\xc7\x7f\x3d\xe2\xf1\xd9\xe1\xfd\x4f" "\xbf\xff\x4d\x46\xc4\x7f\xea\xd8\xd6\xfe\x95\x65\xd9\xf1\xf8\xdf\xf8\xfa" "\xc1\xc1\xa8\xf6\x67\x3f\x8a\xb8\x39\xf4\xfb\x27\x79\x20\x56\xbd\xdb\xda" "\xa9\x77\xf6\x0f\x6e\x6f\xb6\x56\x36\x1a\x1b\x8d\xed\xa5\xa5\xc5\xe7\x97" "\x5f\x58\x7e\x6e\xf9\x4e\x7d\x7d\xb3\xd9\x28\xff\x0e\x8d\xf1\xdd\x8f\xfd" "\xec\x9d\x51\xf1\xf3\xf6\x5f\x1f\x12\xff\xb7\xbf\xe9\xf5\xbf\x27\xb5\xff" "\xe9\x51\x1b\x1d\xf0\x9f\xb7\xee\xdd\xff\x50\x2f\x7b\xec\x0d\xc8\xe3\xdf" "\x7a\x6a\xe8\xf7\xef\x5c\x8c\x88\x9f\x96\xdf\x7d\x9f\x2c\xf3\xf9\xfc\x9b" "\xfd\xfc\x61\x2f\x7f\xd4\x13\x3f\x79\xf3\x89\x93\xda\xbf\x36\x62\xff\x9f" "\xf6\xfe\xdf\x3a\x63\xfb\x9f\xf9\xea\x77\x7e\x7f\xc6\x45\x01\x80\x31\xe8" "\xec\x1f\x6c\xad\x34\x9b\x8d\xdd\x13\x32\x73\x67\x58\xe6\xfd\x98\xf9\xc5" "\xdc\x85\xa8\xc6\xff\x98\xc9\x5e\xeb\xbd\x73\x17\xa5\x3e\xff\x6f\x26\x3f" "\x5a\x7d\x77\x4a\xbf\x55\x17\xa0\x62\x47\x32\xd9\x58\x62\x5d\x2d\x8e\xe7" "\xcf\xba\xd6\x95\x31\xb5\x7d\xa2\xdd\x12\x00\x00\xf0\x10\xbc\x7b\xd0\x3f" "\xe9\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0" "\xf4\x1a\xc7\xad\xd4\x06\x63\x1e\x4e\xa6\xa9\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x27\xfa" "\x6f\x00\x00\x00\xff\xff\xf3\x20\xdc\x8d", 1306)); NONFAILING(syz_mount_image( /*fs=*/0x200000c0, /*dir=*/0x20000640, /*flags=MS_LAZYTIME|MS_SYNCHRONOUS|MS_STRICTATIME*/ 0x3000010, /*opts=*/0x20000000, /*chdir=*/0x3e, /*size=*/0x51b, /*img=*/0x20001200)); // quotactl$Q_QUOTAON arguments: [ // cmd: quota_cmd_quota_on = 0xffffffff80000201 (8 bytes) // special: ptr[in, blockdev_filename] { // union blockdev_filename { // loop: loop_filename { // prefix: buffer: {2f 64 65 76 2f 6c 6f 6f 70} (length 0x9) // id: proc = 0x0 (1 bytes) // z: const = 0x0 (1 bytes) // } // } // } // id: uid (resource) // addr: nil // ] NONFAILING(memcpy((void*)0x20000180, "/dev/loop", 9)); NONFAILING(*(uint8_t*)0x20000189 = 0x30); NONFAILING(*(uint8_t*)0x2000018a = 0); syscall(__NR_quotactl, /*cmd=Q_QUOTAON_GRP*/ 0xffffffff80000201ul, /*special=*/0x20000180ul, /*id=*/0, /*addr=*/0ul); // mprotect arguments: [ // addr: VMA[0x3000] // len: len = 0x3000 (8 bytes) // prot: mmap_prot = 0x9 (8 bytes) // ] syscall(__NR_mprotect, /*addr=*/0x20000000ul, /*len=*/0x3000ul, /*prot=PROT_SEM|PROT_READ*/ 9ul); // openat$cgroup_ro arguments: [ // fd: fd_cgroup (resource) // file: ptr[in, buffer] { // buffer: {63 67 72 6f 75 70 2e 73 74 61 74 00} (length 0xc) // } // flags: const = 0x275a (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd NONFAILING(memcpy((void*)0x20000180, "cgroup.stat\000", 12)); res = syscall(__NR_openat, /*fd=*/(intptr_t)-1, /*file=*/0x20000180ul, /*flags=*/0x275a, /*mode=*/0); if (res != -1) r[0] = res; // mmap arguments: [ // addr: VMA[0xb36000] // len: len = 0xb36000 (8 bytes) // prot: mmap_prot = 0xa (8 bytes) // flags: mmap_flags = 0x28011 (8 bytes) // fd: fd (resource) // offset: intptr = 0x0 (8 bytes) // ] syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0xb36000ul, /*prot=PROT_SEM|PROT_WRITE*/ 0xaul, /*flags=MAP_STACK|MAP_POPULATE|MAP_FIXED|MAP_SHARED*/ 0x28011ul, /*fd=*/r[0], /*offset=*/0ul); // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: 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 61 00} (length 0xfd) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0xfe (1 bytes) // size: len = 0x244 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x244) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x200002c0, "ext4\000", 5)); NONFAILING( memcpy((void*)0x20000700, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 253)); NONFAILING(*(uint8_t*)0x200012c0 = 0); NONFAILING(memcpy( (void*)0x20000400, "\x78\x9c\xec\xdd\x3f\x68\x24\x55\x1c\x07\xf0\xef\xcc\xee\x7a\xe6\x6e\x91" "\x53\x1b\x41\xfc\x03\x22\xa2\x81\x70\x76\x82\x4d\x6c\x14\x02\x12\x82\x88" "\xa0\x42\x44\xc4\x46\x49\x84\x98\x60\x97\x58\xd9\x58\x68\xad\x92\xca\x26" "\x88\x9d\xd1\x52\xd2\x04\x1b\x45\xb0\x8a\x9a\x22\x36\x82\x06\x0b\x83\x85" "\x16\x2b\xbb\x93\x48\x4c\x56\xa3\x6e\xdc\x39\x32\x9f\x0f\x4c\x66\x26\xf3" "\xde\xfc\xde\xb0\xf3\x7d\xbb\xcd\xec\x06\x68\xac\xab\x49\xa6\x93\xb4\x92" "\x4c\x26\xe9\x24\x29\x8e\x37\xb8\xbb\x5a\xae\x1e\xee\xae\x4f\x6c\xcf\x27" "\xbd\xde\x13\x3f\x15\x83\x76\xd5\x7e\xe5\xa8\xdf\x95\x24\x6b\x49\x1e\x4a" "\xb2\x55\x16\x79\xa9\x9d\xac\x6c\x3e\xb3\xf7\xcb\xce\x63\xf7\xbd\xb9\xdc" "\xb9\xf7\xfd\xcd\xa7\x27\xc6\x7a\x91\x87\xf6\xf7\x76\x1f\x3f\x78\x6f\xf6" "\x8d\x8f\x66\x1e\x5c\xf9\xe2\xab\x1f\x66\x8b\x4c\xa7\xfb\xa7\xeb\x3a\x7f" "\xc5\x90\xff\xb5\x8b\xe4\x96\xff\xa3\xd8\x75\xa2\x68\xd7\x3d\x02\xfe\x89" "\xb9\xd7\x3e\xfc\xba\x9f\xfb\x5b\x93\xdc\x33\xc8\x7f\x27\x65\xaa\x17\xef" "\xad\xa5\x1b\xb6\x3a\x79\xe0\xdd\xbf\xea\xfb\xf6\x8f\x5f\xde\x3e\xce\xb1" "\x02\xe7\xaf\xd7\xeb\xf4\xdf\x03\xd7\x7a\x40\xe3\x94\x49\xba\x29\xca\xa9" "\x24\xd5\x76\x59\x4e\x4d\x55\x9f\xe1\xbf\x69\x5d\x2e\x5f\x5e\x5c\x7a\x75" "\xf2\xc5\xc5\xe5\x85\x17\xea\x9e\xa9\x80\xf3\xd2\x4d\x76\x1f\xfd\xe4\xd2" "\xc7\x57\x4e\xe4\xff\xfb\x56\x95\x7f\xe0\xe2\xea\xe7\xff\xc9\xb9\x8d\x6f" "\xfb\xdb\x07\xad\xba\x47\x03\x8c\xc5\x1d\xd5\xaa\x9f\xff\xc9\xe7\x56\xef" "\x8f\xfc\x43\xe3\xc8\x3f\x34\x97\xfc\x43\x73\xc9\x3f\x34\x97\xfc\x43\x73" "\xc9\x3f\x34\x97\xfc\xc3\x05\xd6\xf9\xfb\xc3\xf2\x0f\xcd\x25\xff\xd0\x5c" "\xf2\x0f\xcd\x75\x3c\xff\x00\x40\xb3\xf4\x2e\xd5\xfd\x04\x32\x50\x97\xba" "\xe7\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xb4" "\xf5\x89\xed\xf9\xa3\x65\x5c\x35\x3f\x7b\x27\xd9\x7f\x24\x49\x7b\x58\xfd" "\xd6\xe0\xf7\x88\x93\x1b\x07\x7f\x2f\xff\x5c\xf4\x9b\xfd\xa1\xa8\xba\x8d" "\xe4\xd9\xbb\x46\x3c\xc1\x88\x3e\xa8\xf9\xe9\xeb\x9b\xbe\xab\xb7\xfe\xe7" "\x77\xd6\x5b\x7f\x75\x21\x59\x7b\x3d\xc9\xb5\x76\xfb\xf4\xfd\x57\x1c\xde" "\x7f\xff\xdd\xcd\x67\x1c\xef\x3c\x3f\x62\x81\x7f\xa9\x38\xb1\xff\xf0\x53" "\xe3\xad\x7f\xd2\x6f\x1b\xf5\xd6\x9f\xd9\x49\x3e\xed\xcf\x3f\xd7\x86\xcd" "\x3f\x65\x6e\x1b\xac\x87\xcf\x3f\xdd\xb3\xbf\x62\xf9\x4c\xaf\xfc\x3a\xe2" "\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x9b\xdf\x03\x00\x00\xff\xff" "\xfa\x40\x6d\x4c", 580)); NONFAILING(syz_mount_image(/*fs=*/0x200002c0, /*dir=*/0x20000700, /*flags=*/0, /*opts=*/0x200012c0, /*chdir=*/0xfe, /*size=*/0x244, /*img=*/0x20000400)); // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x4002 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // fs_opt_elem[ext4_options] { // elem: union ext4_options { // test_dummy_encryption_v1: buffer: {74 65 73 74 5f 64 75 6d 6d // 79 5f 65 6e 63 72 79 70 74 69 6f 6e 3d 76 31} (length 0x18) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // dioread_nolock: buffer: {64 69 6f 72 65 61 64 5f 6e 6f 6c 6f // 63 6b} (length 0xe) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0xbe7 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xbe7) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x20000bc0, "ext4\000", 5)); NONFAILING(memcpy((void*)0x20000240, "./file1\000", 8)); NONFAILING(memcpy((void*)0x20000000, "test_dummy_encryption=v1", 24)); NONFAILING(*(uint8_t*)0x20000018 = 0x2c); NONFAILING(memcpy((void*)0x20000019, "dioread_nolock", 14)); NONFAILING(*(uint8_t*)0x20000027 = 0x2c); NONFAILING(*(uint8_t*)0x20000028 = 0); NONFAILING(memcpy( (void*)0x20000fc0, "\x78\x9c\xec\xdc\xdf\x6b\x5c\x59\x1d\x00\xf0\xef\xbd\x33\x99\x26\x6d\x74" "\x52\x11\xb1\xbe\x18\x11\x69\x41\x9c\x26\x95\x14\x5b\x04\x5b\xa9\xf8\xe2" "\x83\xa0\xaf\x42\x43\x3a\x29\x21\xd3\x1f\x24\x91\x9a\x34\xe0\x44\xff\x01" "\x51\x9f\x05\x5f\x04\xb5\x28\x3e\xd8\xe7\xbe\x28\xbb\xaf\xfb\xb2\xdb\xbe" "\xee\xb2\x0f\x0b\x65\xc9\x36\xbb\xb0\x2c\xbb\x59\xee\xfc\x48\xd2\xce\x4c" "\x92\xb6\x33\xb9\xd9\xe6\xf3\x81\x33\xf7\x9c\x7b\x66\xe6\x7c\xbf\xf7\x32" "\x73\xcf\x81\xb9\x13\xc0\x91\x35\x9e\x3d\xa4\x11\xa7\x22\xe2\x6a\x12\x51" "\x6e\xed\x4f\x23\xa2\xd4\xa8\x0d\x47\xd4\x9b\xcf\xdb\x58\x5f\x9d\xf9\x68" "\x7d\x75\x26\x89\xcd\xcd\x5f\xbc\x9f\x44\x12\x11\x4f\xd6\x57\x67\xda\xef" "\x95\xb4\xb6\x27\x5a\x8d\xe1\x88\x78\xe3\xc7\x49\x7c\xe5\xf7\x9d\xe3\x2e" "\x2e\xaf\xcc\x4f\xd7\x6a\xd5\x85\x56\xfb\xec\xd2\x8d\xdb\x67\x17\x97\x57" "\xbe\x37\x77\x63\xfa\x7a\xf5\x7a\xf5\xe6\xe4\xf9\x1f\x4c\x9d\x9b\x3a\x3f" "\x71\x61\xaa\x6f\xb9\x7e\xfc\xf6\xa5\xfb\x1f\x7e\xeb\xa7\xef\xd6\x3f\xf9" "\xc7\xa7\xf7\x3e\xf8\xd3\xdf\x92\xb8\x14\xa3\xad\xbe\x9d\x79\xf4\xcb\x78" "\x8c\x6f\x1d\x93\x9d\x8a\x11\x31\xdd\xef\xc1\x72\x52\x68\xe5\xb3\x33\xcf" "\xa4\xb8\xc7\x8b\xd2\xd6\x76\x68\x80\x81\x01\x00\xd0\x55\xba\x63\x0e\xf7" "\xb5\x28\x47\x21\xb6\x27\x6f\xe5\xf8\xdf\x9b\xb9\x06\x07\x00\x00\x00\xf4" "\xc5\x66\x21\x62\x13\x00\x00\x00\x78\xc5\x25\xd6\xff\x00\x00\x00\xf0\x8a" "\x6b\xff\x0e\xe0\xc9\xfa\xea\x4c\xbb\xe4\xfb\x8b\x84\x83\xf5\xf8\x72\x44" "\x8c\x35\xf3\xdf\x68\x95\x66\x4f\x31\xea\x8d\xed\x70\xe3\x36\xd5\xe3\x4f" "\x92\xd8\x79\x5b\x6b\xd2\x7c\xd9\x4b\x1b\x8f\x88\x77\x1e\x5d\xf8\x77\x56" "\x62\x40\xf7\x21\xef\xa6\xbe\x16\x11\x5f\xef\x76\xfe\x93\x46\xfe\x63\x8d" "\xbb\xb8\x3b\xf3\x4f\x23\x62\xa2\x0f\xe3\x8f\x3f\xd3\xde\x23\xff\x42\x1f" "\x86\x7c\xca\xcb\xe4\x7f\xa9\x0f\xe3\x3f\x67\xfe\x31\x88\x63\x00\xc0\xd1" "\xf3\xe0\x72\xf3\x42\xd6\x79\xfd\x4b\xb7\xe6\x3f\xd1\xe5\xfa\x57\xec\x72" "\xed\x7a\x11\x5d\xae\x7f\x07\x7a\x7d\x6b\xcf\xff\x36\x3a\xe6\x7f\xdb\xf9" "\x17\x7a\xcc\xff\x7e\xbe\xcf\x31\xee\xfe\xfd\x2f\x77\x7a\xf5\x65\xf9\xff" "\xf0\xfe\x4f\xfe\xd5\x2e\xd9\xf8\xd9\xf6\xa5\x92\x7a\x0e\x8f\xd7\x22\xbe" "\x51\xec\x96\x7f\xb2\x95\x7f\xd2\x23\xff\xab\xfb\x1c\xa3\xfc\xd9\x9d\x6a" "\xaf\xbe\xbc\xf3\xdf\xfc\x6b\xc4\xe9\xe8\x9e\x7f\x5b\xb2\xfb\xff\x13\x9d" "\x9d\x9d\xab\x55\x27\x9a\x8f\x5d\xc7\x58\x7b\x7d\xea\x9f\xbd\xc6\xdf\x4f" "\xfe\x23\xfd\x4b\xb7\x43\x76\xfe\x8f\xf7\xc8\xbf\xfd\xff\x4f\xbd\xce\xff" "\xed\x7d\x8e\xf1\xab\x2b\x57\xfe\xd3\xb1\xf3\xd1\x76\x75\xf7\xfc\xd3\xf7" "\x4a\xc9\x2f\x1b\xb5\x52\x6b\xcf\x6f\xa6\x97\x96\x16\x26\x23\x4a\xc9\xcf" "\x3a\xf7\x9f\xdb\x3d\x96\xf6\x73\xda\xef\x91\xe5\x7f\xe6\xdb\xbb\x7f\xfe" "\xbb\xe5\x9f\x7d\x27\xd4\x5b\xc7\x21\x5b\x0b\xac\xb5\xb6\x59\xfb\x77\xcf" "\x8c\xf9\xa3\x7b\x77\xff\xdb\x2b\x9e\xf6\xfa\x2f\xcf\xcf\xff\xb5\x1e\xe7" "\x7f\x67\xfe\xaf\x15\x3b\xcf\xff\x1f\xba\xbe\x63\xe7\xbf\x3f\x7d\xe7\xff" "\x7f\x3c\xd3\x6b\xfc\x9d\xeb\xdf\xac\x64\xe3\xb7\xd7\xc2\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xd0\x96\x46\xc4\x68\x24\x69\x65\xab\x9e\xa6\x95\x4a\xc4\x89" "\x88\xf8\x6a\x1c\x4f\x6b\xb7\x16\x97\xbe\x3b\x7b\xeb\xd7\x37\xaf\x65\x7d" "\x11\x63\x31\x94\xce\xce\xd5\xaa\x13\x11\x51\x6e\xb6\x93\xac\x3d\xd9\xa8" "\x6f\xb7\xcf\x3d\xd3\xfe\x7e\x44\x9c\x8c\x88\x3f\x97\x47\x1a\xed\xca\xcc" "\xad\xda\xb5\xbc\x93\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\x60\xcb\x89\x88" "\x18\x8d\x24\xad\x44\x44\x1a\x11\x1b\xe5\x34\xad\x54\xf2\x8e\x0a\x00\x00" "\x00\xe8\xbb\xb1\x17\x7d\xe1\x50\x7f\xe3\x00\x00\x00\x00\x06\xe7\x85\xd7" "\xff\x00\x00\x00\xc0\x17\x86\xf5\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x03\x76\xf2\x9b\x0f\x1e\x26\x11\x51\xbf\x38\xd2" "\x28\x99\x52\xab\x6f\x28\xd7\xc8\x80\x41\x4b\xf3\x0e\x00\xc8\x4d\xa1\xb9" "\xd9\x4c\xf2\x0e\x04\x38\x70\xc5\xbc\x03\x00\x72\xf3\x9c\x6b\xfc\xc2\xa0" "\xe2\x00\xf2\xb3\xd7\xfc\x7f\xb8\x67\xcf\xb1\xbe\xc7\x02\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0" "\xe1\x75\xfa\xd4\x83\x87\x49\x44\xd4\x2f\x8e\x34\x4a\xa6\xd4\xea\x1b\xca" "\x35\x32\x60\xd0\xd2\xbc\x03\x00\x72\x53\xd8\xad\xb3\x78\x70\x71\x00\x07" "\xcf\x47\x1c\x8e\x2e\x6b\x7c\x20\xd9\xa3\x7f\x78\xfb\x39\xf5\xa7\x7b\x8e" "\x0d\x2c\x26\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x0e\x9f\xd1\x46\x49\xd2\x4a\x44\x94\x5a\xfb" "\x2a\x95\x88\x2f\x45\xc4\x58\x0c\x25\xb3\x73\xb5\xea\x44\x44\x7c\x39\x22" "\xde\x2a\x0f\x1d\xcb\xda\x93\x39\xc7\x0c\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x40\xff\x2d\x2e\xaf\xcc\x4f\xd7\x6a\xd5\x85\xac\x92\x46\xab\xb2\xb5\xe7" "\x08\x56\x36\x7f\xdb\xa3\x2b\x69\x1e\xb1\x7a\xee\x11\xaa\xf4\xa7\x52\x8a" "\x43\x11\xc6\x21\xad\xe4\xfd\xcd\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x1e" "\x16\x97\x57\xe6\xa7\x6b\xb5\xea\xc2\x62\xde\x91\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x79\x5b\x5c\x5e\x99" "\x9f\xae\xd5\xaa\x0b\x03\xac\xe4\x9d\x23\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf9\xf9\x3c\x00\x00\xff" "\xff\x87\x1a\x0b\xe3", 3047)); NONFAILING(syz_mount_image( /*fs=*/0x20000bc0, /*dir=*/0x20000240, /*flags=MS_REC|MS_NOSUID*/ 0x4002, /*opts=*/0x20000000, /*chdir=*/1, /*size=*/0xbe7, /*img=*/0x20000fc0)); // mount arguments: [ // src: nil // dst: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // type: nil // flags: mount_flags = 0x2200020 (8 bytes) // data: ptr[in, buffer] { // buffer: {} (length 0x0) // } // ] NONFAILING(memcpy((void*)0x20000240, ".\000", 2)); syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x20000240ul, /*type=*/0ul, /*flags=MS_LAZYTIME|MS_REMOUNT|MS_RELATIME*/ 0x2200020ul, /*data=*/0x20000000ul); return 0; }