// 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; } 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=*/-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=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; memcpy((void*)0x200000c0, "hfsplus\000", 8); memcpy((void*)0x20000180, "./file0\000", 8); memcpy( (void*)0x20001140, "\x78\x9c\xec\xdd\x4b\x68\x1c\xe7\x1d\x00\xf0\xff\x8c\x56\x2b\xad\x0b\x8e" "\x9c\xf8\xd5\x12\x88\x88\x21\x2d\x15\xb5\x25\x0b\xa5\x55\x2f\x75\x4b\x29" "\x3a\x84\x12\xd2\x43\xcf\x8b\x2d\xc7\xc2\x6b\x39\x48\x4a\x51\x42\xa9\x95" "\x3e\xae\xa5\x87\x9c\x7a\x4a\x0f\xba\xe5\x54\xd2\xbb\x21\x3d\x37\x14\x4a" "\xae\x3a\x06\x0a\xb9\xe4\xa4\x9b\xca\xcc\xce\xbe\xb4\xa3\xdd\x95\x1f\x2b" "\xa9\xfe\xfd\xcc\xec\x7c\x33\xdf\x73\xfe\xf3\xd2\xec\x62\x26\x80\x17\xd6" "\xca\x5c\x54\x1e\x47\x12\x2b\x73\x6f\x6d\x67\xcb\x7b\xbb\x8b\x8d\xbd\xdd" "\xc5\xa9\x22\xbb\x11\x11\xd5\x88\x48\x23\x2a\xcd\x59\x24\xeb\x11\xc9\xe7" "\x11\xb7\xfe\x5c\x69\x96\xf9\x76\xb6\xb2\x28\x9f\x1c\xd5\xcf\xc7\x6b\xcb" "\xef\x7c\xf9\xcd\xde\x57\xcd\xa5\x4a\x31\xe5\xe5\xd3\x41\xf5\x4a\x54\xfb" "\x57\xed\x14\x53\xcc\x46\xc4\x44\x31\xef\x37\x79\x44\x8b\x9f\x1d\xee\xbe" "\xa7\xbd\xdb\x47\xb6\x37\xaa\xa4\x67\x0b\xaf\x45\xc4\xad\x3c\xf5\xd7\xa7" "\x6a\x15\x9e\xda\x41\x9f\x9d\x76\xde\xa7\xff\x19\x5a\xfd\x38\xe7\x2d\x70" "\x4a\x25\xcd\xfb\x66\x9f\x99\x88\x73\x11\x31\x1d\x11\xf9\xdf\x04\xc5\xd5" "\x21\x1d\xef\xe8\x9e\xbd\x9d\x93\x1e\x00\x00\x00\x00\x1c\x57\xed\xf8\x55" "\x5e\xda\x8f\xfd\xd8\x8e\xf3\xcf\x63\x38\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xf0\xff\xaa\x78\xff\x7f\x52\x4c\x69\x2b\x3d\x1b\x49\xeb\xfd\xff\xd5" "\x62\x5d\x14\xe9\x78\x74\xb2\x43\xee\x33\x31\x42\x99\x7f\x4f\x35\xe7\x8f" "\x9f\xf7\x60\x00\x00\x00\x00\x00\x00\x00\x60\x0c\x5e\xdb\x8f\xfd\xd8\x8e" "\xf3\xad\xe5\x83\x24\xff\xcd\xff\xf5\xae\xdf\xf8\xbf\x15\xef\xc7\x66\xac" "\xc6\x46\x5c\x8f\xed\xa8\xc7\x56\x6c\xc5\x46\x2c\x44\xc4\x4c\x57\x43\xd5" "\xed\xfa\xd6\xd6\xc6\x42\x5e\x33\xe2\xe2\x80\x9a\x37\xe3\x8b\x92\x9a\x37" "\x8f\x1e\xe3\xad\x67\xbc\xcd\x00\x00\x00\x00\x00\x00\x00\x70\xca\x4d\x0f" "\xc9\xbf\x3f\xd9\xbf\xee\xf7\xb1\xd2\xf9\xfd\x1f\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x4e\x83\x24\x62\xa2\x39\xcb\xa7\x8b\xad\xf4\x4c\xa4" "\x95\x88\x98\x8e\x88\x6a\x56\x6e\x27\xe2\x8b\x56\xfa\x8c\x48\xca\x56\x3e" "\x1e\xff\x38\x00\x00\x00\xe0\xa9\x4c\x0f\x59\x2e\xf3\xd2\xa3\xd8\x8f\xed" "\x38\xdf\x5a\x3e\x48\xf2\x67\xfe\xcb\xf9\xf3\xf2\x74\xbc\x1f\xeb\xb1\x15" "\x6b\xb1\x15\x8d\x58\x8d\x3b\xc5\x33\x74\xf6\xd4\x9f\xee\xed\x2e\x36\xf6" "\x76\x17\x1f\x64\x53\x7f\xbb\x3f\xfd\xfa\x58\x43\xcf\x5b\x8c\xe6\x77\x0f" "\xe5\x3d\x5f\xcd\x4b\xd4\xe2\x6e\xac\xe5\x6b\xae\xc7\xed\x78\x18\x8d\xb8" "\x13\x69\x5e\x33\x73\x75\x6f\x77\x31\x9b\x3f\x28\x1f\xd7\x47\xd9\x98\x92" "\x9f\x14\x06\x8c\x66\xa2\x2b\x7d\x27\xfb\xb8\xf2\x59\x9e\xfe\x4b\xef\xb7" "\x08\x95\x63\x6d\xe2\x13\x4a\x8f\xcc\x99\xc9\x73\x27\xdb\x11\x99\x2f\xc6" "\x96\xd5\xb8\xd0\x8a\x40\x79\x24\x86\xee\x9d\xca\xc0\x9e\x16\x22\x6d\x7f" "\xf3\x73\xb1\xb4\xa7\x83\xc2\x11\x31\xff\x68\x70\xef\xe7\x0e\x95\x2a\xfd" "\xe6\xe6\x44\x1c\x8e\xc4\xcd\xae\xa3\xef\xf2\xe0\x98\x47\x7c\xf7\x1f\x9f" "\xfe\xfa\x5e\x63\xfd\xfe\xbd\xbb\x9b\x73\xa7\x67\x93\x4a\x3d\x1a\x5a\xe2" "\x70\x24\x16\xbb\x22\x71\xe5\x8c\x47\xe2\xe0\x58\xa5\xe7\xf3\x48\x5c\x6a" "\x2f\xaf\xc4\x2f\xe2\x57\x31\x17\x5f\x4f\xbd\x1d\x1b\xb1\x16\xbf\x89\x7a" "\x6c\xc5\x6a\xbb\xd5\x7a\x71\x3c\x67\x9f\x33\xc3\x22\xd5\xed\xed\x61\x23" "\xa9\x16\xfb\xa5\x79\xfd\x2a\x1b\xd3\x6c\xf4\x8e\x69\x36\x7e\x9e\xa7\xea" "\xf1\x7a\x5e\xf7\x7c\xac\x45\x12\x0f\x23\x62\x35\xde\xcc\xff\xdd\x8c\x85" "\xf6\xd5\xa0\xb3\x87\x2f\x0d\x1e\x77\x7e\xd6\xa7\x23\x5c\x69\xbb\x5c\xfb" "\x5e\x3e\x9b\x6d\xaf\xa8\x8d\x56\x6f\x0c\xb2\xb8\x5e\xe8\x8a\x6b\xe7\xa8" "\x9f\xce\xe3\x7d\xa1\xe7\x2a\xdc\x89\xd2\xcb\xa5\x51\x6a\xdd\xeb\x46\xbf" "\x1f\x75\xa9\x7c\xa7\x48\x64\x2d\xfc\x61\xe0\xfd\x61\xdc\x0e\x47\x62\xa1" "\x2b\x12\xaf\x0c\x3e\x5e\xfe\x96\x9f\x1b\x9b\x8d\xf5\xfb\x1b\xf7\xea\xef" "\x8d\xd8\xdf\x1b\xc5\x3c\x3b\x8f\xfe\x74\xaa\xee\x12\xd9\x1e\x7e\x39\xa6" "\x8b\xe3\xa5\xf7\xe8\xc8\xf2\x5e\x69\xdf\x61\x7b\xe3\x55\x2d\x7e\x71\x69" "\x4a\xfb\xf2\x2e\xb5\xeb\x35\xcf\xd4\x5f\xc6\xc3\xb8\xd3\x73\xa6\xfe\x30" "\x96\x62\x29\x96\xf3\xd2\x97\xf3\xd2\x93\x7d\x77\xac\x2c\xef\x4a\xbb\xa5" "\xde\x6b\x78\x96\x77\xb5\x2b\xaf\xec\xef\x2d\x00\x4e\xbd\x73\xdf\x3f\x57" "\xad\xfd\xb7\xf6\xaf\xda\x27\xb5\x3f\xd6\xee\xd5\xde\x9a\xfe\xd9\xd4\x8f" "\xa6\x5e\xad\xc6\xe4\x3f\x27\x7f\x5c\x99\x9f\x78\x23\x7d\x35\xf9\x7b\x7c" "\x12\xbf\xeb\x3c\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x4f\x6e\xf3\x83\x0f\xef\xd7" "\x1b\x8d\xd5\x8d\xf2\x44\x5a\x9e\x95\x0c\xae\x55\x6f\x1c\x14\x2f\x12\x1b" "\x54\xa6\x27\x91\x14\x2f\xf2\x19\xa1\x70\x32\x52\x83\x67\x26\xd1\x7a\x5b" "\xe3\xf0\xc2\xb3\xcf\x71\x18\xc9\x4e\xb1\xc3\x8e\x53\xab\xf5\x96\xa7\x27" "\xea\x34\xab\x7c\x4a\x76\xc1\x19\x48\x4c\x15\xa1\x7e\xaa\x76\x6a\x65\xfb" "\x6b\x22\x22\xca\x0a\x0f\xb9\x70\x4c\x3c\xf3\x4b\x11\x30\x66\x37\xb6\x1e" "\xbc\x77\x63\xf3\x83\x0f\x7f\xb0\xf6\xa0\xfe\xee\xea\xbb\xab\xeb\x93\x4b" "\x4b\xcb\xf3\xcb\x4b\x6f\x2e\xde\xb8\xbb\xd6\x58\x9d\x6f\x7e\x76\x55\x18" "\xcb\xcb\x6f\x81\x71\xe8\xdc\xf4\xbb\xd7\xa6\x11\xaf\x0d\xaf\x7b\x7a\x5e" "\xd4\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2f\x96\x71\xfc\x1f\x86\x93" "\xde\x46\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\xe0\x6c\x5b\x99\x8b\xca\xe3\x48\x62\x61\xfe\xfa\x7c" "\xb6\xbc\xb7\xbb\xd8\xc8\xa6\x56\xba\x53\xb2\x12\x11\x69\x44\x24\xbf\x8d" "\x48\x3e\x8f\xb8\x15\xcd\x29\x66\x8a\xcc\x4c\x72\x54\x3f\x1f\xaf\x2d\xbf" "\xf3\xe5\x37\x7b\x5f\x75\xda\xaa\xb4\xca\xa7\x11\x3b\x47\xd6\x1b\xcd\x4e" "\x31\xc5\x6c\x44\x4c\x14\xf3\x67\xd5\xde\xed\xe1\xed\x55\x3b\xc9\xa9\x92" "\xec\xa4\x1d\x99\x2c\x60\xd7\x5a\x81\x83\x93\xf6\xbf\x00\x00\x00\xff\xff" "\x4e\xa3\xff\x4d", 1714); syz_mount_image(/*fs=*/0x200000c0, /*dir=*/0x20000180, /*flags=MS_I_VERSION|MS_SILENT*/ 0x808000, /*opts=*/0x20000300, /*chdir=*/0x81, /*size=*/0x6b2, /*img=*/0x20001140); memcpy((void*)0x200005c0, "./bus\000", 6); res = syscall( __NR_open, /*file=*/0x200005c0ul, /*flags=O_NONBLOCK|O_NOFOLLOW|O_NOATIME|O_DIRECT|O_CREAT|0x2*/ 0x64842ul, /*mode=*/0ul); if (res != -1) r[0] = res; memcpy((void*)0x20000080, "trusted.overlay.origin\000", 23); syscall(__NR_fsetxattr, /*fd=*/r[0], /*name=*/0x20000080ul, /*val=*/0ul, /*size=*/0ul, /*flags=XATTR_REPLACE*/ 2ul); return 0; }