// https://syzkaller.appspot.com/bug?id=df4127c6335a72f9fbbff4f47c0c7ff684d4f644 // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; //% 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 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, loopfd = -1, 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) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; 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"); } 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) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } errno = err; return res; } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); memcpy((void*)0x20000140, "hfsplus\000", 8); memcpy((void*)0x20000080, "./file1\000", 8); memcpy((void*)0x20000000, "decompose", 9); *(uint8_t*)0x20000009 = 0x2c; memcpy((void*)0x2000000a, "decompose", 9); *(uint8_t*)0x20000013 = 0x2c; memcpy((void*)0x20000014, "nls", 3); *(uint8_t*)0x20000017 = 0x3d; memcpy((void*)0x20000018, "iso8859-1", 9); *(uint8_t*)0x20000021 = 0x2c; memcpy((void*)0x20000022, "barrier", 7); *(uint8_t*)0x20000029 = 0x2c; memcpy((void*)0x2000002a, "force", 5); *(uint8_t*)0x2000002f = 0x2c; *(uint8_t*)0x20000030 = 0; memcpy( (void*)0x20002440, "\x78\x9c\xec\xdd\x4b\x68\x1c\xe7\x1d\x00\xf0\xff\xac\x56\x2b\xad\x0b\x8e" "\x9c\xf8\xd5\x10\xc8\x12\x43\x5a\x2a\x6a\x4b\x16\x4a\xab\x5e\xea\x86\x52" "\x74\x08\x25\x4d\x0f\x3d\x2f\xb6\x1c\x0b\xaf\x95\x20\x29\x45\x09\xa5\x96" "\xfb\xb8\x96\x1e\x7c\xea\x29\x3d\xe8\x96\x53\x49\xef\x86\xf4\xdc\x50\x28" "\xb9\xea\x18\x28\xe4\x92\x93\x6e\x5b\x66\x76\xf6\xa5\x7d\x5b\xd6\x23\xf1" "\xef\x67\x66\xe7\x9b\xf9\x1e\xf3\xed\x7f\x5e\xda\x19\xcc\x17\xc0\x73\x6b" "\x75\x3e\x8a\x4f\x22\x89\xd5\xf9\xb7\x76\xd2\xe5\xfd\xbd\xa5\xda\xfe\xde" "\xd2\x4c\x9e\x5d\x8b\x88\x52\x44\x14\x22\x8a\x8d\x59\x24\x1b\x11\xc9\x67" "\x11\xb7\xfe\x52\x6c\x94\xf9\x6e\xba\x32\x2f\x9f\x0c\xda\xce\xe3\xf5\x95" "\x77\xbe\xf8\x7a\xff\xcb\xc6\x52\x31\x9f\xb2\xf2\x85\x61\xf5\xfa\x28\xf5" "\xae\xda\xcd\xa7\xa8\x44\xc4\x54\x3e\xef\x35\x3d\xa0\xc5\x4f\x0f\x6f\xbe" "\xab\xbd\xdb\x03\xdb\x1b\x57\xd2\xf5\x0d\xaf\x45\xc4\xad\x2c\xf5\xb7\x23" "\xb5\x0a\x47\x56\xef\xb1\xdb\xca\xfb\xe4\xbf\x23\xab\x4f\x72\xde\x02\x67" "\x54\xd2\xb8\x6f\xf6\x98\x8b\x38\x17\x11\xb3\x11\x91\xfd\x4d\x90\x5f\x1d" "\x0a\x27\xdb\xbb\x67\x6f\xf7\xb4\x3b\x00\x00\x00\x00\x93\x2a\x4f\xfe\x20" "\xee\x85\x83\x38\x88\x9d\x38\x7f\x4c\x3d\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\x80\x6f\xa5\x7c\xfc\xff\x24\x9f\x0a\xcd\x74\x25\x92\xe6\xf8\xff\xa5" "\x68\x0f\x33\x98\xa6\xe3\xe1\xe9\x76\xb9\xc7\xd4\x18\x65\xfe\x33\xd3\x98" "\x3f\x39\xee\xce\x00\x00\x00\x00\x00\x00\x00\xc0\x84\xc6\x79\xef\x7d\xd8" "\xab\x07\x71\x10\x3b\x71\xbe\xb9\x5c\x4f\xb2\x77\xfe\xaf\x75\xbc\xe3\xff" "\x4e\x7c\x10\x5b\xb1\x16\x9b\x71\x3d\x76\xa2\x1a\xdb\xb1\x1d\x9b\xb1\x18" "\x11\x73\x1d\x0d\x95\x76\xaa\xdb\xdb\x9b\x8b\x59\xcd\x88\x8b\x43\x6a\xde" "\x8c\xcf\xfb\xd4\xbc\x39\xb8\x8f\xb7\x9e\xe2\x7b\x01\x00\x00\x00\x00\x00" "\x00\xc0\x37\xd8\xec\x88\xfc\xfb\xd3\xbd\xeb\xfe\x10\xab\xed\xf7\xff\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x16\x24\x11\x53\x8d\x59\x36" "\x5d\x6c\xa6\xe7\xa2\x50\x8c\x88\xd9\x88\x28\xa5\xe5\x76\x23\x3e\x6f\xa6" "\xbf\x21\x92\x7e\x2b\x9f\x9c\x7c\x3f\x00\x00\x00\xe0\x48\x66\x47\x2c\xf7" "\xf3\xc2\xc3\x38\x88\x9d\x38\xdf\x5c\xae\x27\xd9\x6f\xfe\xcb\xd9\xef\xe5" "\xd9\xf8\x20\x36\x62\x3b\xd6\x63\x3b\x6a\xb1\x16\x77\xf2\xdf\xd0\xe9\xaf" "\xfe\xc2\xfe\xde\x52\x6d\x7f\x6f\xe9\x41\x3a\xf5\xb6\xfb\xb3\xaf\x26\xea" "\x7a\xd6\x62\x34\x9e\x3d\xf4\xdf\xf2\xd5\xac\x44\x39\xee\xc6\x7a\xb6\xe6" "\x7a\xdc\x8e\xf7\xa2\x16\x77\xa2\x90\xd5\x4c\x5d\xdd\xdf\x5b\x4a\xe7\x0f" "\xfa\xf7\xeb\x51\xda\xa7\xe4\xa7\xb9\xc1\x9d\x79\xdc\xb9\x70\x27\xfd\xb8" "\xf2\x69\x96\xfe\x6b\xf7\x53\x84\xe2\x44\x5f\xf1\x29\x15\x06\xe6\xcc\x65" "\xb9\xd3\xad\x88\x2c\xe4\x7d\x4b\x6b\x5c\x68\x46\xa0\x7f\x24\x46\xee\x9d" "\xe2\xd0\x2d\x2d\x46\xa1\xf5\xe4\xe7\x62\xdf\x2d\xd5\x73\x03\x62\xfe\xa8" "\xdd\x76\xbf\x83\xf4\xdc\xa1\x52\xed\x98\x4f\x8d\xe8\xf7\xb1\xa8\xb7\xb7" "\x7a\x38\x12\x37\x3b\x8e\xbe\xcb\xc3\x63\x1e\xf1\xbd\x7f\x7e\xf2\x9b\x7b" "\xb5\x8d\xfb\xf7\xee\x6e\xcd\xf7\x7d\x18\x75\x76\x3c\x1c\x59\xe2\x70\x24" "\x96\x3a\x22\x71\x65\xdc\x48\x24\x71\x26\x23\x51\x9f\xa8\xf4\x42\x16\x89" "\x4b\xad\xe5\xd5\xf8\x45\xfc\x3a\xe6\xe3\xab\x99\xb7\x63\x33\xd6\xe3\xb7" "\x51\x8d\xed\x58\x6b\xb5\x5a\xcd\x8f\xe7\xf4\x73\x6e\x58\xa4\x0e\x1f\xec" "\x6f\x8f\xea\x49\x29\xdf\x2f\x8d\x8a\xfd\xfa\x54\x89\xee\x3e\x55\xe2\xe7" "\x59\xaa\x1a\xaf\x65\x75\xcf\xc7\x7a\x24\x51\x89\x88\xb5\x78\x23\xfb\x77" "\x33\x16\x5b\x57\x83\xf6\x1e\xbe\x34\x7c\x0f\x67\x67\x7d\x61\xf4\x95\xb6" "\x29\xdd\xc0\xb5\xef\x67\xc9\x4a\x6b\x65\x79\x74\xbd\x63\xd5\xee\x77\x1a" "\xd7\x0b\xad\xe3\xa2\xe3\xa8\x6f\xed\xa1\xce\xab\x70\x3b\x4a\x2f\xf6\x8d" "\x52\xf3\x5e\x37\xf4\x7e\x54\x19\xd0\xa9\xe2\xcb\xe9\xe7\x9b\x8d\x16\xfe" "\x38\xf4\xfe\x70\xd2\xe6\xb2\x28\x75\xdf\x25\x9a\xbd\x7b\x69\xf8\xf1\xf2" "\xf7\x2c\xb2\x5b\xb5\x8d\xfb\x9b\xf7\xaa\xef\x8f\xb9\xbd\xd7\xf3\x79\x7a" "\x1e\xfd\x79\xd0\xf3\xfd\x53\x91\xee\xe1\x17\x63\x36\x3f\x0f\x2f\xb4\x5e" "\x92\xa4\x47\x47\xba\xf0\x52\xeb\x0e\xdb\x1d\xaf\x52\xfe\xc6\xa5\xa1\xd0" "\x93\x77\xa9\x55\xaf\x71\xa6\xfe\x32\xde\x8b\x3b\x5d\x67\xea\x8f\x62\x39" "\x96\x63\x25\x2b\x7d\x39\x2b\x3d\xdd\x73\xc7\x4a\xf3\xae\xb4\x5a\xea\xbe" "\x86\xa7\x79\x57\x3b\xf2\xfa\xfd\xbd\x05\xc0\x99\x77\xee\x07\xe7\x4a\xe5" "\xff\x95\xff\x5d\xfe\xb8\xfc\xa7\xf2\xbd\xf2\x5b\xb3\x6f\xce\xfc\x78\xe6" "\x95\x52\x4c\xff\x6b\xfa\x27\xc5\x85\xa9\xd7\x0b\xaf\x24\xff\x88\x8f\xe3" "\xf7\xed\xdf\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xd3\xdb\xfa\xf0\xa3\xfb\xd5\x5a" "\x6d\x6d\xb3\x7f\xa2\xd0\x3f\x2b\x19\x5e\xab\x5a\xab\xe7\x03\x89\x0d\x2b" "\xd3\x95\x48\xf2\xc1\xc7\xc6\x28\x9c\x8c\xd5\xe0\xf1\x25\xe2\xd9\x36\xd8" "\x1c\x08\x6f\x74\xe1\xca\x31\x7e\xaf\x64\x37\xdf\x61\x93\xd4\x6a\x8e\xf2" "\x34\xa4\x4c\xa1\xb9\x4f\xeb\xf9\x30\x4d\xd5\x5a\xed\x51\xb6\x26\xcd\x39" "\xd1\x1d\x37\xf2\xa0\x3d\x9e\xc4\x56\x1e\xa4\xa3\xb5\x33\x93\xb7\x72\xa4" "\xfe\x94\xfb\xed\xaf\xa9\xc6\x4e\xe9\x29\x3c\xe2\xc2\x71\x2a\x23\x32\x02" "\xcf\xd2\x8d\xed\x07\xef\xdf\xd8\xfa\xf0\xa3\x1f\xae\x3f\xa8\xbe\xbb\xf6" "\xee\xda\xc6\xf4\xf2\xf2\xca\xc2\xca\xf2\x1b\x4b\x37\xee\xae\xd7\xd6\x16" "\x1a\x9f\x1d\x15\x3a\x46\x88\x1d\x67\x9c\x61\xe0\xec\xea\xf8\xb3\xb6\x43" "\x21\xe2\xd5\xd1\x75\x4f\x7b\xa0\x56\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x78\x5e\x9d\xc8\x7f\x98\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x82\xd5\xf9\x28\x3e\x89\x24" "\x16\x17\xae\x2f\xa4\xcb\xfb\x7b\x4b\xb5\x74\x6a\xa6\xdb\x25\x8b\x11\x51" "\x88\x88\xe4\x77\x11\xc9\x67\x11\xb7\xa2\x31\xc5\x5c\x9e\x99\x4a\x06\x6d" "\xe7\xf1\xfa\xca\x3b\x5f\x7c\xbd\xff\x65\xbb\xad\x62\xb3\x7c\x21\x62\x77" "\x60\xbd\xf1\xec\xe6\x53\x54\x22\x62\x2a\x9f\xf7\x7a\x79\x92\xf6\x7e\x55" "\xcc\xdb\xb9\x3d\xb0\xbd\x96\x52\x63\x56\x4f\x22\x66\xfa\x64\x27\xad\xc8" "\xa4\x01\xbb\xd6\x0c\x1c\x9c\xb6\xff\x07\x00\x00\xff\xff\x91\xbf\xf9" "\x29", 1782); syz_mount_image(/*fs=*/0x20000140, /*dir=*/0x20000080, /*flags=*/0x808040, /*opts=*/0x20000000, /*chdir=*/1, /*size=*/0x6f6, /*img=*/0x20002440); memcpy((void*)0x20000180, "./bus\000", 6); syscall(__NR_open, /*file=*/0x20000180ul, /*flags=*/0x143042ul, /*mode=*/0ul); memcpy((void*)0x20000040, "./bus\000", 6); memcpy((void*)0x20000100, "user.incfs.size\000", 16); syscall(__NR_setxattr, /*path=*/0x20000040ul, /*name=*/0x20000100ul, /*val=*/0ul, /*size=*/0ul, /*flags=*/0ul); return 0; }