// https://syzkaller.appspot.com/bug?id=e87124bc3a3c38bf883f562cc8cc06e3a8afd44a // 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 #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; \ }) //% 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; } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; install_segv_handler(); 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: {13 13 77 c5 fc 35 d4 14 54 d5 d4 1d 29 ad 1a 60 29 59 81 46 // e6 be 16 6e 41 ad 0d bd 40 54 03 3c 9f 33 bb da 82 24 a2 f3 d7 72 e7 // 63 6e 48 b3 3c bf 70 83 72 e8 f1 b9 93 3e c5 12 77 43 be 22 06 20 9e // f0 2d f9 cb f2 f6 e8 80 d3 38 2f 00} (length 0x4e) // } // flags: mount_flags = 0x0 (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 { // errors_remount: buffer: {65 72 72 6f 72 73 3d 72 65 6d 6f 75 // 6e 74 2d 72 6f} (length 0x11) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nodelalloc: buffer: {6e 6f 64 65 6c 61 6c 6c 6f 63} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // debug_want_extra_isize: fs_opt["debug_want_extra_isize", // fmt[hex, int32]] { // name: buffer: {64 65 62 75 67 5f 77 61 6e 74 5f 65 78 74 72 // 61 5f 69 73 69 7a 65} (length 0x16) eq: const = 0x3d (1 // bytes) val: int32 = 0x2e (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // inode_readahead_blks: fs_opt["inode_readahead_blks", fmt[hex, // flags[ext4_inode_readahead_blks]]] { // name: buffer: {69 6e 6f 64 65 5f 72 65 61 64 61 68 65 61 64 // 5f 62 6c 6b 73} (length 0x14) eq: const = 0x3d (1 bytes) // val: ext4_inode_readahead_blks = 0x4000000 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // jqfmt_vfsv0: buffer: {6a 71 66 6d 74 3d 76 66 73 76 30} // (length 0xb) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // quota: buffer: {71 75 6f 74 61} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x3 (1 bytes) // size: len = 0x457 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x457) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x200000000040, "ext4\000", 5)); NONFAILING( memcpy((void*)0x200000000080, "\023\023w\305\3745\324\024T\325\324\035)\255\032`)" "Y\201F\346\276\026nA\255\r\275@T\003<\2373\273\332\202$" "\242\363\327r\347cnH\263<\277p\203r\350\361\271\223>" "\305\022wC\276\"\006 \236\360-\371\313\362\366\350\200\3238/\000", 78)); NONFAILING(memcpy((void*)0x200000000280, "errors=remount-ro", 17)); NONFAILING(*(uint8_t*)0x200000000291 = 0x2c); NONFAILING(memcpy((void*)0x200000000292, "nodelalloc", 10)); NONFAILING(*(uint8_t*)0x20000000029c = 0x2c); NONFAILING(memcpy((void*)0x20000000029d, "debug_want_extra_isize", 22)); NONFAILING(*(uint8_t*)0x2000000002b3 = 0x3d); NONFAILING(sprintf((char*)0x2000000002b4, "0x%016llx", (long long)0x2e)); NONFAILING(*(uint8_t*)0x2000000002c6 = 0x2c); NONFAILING(memcpy((void*)0x2000000002c7, "inode_readahead_blks", 20)); NONFAILING(*(uint8_t*)0x2000000002db = 0x3d); NONFAILING(sprintf((char*)0x2000000002dc, "0x%016llx", (long long)0x4000000)); NONFAILING(*(uint8_t*)0x2000000002ee = 0x2c); NONFAILING(memcpy((void*)0x2000000002ef, "jqfmt=vfsv0", 11)); NONFAILING(*(uint8_t*)0x2000000002fa = 0x2c); NONFAILING(memcpy((void*)0x2000000002fb, "quota", 5)); NONFAILING(*(uint8_t*)0x200000000300 = 0x2c); NONFAILING(*(uint8_t*)0x200000000301 = 0); NONFAILING(memcpy( (void*)0x200000000ec0, "\x78\x9c\xec\xdb\xcb\x6f\x1b\xc5\x1f\x00\xf0\xef\xae\x93\xf4\xd7\xd7\x2f" "\xa1\x94\x47\x1f\x40\xa0\x20\x22\x1e\x49\x93\x16\xe8\x81\x03\x20\x90\x38" "\x80\x84\xc4\xa5\x1c\x43\x92\x56\xa5\x6e\x83\x9a\x20\xd1\xaa\x82\x82\x50" "\x39\xa2\x4a\xdc\x11\x47\x24\xfe\x02\x4e\x70\x41\xc0\x09\x89\x2b\xdc\x51" "\xa5\x0a\xf5\x42\xe1\x64\xb4\xf6\x6e\xfd\x88\xed\x34\xc1\x8e\x4b\xfd\xf9" "\x48\x1b\xcf\xec\xce\x7a\x66\x3c\x3b\xf6\xcc\x4e\x36\x80\xa1\x35\x99\xfd" "\x49\x22\x76\x45\xc4\xaf\x11\x31\x5e\x8b\x36\x27\x98\xac\xbd\xdc\xb8\x7e" "\x71\xe1\xaf\xeb\x17\x17\x92\xa8\x54\xde\xfc\x23\xa9\xa6\xfb\xf3\xfa\xc5" "\x85\x22\x69\x71\xde\xce\x3c\x32\x95\x46\xa4\x9f\x24\x71\xa0\x4d\xbe\x2b" "\xe7\x2f\x9c\x9e\x2f\x97\x97\xce\xe5\xf1\x99\xd5\x33\xef\xce\xac\x9c\xbf" "\xf0\xf4\xa9\x33\xf3\x27\x97\x4e\x2e\x9d\x9d\x3b\x76\xec\xe8\x91\xd9\xe7" "\x9e\x9d\x7b\xa6\x27\xf5\xbc\x2b\x2b\xeb\xfe\x0f\x96\x0f\xee\x7b\xf5\xad" "\x2b\xaf\x2f\x1c\xbf\xf2\xf6\x8f\x5f\x27\x45\xfd\x5b\xea\xd1\x23\x93\xdd" "\x0e\x3e\x56\xa9\xf4\x38\xbb\xc1\xda\xdd\x10\x4e\x46\x06\x58\x10\x36\xa4" "\x14\x11\x59\x73\x8d\x56\xfb\xff\x78\x94\xa2\xde\x78\xe3\xf1\xca\xc7\x03" "\x2d\x1c\xd0\x57\x95\x5c\x87\xc3\x97\x2a\xc0\x1d\x2c\x89\xc6\xd8\x58\x0c" "\xae\x24\xc0\xd6\x2a\x7e\xe8\xb3\xf9\x6f\xb1\x6d\xdd\xe8\x63\xf0\xae\xbd" "\x58\x9b\x00\x65\xf5\xbe\x91\x6f\xb5\x23\x23\x91\x46\x6d\x62\x94\xcd\x8d" "\xfa\x35\x5b\x9f\x8c\x88\xe3\x97\xfe\xfe\x22\xdb\xa2\x3f\xf7\x21\x00\x00" "\x9a\x7c\x9b\x8d\x7f\x9e\x6a\x37\xfe\x4b\xe3\xde\x86\x74\xff\xcf\xd7\x86" "\x26\xf2\xb5\x94\x3d\x11\x71\x77\x44\xec\x8d\x88\x7b\x22\xaa\x69\xef\x8b" "\x88\xfb\x37\x98\x7f\xeb\x22\xc9\xda\xf1\x4f\x7a\x75\x53\x15\xbb\x45\xd9" "\xf8\xef\xf9\x7c\x6d\xab\x79\xfc\x97\x16\x49\x26\x4a\x79\x6c\x77\x35\x32" "\x9a\x9c\x38\x55\x5e\x3a\x9c\x7f\x26\x53\x31\xba\x2d\x8b\xcf\x76\xc9\xe3" "\xbb\x97\x7f\xf9\xac\xd3\xb1\xc6\xf1\x5f\xb6\x65\xf9\x17\x63\xc1\xbc\x1c" "\x57\x47\xb6\x35\x9f\xb3\x38\xbf\x3a\xff\x6f\xea\xdc\xe8\xda\x47\x11\xfb" "\x47\xda\xd5\x3f\xb9\xb9\x12\x90\x44\xc4\xbe\x88\xd8\xbf\xc9\x3c\x4e\x3d" "\xf1\xd5\xc1\x4e\xc7\x5a\xeb\x5f\x49\xba\xbd\xd3\x0b\xcd\xd1\x1e\xac\x33" "\x55\xbe\x8c\x78\xbc\xd6\xfe\x97\xa2\xa5\xfe\x85\xa4\xfb\xfa\xe4\xcc\xff" "\xa2\xbc\x74\x78\xa6\xb8\x2a\xd6\xfa\xe9\xe7\xcb\x6f\x74\xca\x7f\xfd\xf6" "\xef\xaf\xac\xfd\x77\xb4\xbd\xfe\x6f\xd6\x7f\x22\x69\x5c\xaf\x5d\xd9\x78" "\x1e\x97\x7f\xfb\xb4\xe3\x9c\x66\x7a\x53\xd7\x7f\x7d\xc7\x58\xfe\xfa\xfe" "\xfc\xea\xea\xb9\xd9\x88\xb1\xe4\xb5\x5a\xa1\x1b\xf7\xcf\xd5\xcf\x2d\xe2" "\x45\xfa\xac\xfe\x53\x87\xda\xf7\xff\x3d\x51\xff\x24\x0e\x44\x44\x76\x11" "\x3f\x10\x11\x0f\x46\xc4\x43\x79\xdb\x3d\x1c\x11\x8f\x44\xc4\xa1\x2e\xf5" "\xff\xe1\xa5\x47\xdf\xe9\x74\xec\x76\x68\xff\xc5\x96\xf6\x9f\x68\x4e\xd2" "\xd2\xfe\xf5\xc0\x58\xb4\xee\x69\x1f\x28\x9d\xfe\xfe\x9b\xe6\x77\xac\x07" "\x6f\xed\xfb\xef\x68\x35\x34\x95\xef\x59\xef\xfb\xaf\xb8\x26\xd6\x2b\xd7" "\xe6\xae\x66\x00\x00\x00\xf8\xef\x49\x23\x62\x57\x24\xe9\xf4\xcd\x70\x9a" "\x4e\x4f\xd7\xfe\x87\x7f\x6f\xec\x48\xcb\xcb\x2b\xab\x4f\x9e\x58\x7e\xef" "\xec\x62\xed\x19\x81\x89\x18\x4d\x8b\x3b\x5d\xb5\xfb\xc1\xb5\xfb\xa1\xb3" "\xf9\xb4\xbe\x88\xcf\xb5\xc4\x8f\xe4\xf7\x8d\x3f\x2f\x6d\xaf\xc6\xa7\x17" "\x96\xcb\x8b\x83\xae\x3c\x0c\xb9\x9d\x1d\xfa\x7f\xe6\xf7\xd2\xa0\x4b\x07" "\xf4\x9d\xe7\xb5\x60\x78\xe9\xff\x30\xbc\xf4\x7f\x18\x5e\xfa\x3f\x0c\xaf" "\x36\xfd\x7f\xfb\x3a\xa7\x8c\xf6\xab\x2c\xc0\xd6\x6a\xf7\xfb\xff\x61\x3d" "\x58\x19\xdf\xca\xc2\x00\x5b\xaa\xa5\xff\x5b\xf6\x83\x21\x62\xfe\x0f\xc3" "\x4b\xff\x87\xe1\xd5\xd8\xff\xbb\x3e\x7f\x0f\xdc\x49\x56\xb6\xc7\xfa\x0f" "\xc9\x0b\x08\xac\x09\x44\x7a\x5b\x14\xa3\x37\x81\xa4\xcf\xbd\x60\xd7\xa0" "\x2b\xb8\xf1\xc0\xa0\xbf\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x7a\xe3\x9f\x00\x00\x00\xff\xff\x9d\xc8\xe2\xde", 1111)); NONFAILING(syz_mount_image(/*fs=*/0x200000000040, /*dir=*/0x200000000080, /*flags=*/0, /*opts=*/0x200000000280, /*chdir=*/3, /*size=*/0x457, /*img=*/0x200000000ec0)); // 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*)0x200000000180, "/dev/loop", 9)); NONFAILING(*(uint8_t*)0x200000000189 = 0x30); NONFAILING(*(uint8_t*)0x20000000018a = 0); syscall(__NR_quotactl, /*cmd=Q_QUOTAON_GRP*/ 0xffffffff80000201ul, /*special=*/0x200000000180ul, /*id=*/(intptr_t)-1, /*addr=*/0ul); // mprotect arguments: [ // addr: VMA[0x3000] // len: len = 0x3000 (8 bytes) // prot: mmap_prot = 0x9 (8 bytes) // ] syscall(__NR_mprotect, /*addr=*/0x200000000000ul, /*len=*/0x3000ul, /*prot=PROT_SEM|PROT_READ*/ 9ul); // openat$cgroup_ro arguments: [ // fd: fd_cgroup (resource) // file: ptr[in, buffer] { // buffer: {68 75 67 65 74 6c 62 2e 31 47 42 2e 75 73 61 67 65 5f 69 6e // 5f 62 79 74 65 73 00} (length 0x1b) // } // flags: const = 0x275a (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd NONFAILING( memcpy((void*)0x200000000180, "hugetlb.1GB.usage_in_bytes\000", 27)); res = syscall(__NR_openat, /*fd=*/(intptr_t)-1, /*file=*/0x200000000180ul, /*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=*/0x200000000000ul, /*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 00} (length 0x8) // } // flags: mount_flags = 0x1008002 (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 { // grpjquota: buffer: {67 72 70 6a 71 75 6f 74 61 3d} (length // 0xa) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x3 (1 bytes) // size: len = 0x5ee (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x5ee) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x200000000240, "ext4\000", 5)); NONFAILING(memcpy((void*)0x200000000b80, "./file0\000", 8)); NONFAILING(memcpy((void*)0x200000000d00, "grpjquota=", 10)); NONFAILING(*(uint8_t*)0x200000000d0a = 0x2c); NONFAILING(*(uint8_t*)0x200000000d0b = 0); NONFAILING(memcpy( (void*)0x200000000280, "\x78\x9c\xec\xdd\xcd\x6f\x54\x55\x1b\x00\xf0\xe7\x4e\x3f\x68\x29\x79\x3b" "\x90\x37\x2a\x2e\xa4\x89\x31\x90\x28\x2d\x2d\x60\x1a\xe3\x02\xb6\x86\x34" "\xf8\x11\x37\xba\xb0\xd2\x82\x48\x81\x86\xd6\x68\xd1\x84\x92\xe0\xc6\xc4" "\xb8\x31\xc6\xc4\x95\x0b\xf1\xbf\x50\x22\x5b\x56\xba\x72\xe1\xc6\x95\x21" "\x21\x6a\x58\x9a\x38\xe6\xce\xdc\x5b\x3a\xed\x4c\xbf\x68\xe7\x12\xee\xef" "\x97\x0c\x73\xef\x39\x73\x7b\xce\xa5\x7d\xe6\x9c\x7b\xe6\x9c\x3b\x01\x94" "\xd6\x50\xfa\x4f\x25\x62\x7f\x44\xcc\x26\x11\x83\xc9\xe2\x52\x5e\x77\x64" "\x99\x43\x8d\xd7\xdd\xff\xfb\x93\x33\xe9\x23\x89\x5a\xed\xf5\x3f\x93\x48" "\xb2\xb4\xfc\xf5\x49\xf6\x3c\x90\x1d\xdc\x17\x11\x3f\xff\x94\xc4\xbe\xae" "\xd5\xe5\xce\x2d\x5c\xbd\x30\x39\x33\x33\x7d\x25\xdb\x1f\x99\xbf\x38\x3b" "\x32\xb7\x70\xf5\xf0\xf9\x8b\x93\xe7\xa6\xcf\x4d\x5f\x1a\x7b\x71\x6c\xfc" "\xf8\xb1\xe3\xe3\xa3\x47\xb6\x74\x5e\xd7\x5a\xa4\x9d\xba\xf1\xfe\x87\x83" "\x9f\x4d\xbc\xf5\xdd\x37\xff\x24\xa3\xdf\xff\x36\x91\xc4\x89\x78\x25\x7b" "\xe1\xf2\xf3\xd8\x2e\x43\x31\x54\xff\x3f\x49\x56\x67\x0d\x8c\x6f\x77\x61" "\x05\xe9\xca\xfe\x4e\x6a\xb5\x5a\x2d\x4f\x4b\xba\x8b\xad\x13\x1b\x97\xff" "\xfe\x7a\x22\xe2\xc9\x18\x8c\xae\x78\xf0\xcb\x1b\x8c\x4f\x5f\x2d\xb4\x72" "\xc0\x8e\xaa\x25\x8d\xf7\x6e\xa0\x8c\x12\xf1\x0f\x25\x95\xf7\x03\xf2\x6b" "\xfb\x95\xd7\xc1\x95\x42\x7a\x25\x40\x27\xdc\x3b\xd9\x18\x00\x58\x1d\xff" "\xdd\x8d\xb1\xc1\xe8\xab\x8f\x0d\xec\xbe\x9f\xc4\xf2\x61\x9d\x24\x22\xb6" "\x36\x32\xd7\x6c\x4f\x44\xdc\xb9\x3d\x71\xe3\xec\xed\x89\x1b\xb1\x43\xe3" "\x70\x40\x6b\x8b\xd7\x23\xe2\xa9\x56\xf1\x9f\xd4\xe3\xbf\x1a\x7d\x51\xad" "\xc7\x7f\xa5\x29\xfe\xd3\x7e\xc1\xe9\xec\x39\x4d\x7f\x6d\x8b\xe5\xaf\x1c" "\x2a\x16\xff\xd0\x39\x8d\xf8\xef\x5b\x33\xfe\xa3\x4d\xfc\xbf\x93\x3e\x5f" "\x6b\xc4\xf0\xbb\x5b\x2c\xbf\xfa\x60\xf3\xbd\xfe\xa6\xf8\xef\xdf\xea\x29" "\x01\x00\x00\x00\x00\x00\x40\x69\xdd\x3a\x19\x11\x2f\xb4\xfa\xfc\xbf\xb2" "\x34\xff\x27\x5a\xcc\xff\x19\x88\x88\x13\xdb\x50\xfe\xd0\x8a\xfd\xd5\x9f" "\xff\x57\xee\x6e\x43\x31\x40\x0b\xf7\x4e\x46\xbc\xdc\x72\xfe\x6f\x25\x9f" "\xfd\x5b\xed\x5a\xb6\x84\xb5\x1a\x3d\xc9\xd9\xf3\x33\xd3\x47\x22\xe2\x7f" "\x11\x71\x28\x7a\x76\xa5\xfb\xa3\x6b\x94\x71\xf8\xf3\x7d\x5f\xb7\xcb\x1b" "\xca\xe6\xff\xe5\x8f\xb4\xfc\x3b\xd9\x5c\xc0\xac\x1e\x77\xbb\x77\x35\x1f" "\x33\x35\x39\x3f\xf9\x10\xa7\x0c\x64\xee\x5d\x8f\x78\xba\xe5\xfc\xdf\x64" "\xa9\xfd\x4f\x5a\xb4\xff\xe9\x3b\xc3\xec\x06\xcb\xd8\xf7\xdc\xcd\xd3\xed" "\xf2\xd6\x8f\x7f\x60\xa7\xd4\xbe\x8d\x38\xd8\xb2\xfd\x7f\x70\xd7\x8a\x64" "\xed\xfb\x73\x8c\xd4\xfb\x03\x23\x79\xaf\x60\xb5\x67\x3e\xfe\xe2\x87\x76" "\xe5\x6f\x35\xfe\xdd\x62\x02\x1e\x5e\xda\xfe\xef\x5e\x3b\xfe\xab\xc9\xf2" "\xfb\xf5\xcc\x6d\xbe\x8c\xa3\x0b\xdd\xb5\x76\x79\x5b\xed\xff\xf7\x26\x6f" "\xd4\xef\x2a\xd4\x9b\xa5\x7d\x34\x39\x3f\x7f\x65\x34\xa2\x37\x39\xd5\x95" "\xa6\x36\xa5\x8f\x6d\xbe\xce\xf0\x38\xca\xe3\x21\x8f\x97\x34\xfe\x0f\x3d" "\xbb\xf6\xf8\x5f\xab\xfe\x7f\x7f\x44\x2c\xae\xf8\xd9\xc9\x5f\xcd\x6b\x8a" "\x73\x4f\xfc\x3b\xf0\x7b\xbb\xfa\xe8\xff\x43\x71\xd2\xf8\x9f\xda\x54\xfb" "\xbf\xf9\x8d\xb1\x9b\xd5\x1f\xdb\x95\xbf\xb1\xf6\xff\x58\xbd\xad\x3f\x94" "\xa5\x18\xff\x83\x86\xaf\xf2\x30\xed\x6d\x4e\x6f\x11\x8e\xdd\xad\xb2\x3a" "\x5d\x5f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\x1c\x54\x22\x62\x4f\x24\x95\xe1" "\xa5\xed\x4a\x65\x78\x38\x62\x20\x22\xfe\x1f\xbb\x2b\x33\x97\xe7\xe6\x9f" "\x3f\x7b\xf9\x83\x4b\x53\x69\x5e\xfd\xfb\xff\x2b\xf9\x37\xfd\x0e\x36\xf6" "\x93\xfc\xfb\xff\xab\xcb\xf6\xc7\x56\xec\x1f\x8d\x88\xbd\x11\xf1\x65\x57" "\x7f\x7d\x7f\xf8\xcc\xe5\x99\xa9\xa2\x4f\x1e\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x11\x03\x6d\xd6\xff\xa7\xfe\xe8\x2a" "\xba\x76\xc0\x8e\xeb\x2e\xba\x02\x40\x61\x5a\xc4\xff\x2f\x45\xd4\x03\xe8" "\x3c\xed\x3f\x94\x97\xf8\x87\xf2\x12\xff\x50\x5e\xe2\x1f\xca\x4b\xfc\x43" "\x79\xad\x1d\xff\x6f\x8f\x77\xac\x22\x40\xc7\x69\xff\xa1\xbc\xc4\x3f\x00" "\x00\x00\x00\x00\x3c\x56\xf6\x1e\xb8\xf5\x6b\x12\x11\x8b\x2f\xf5\xd7\x1f" "\xa9\xde\x2c\xaf\xa7\xd0\x9a\x01\x3b\xad\x52\x74\x05\x80\xc2\xb8\xc5\x0f" "\x94\x97\xa9\x3f\x50\x5e\xae\xf1\x81\x64\x9d\xfc\xbe\xb6\x07\xad\x77\xe4" "\x5a\x66\xcf\x3c\xc4\xc1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x3a" "\x07\xf7\x5b\xff\x0f\x65\x65\xfd\x3f\x94\x97\xf5\xff\x50\x5e\xf9\xfa\xff" "\x03\x05\xd7\x03\xe8\x3c\xd7\xf8\x40\xac\xb3\x92\xbf\xe5\xfa\xff\x75\x8f" "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb6\xd3\xdc\xc2\xd5\x0b\x93" "\x33\x33\xd3\x57\x6c\xbc\xf9\x68\x54\xa3\x93\x1b\xb5\x5a\xed\x5a\xfa\x57" "\xf0\xa8\xd4\x67\xfb\x37\x92\x6c\x86\x7a\x47\x0a\xcd\xa7\xc2\x77\xfe\x4c" "\x7b\x37\x72\x82\xf9\x5a\xbf\x8d\xfd\xe4\xe2\xde\x93\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x66\xff\x05\x00\x00" "\xff\xff\x30\xbe\x25\x79", 1518)); NONFAILING( syz_mount_image(/*fs=*/0x200000000240, /*dir=*/0x200000000b80, /*flags=MS_STRICTATIME|MS_SILENT|MS_NOSUID*/ 0x1008002, /*opts=*/0x200000000d00, /*chdir=*/3, /*size=*/0x5ee, /*img=*/0x200000000280)); // 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*)0x200000000bc0, "ext4\000", 5)); NONFAILING(memcpy((void*)0x200000000240, "./file1\000", 8)); NONFAILING(memcpy((void*)0x200000000000, "test_dummy_encryption=v1", 24)); NONFAILING(*(uint8_t*)0x200000000018 = 0x2c); NONFAILING(memcpy((void*)0x200000000019, "dioread_nolock", 14)); NONFAILING(*(uint8_t*)0x200000000027 = 0x2c); NONFAILING(*(uint8_t*)0x200000000028 = 0); NONFAILING(memcpy( (void*)0x200000000fc0, "\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=*/0x200000000bc0, /*dir=*/0x200000000240, /*flags=MS_REC|MS_NOSUID*/ 0x4002, /*opts=*/0x200000000000, /*chdir=*/1, /*size=*/0xbe7, /*img=*/0x200000000fc0)); // 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*)0x200000000240, ".\000", 2)); syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x200000000240ul, /*type=*/0ul, /*flags=MS_LAZYTIME|MS_REMOUNT|MS_RELATIME*/ 0x2200020ul, /*data=*/0x200000000000ul); return 0; }