// https://syzkaller.appspot.com/bug?id=706b943a0b26e4dada264aafdee297f3de937d81 // 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 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"); } 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; } 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*)0x20000040, "hfsplus\000", 8); memcpy((void*)0x20000080, "./file0\000", 8); memcpy((void*)0x200000c0, "gid", 3); *(uint8_t*)0x200000c3 = 0x3d; sprintf((char*)0x200000c4, "0x%016llx", (long long)0); *(uint8_t*)0x200000d6 = 0x2c; memcpy((void*)0x200000d7, "nls", 3); *(uint8_t*)0x200000da = 0x3d; memcpy((void*)0x200000db, "cp437", 5); *(uint8_t*)0x200000e0 = 0x2c; memcpy((void*)0x200000e1, "nobarrier", 9); *(uint8_t*)0x200000ea = 0x2c; memcpy((void*)0x200000eb, "gid", 3); *(uint8_t*)0x200000ee = 0x3d; sprintf((char*)0x200000ef, "0x%016llx", (long long)0xee01); *(uint8_t*)0x20000101 = 0x2c; memcpy((void*)0x20000102, "nobarrier", 9); *(uint8_t*)0x2000010b = 0x2c; memcpy((void*)0x2000010c, "force", 5); *(uint8_t*)0x20000111 = 0x2c; memcpy((void*)0x20000112, "type", 4); *(uint8_t*)0x20000116 = 0x3d; memcpy((void*)0x20000117, "\\I^1", 4); *(uint8_t*)0x2000011b = 0x2c; *(uint8_t*)0x2000011c = 0; memcpy( (void*)0x20000340, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\xac\xd7\x1b\x3b\x54\xa9" "\xdb\x26\x6d\x40\x95\xb0\x12\xa9\x20\x59\x24\x7e\x91\x0b\xe6\x42\x40\x08" "\xf9\x50\xa1\xaa\x1c\x38\x5b\x89\xd3\x58\xd9\xb8\x95\xed\x22\xb7\x42\xc8" "\xbc\x9f\x90\x38\xf4\x0f\x28\x48\xbe\x71\x42\xe2\x1e\x14\xce\x70\xeb\xd5" "\xc7\x4a\x48\x5c\x7a\xf2\x2d\x68\x66\x67\xed\x8d\xbd\x4e\x1c\xdb\xf1\xda" "\xf0\xf9\x44\xb3\xcf\x33\xfb\x3c\xf3\xcc\x6f\x7e\x3b\x2f\x3b\xbb\xb1\x36" "\xc0\xff\xad\xf9\x89\x34\x1f\xa6\xc8\xfc\xc4\x3b\xeb\xe5\xfc\xd6\xe6\x4c" "\x7b\x6b\x73\xe6\x42\xdd\xdc\x4e\x52\xd6\x1b\x49\xb3\x53\xa4\x58\x4e\x8a" "\x47\xc9\xad\xb2\xbd\x48\xf2\xd5\xba\x4c\x4f\xb9\xcf\xa7\x4b\x73\xef\x7d" "\xfe\xe5\xd6\x17\x9d\xb9\xee\x58\x55\xff\xc6\xd3\x96\x3b\x9c\x8d\x7a\xca" "\x78\x92\xa1\xba\xdc\x6f\xf8\x48\xe3\xdd\x4e\xf2\xd2\xbe\x2e\xad\xc3\x8e" "\xb5\xaf\xe3\xf5\xd4\xc9\x83\x41\x7b\xbc\xcf\xc6\xf3\x2c\x7e\xcc\xe3\x16" "\x18\xa4\xee\xd5\xa9\xe8\x5c\x37\xf7\x19\x4b\x2e\x26\x19\xa9\xdf\x07\xa4" "\x3e\x3b\x34\x4e\x2f\xc2\x17\xe3\xb9\xce\x72\x00\x00\x00\x70\x4e\xbd\xbc" "\x9d\xed\xac\xe7\xd2\xa0\xe3\x00\x00\x00\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\xf3" "\xa4\xfe\xfd\xff\xa2\x9e\x1a\x75\x99\xf1\x14\xdd\xdf\xff\x6f\x75\x9f\xab" "\xeb\xe7\xda\xc3\x41\x07\x00\x00\x00\x00\x00\x00\x00\x00\x27\xe0\xeb\xdb" "\xd9\xce\x7a\x2e\x75\xe7\x1f\x17\xd5\x77\xfe\xd7\xaa\x99\xcb\xd5\xe3\x57" "\xf2\x51\x56\xb3\x98\x95\xdc\xc8\x7a\x16\xb2\x96\xb5\xac\x64\x2a\xc9\x58" "\xcf\x40\xad\xf5\x85\xb5\xb5\x95\xa9\x43\x2c\x39\xdd\x77\xc9\xe9\xd3\xd9" "\x5e\x00\x00\x00\x00\x00\x00\x00\xf8\x1f\xf5\xab\xcc\xef\x7e\xff\x0f\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x67\x41\x91\x0c\x75\x8a\x6a\xba" "\xdc\xad\x8f\xa5\xd1\x4c\xa7\xad\x55\xf6\xdb\x48\xfe\xd5\xad\x9f\x13\x45" "\xbf\x27\x1f\x9e\x7e\x1c\x00\x00\x00\x70\x2c\x23\x47\x58\xe6\xe5\xed\x6c" "\x67\x3d\x97\xba\xf3\x8f\x8b\xea\x9e\xff\xf5\xea\x7e\x79\x24\x1f\x65\x39" "\x6b\x59\xca\x5a\xda\x59\xcc\x9d\xfa\x1e\xba\xbc\xeb\x6f\x6c\x6d\xce\xb4" "\xb7\x36\x67\x1e\x94\xd3\xfe\x71\xbf\xff\x9f\xe7\x0a\xa3\x1a\xb1\xfe\x7c" "\xa1\xff\x9a\xaf\x56\x3d\x46\x73\x37\x4b\xd5\x33\x37\x72\xbb\x0a\xe6\x4e" "\x1a\xd5\x92\xa5\xab\xdd\x78\xfa\xc7\xf5\xcb\x32\xa6\xe2\x7b\xb5\x43\x46" "\xd6\xac\xcb\x72\x65\x7f\x3c\xe8\x53\x84\x81\x18\xab\x83\xeb\x66\x64\xb2" "\x8e\xad\xcc\xc6\x2b\x9d\x0c\x14\xd5\x07\x35\xc9\xde\x4c\x3c\xf3\xd5\x69" "\xee\x5d\x53\x1a\x19\xde\x59\xd3\x54\x1a\x3b\x9f\xfc\x5c\x7e\x01\x39\xbf" "\x58\x97\xe5\xf6\xfc\xee\xac\xe5\xbc\x93\x89\x46\xaa\x4c\x4c\xf7\xec\x7d" "\xaf\x3f\x3d\x13\xc9\x37\xfe\xf6\x97\x9f\xde\x6b\x2f\xdf\xbf\x77\x77\x75" "\xe2\xec\x6c\xd2\x11\xed\xdd\x27\x66\x7a\x32\xf1\xc6\xb9\xce\x44\xf3\x39" "\xfb\x4f\x56\x99\xb8\xb2\x33\x3f\x9f\x1f\xe5\x27\x99\xc8\x78\xde\xcd\x4a" "\x96\xf2\xb3\x2c\x64\x2d\x8b\x79\x5c\xb7\x2f\xd4\xfb\x73\xf9\x38\xf6\xf4" "\x4c\xdd\x7a\x62\xee\xdd\x67\x45\xd2\xaa\x5f\x97\xce\x59\xf4\x30\x31\x8d" "\xe7\x87\x55\x6d\x21\xd7\xaa\x65\x2f\x65\x29\x45\x3e\xc8\x9d\x2c\xe6\xed" "\xea\xdf\x74\xa6\xf2\xed\xcc\x66\x36\x73\x3d\xaf\xf0\x95\x03\xe3\xae\xb6" "\xad\x3a\xea\x1b\x07\x1d\xf5\x7f\xef\x1b\xfc\xf5\x6f\xd6\x95\xd1\x24\xbf" "\xaf\xcb\x41\xeb\x5c\x52\xcb\xbc\xbe\xd2\x93\xd7\xe1\x9e\x73\xee\x58\xd5" "\xd6\xfb\xcc\x6e\x96\x5e\xed\x66\x67\xb8\xef\xe0\x47\x39\x37\x36\xbf\x56" "\x57\xca\x75\xfc\xba\x2e\xcf\x86\xbd\x99\x98\xea\xc9\xc4\x6b\x4f\xdf\xcf" "\xff\x54\x1d\x1b\xab\xed\xe5\xfb\x2b\xf7\x16\x3e\x3c\x60\xfc\x8d\x3d\xf3" "\x6f\xd5\x65\xb9\xc7\xfd\xf6\xd0\x57\x89\xfe\x2f\xc5\xc9\x2a\xf7\x97\x57" "\x33\x52\x9f\x49\x9e\xdc\x3b\xca\xb6\xd7\x76\xce\x32\x4f\xe6\xab\x55\x7f" "\xe3\xd2\x69\x6b\xec\x6b\xbb\x52\xb5\x15\x45\xf7\x48\xfd\xf1\x81\x47\x6a" "\xab\x7e\x0f\xb7\x7f\xa4\xe9\xaa\xed\x8d\xbe\x6d\x33\x55\xdb\xd5\x9e\xb6" "\x27\xde\x6f\xe5\x83\xb4\x73\xe7\x14\xf2\x07\xc0\x31\x8d\xe5\x62\x6b\xf4" "\xdf\xa3\xff\x1c\xfd\x6c\xf4\x37\xa3\xf7\x46\xdf\x19\xf9\xc1\x85\xef\x5c" "\x78\xb3\x95\xe1\x7f\x0c\x7f\xb7\x39\x39\xf4\x56\xe3\xcd\xe2\xaf\xf9\x2c" "\xbf\xd8\xbd\xff\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8e\x6e\xf5\xe3\x4f\xee\x2f\xb4" "\xdb\x8b\x2b\xfd\x2b\x8d\x83\x9b\x4e\xb6\x52\xd4\x3f\xe4\x73\x1a\xeb\x3a" "\x8d\xca\x48\x92\x33\x10\xc6\x19\xad\x74\x7f\x44\xb0\x7f\x9f\x3f\x1c\x7e" "\xc0\x5b\x67\x62\x73\xce\x75\x65\x28\x49\xbf\xa6\x01\x9f\x98\x80\x17\xee" "\xe6\xda\x83\x0f\x6f\xae\x7e\xfc\xc9\xb7\x96\x1e\x2c\xbc\xbf\xf8\xfe\xe2" "\xf2\xf0\xec\xec\xdc\xe4\xdc\xec\xdb\x33\x37\xef\x2e\xb5\x17\x27\x3b\x8f" "\x83\x8e\x12\x78\x11\x76\x2f\xfa\x83\x8e\x04\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x38\xac\x7e\x7f\x18\x70\xed\xa5\x93\xf8\xdb\x95\x96\xff\x59\x08" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x9c\x88\xf9\x89\x34\x1f\xa6\xc8\xd4\xe4\x8d\xc9\x72\x7e\x6b" "\x73\xa6\x5d\x4e\xdd\xfa\x6e\xcf\x66\x92\x46\x23\x29\x7e\x9e\x14\x8f\x92" "\x5b\xe9\x4c\x19\xeb\x19\xae\xc8\x9f\x1f\xf5\x5d\xcf\xa7\x4b\x73\xef\x7d" "\xfe\xe5\xd6\x17\xbb\x63\x35\x3b\xfd\x93\x46\x5d\x1e\xc3\x46\x3d\x65\x3c" "\xc9\x50\x5d\x9e\xd4\x78\xb7\x8f\x3d\x5e\xb1\xb3\x85\x65\xc2\xae\x77\x13" "\x07\x83\xf6\xdf\x00\x00\x00\xff\xff\xf2\xc1\xf8\x8a", 1615); syz_mount_image(/*fs=*/0x20000040, /*dir=*/0x20000080, /*flags=*/0x208010, /*opts=*/0x200000c0, /*chdir=*/7, /*size=*/0x650, /*img=*/0x20000340); memcpy((void*)0x20007f80, "./bus\000", 6); syscall(__NR_open, /*file=*/0x20007f80ul, /*flags=*/0x145142ul, /*mode=*/0ul); memcpy((void*)0x20000000, "./bus\000", 6); memcpy((void*)0x20000140, "user.incfs.metadata\000", 20); syscall(__NR_setxattr, /*path=*/0x20000000ul, /*name=*/0x20000140ul, /*val=*/0ul, /*size=*/0ul, /*flags=*/1ul); return 0; }