// https://syzkaller.appspot.com/bug?id=dacdd83da50d42f90f00ea4b3c264efb31070b26 // 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); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x200001c0, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 251); memcpy( (void*)0x20000f40, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\x6c\x36\x76\x36\x6d\x83" "\x9b\x26\x6d\x40\x95\x6a\x35\x12\x20\x22\x12\xbf\xc8\x05\x73\x21\x20\x84" "\x7c\xa8\x50\x55\x0e\x9c\xad\xc4\x69\xac\xac\xd3\x62\xbb\xc8\xad\x10\x75" "\x78\xbd\xf6\xd0\x3f\xa0\x1c\x7c\x41\x9c\x90\xe0\x1c\xa9\x70\xe0\x02\xb7" "\xde\x90\x8f\x95\x90\xb8\xf4\x82\x39\x2d\xda\xd9\xd9\xf5\xfa\x35\xeb\xa4" "\x59\x3b\xed\xe7\x13\xcd\x3e\xcf\xcc\x33\xcf\x33\xbf\xe7\x37\x3b\xb3\x2f" "\x56\xb4\x01\xbe\xb0\xe6\xae\xa4\x7e\x3f\x45\xe6\xae\xbc\xba\xd6\x5e\xdf" "\xdc\x98\x6e\x6e\x6e\x4c\x2f\x75\xeb\x49\x46\x93\xac\x27\xf5\x24\xb5\x24" "\xc5\x7f\x5b\xad\xd6\x47\xc9\xf5\xa4\xe8\x0d\x53\xec\x2a\xf7\xf8\x60\x71" "\xf6\xf5\x8f\x3f\xdd\xfc\xa4\xb3\x56\xaf\x96\x72\xff\xda\x61\xfd\x76\xf8" "\xcb\x33\x55\x65\x7d\x57\xc3\x7a\x77\xdb\x78\x92\x53\x55\xf9\x08\x76\x8c" "\x77\xe3\x91\xc7\x2b\x7a\x33\xbc\x9e\xe4\x72\x55\xc2\xb1\x3b\x9d\xa4\xb5" "\xc3\x4f\xff\xfe\x74\xaf\xa5\x4f\x63\xbf\xde\x67\x86\x12\x23\xf0\x78\x15" "\x9d\xd7\xcd\x3d\xc6\x92\xb3\xfd\xaf\xcf\xd5\x2b\x6f\x6d\x78\x91\x1d\xcd" "\xe8\x80\xfb\xed\x7e\x07\x01\x00\x00\x00\x4f\x9a\x41\x3e\x03\x7f\x69\x2b" "\x5b\x59\x2b\xce\x0d\x21\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x5c" "\x58\xdf\xfe\xfd\xff\xa2\x5a\x6a\xdd\xfa\x78\x8a\xb3\x49\xce\x24\x19\xa9" "\xb6\xa5\xaa\x9f\x2c\x2f\x1d\x6d\xf7\xfb\x8f\x2b\x0e\x00\x00\x00\x00\x00" "\x00\x00\x18\xa2\x97\xb6\xb2\x95\xb5\x9c\xeb\xae\xb7\x8a\xf2\x6f\xfe\x2f" "\x97\x2b\x17\xca\xc7\xa7\xf2\x76\x56\xb2\x90\xe5\x5c\xcd\x5a\xe6\xb3\x9a" "\xd5\x2c\x67\x32\xc9\x58\xdf\x40\x23\x6b\xf3\xab\xab\xcb\x93\x03\xf4\x9c" "\xda\xb7\xe7\xd4\x03\x02\x1d\xad\xca\xc6\x67\x33\x6f\x00\x00\x00\x00\x00" "\x00\x00\xf8\x9c\xf9\x65\xe6\xb6\xff\xfe\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\x27\x41\x91\x9c\xea\x14\x29\xee\xf5\x6d\x1e\x4b\xad\x9e" "\xe4\x4c\x92\x91\xf6\x86\xf5\xe4\x9f\xdd\xfa\x93\xec\xfe\x71\x07\x00\x00" "\x00\x00\x43\x30\x9a\x6c\x65\x2d\xe7\xba\xeb\xad\x22\x17\x92\x3c\x5f\x7e" "\x07\x70\x26\x6f\xe7\x6e\x56\xb3\x98\xd5\x34\xb3\x90\x9b\xe5\xf7\x02\x9d" "\x4f\xfd\xb5\xcd\x8d\xe9\xe6\xe6\xc6\xf4\xd2\xc5\x3b\xfb\x8d\xfb\xbd\xff" "\x1c\x29\x8c\x72\xc4\x74\xbe\x7b\xd8\xff\xc8\x97\xca\x3d\x1a\xb9\x95\xc5" "\x72\xcb\xd5\xdc\xc8\x9b\x69\xe6\x66\x6a\x65\xcf\xb6\x4b\xed\x78\x36\x37" "\xa6\xbb\xa3\x2e\xed\x3c\xc8\xbd\x76\x4c\xc5\x77\x2b\x03\x46\x76\xb3\x2a" "\xdb\x33\x7f\xbf\x2a\xf7\x78\xef\x48\x93\x3d\xc8\x11\xbf\x4c\x19\x2b\x33" "\x72\xba\x97\x91\x89\x2a\xb6\x76\x36\x9e\xad\x32\xd1\x5b\x76\x76\x3d\xe2" "\xd9\xd9\x7d\xa4\xc9\xd4\x7a\xc1\x5e\xd8\x75\xa4\x91\x9d\x93\x79\xa8\x9c" "\x9f\xad\xca\xf6\x7c\x7e\x7b\x50\xce\x8f\xc5\xee\x4c\x4c\xf5\x3d\xfb\x9e" "\x3f\x3c\xe7\xc9\xd7\xfe\xfc\xc7\x9f\x4c\x54\xf5\x93\x33\xa5\xc1\x9c\xaa" "\xca\x56\xf9\xd8\xd8\x9b\x89\xe9\xbe\x4c\xbc\x30\x48\x26\x6e\x37\xef\xde" "\xb9\x7d\x6b\xe5\xca\x93\x96\x89\x3d\x26\xca\x4c\x5c\xec\xad\xcf\xe5\x87" "\xf9\x71\xae\x64\x3c\xaf\x65\x39\x8b\xf9\x59\xe6\xb3\x9a\x85\x8c\xe7\x07" "\x65\x6d\xbe\x3a\xf9\x45\xdf\x25\x7f\x40\xa6\xae\xef\x58\x7b\xed\x41\x91" "\x8c\x54\xcf\xd0\xce\xc9\x3a\x5a\x4c\x2f\x97\x7d\xcf\x65\x31\x3f\xca\x9b" "\xb9\x99\x85\xbc\x52\xfe\x9b\xca\x64\xbe\x95\x99\xcc\x64\xb6\xef\x0c\x5f" "\x3c\xfc\x0c\x97\x57\x7d\xed\x80\xab\xbe\xf5\xcc\xbe\xc1\x5f\xfe\x7a\x55" "\x69\x24\xf9\x5d\x55\x9e\x0c\xed\xbc\x3e\xdb\x97\xd7\xfe\x7b\xee\x58\xd9" "\xd6\xbf\x65\x3b\x4b\xe7\x07\xc8\xd2\x11\xef\x8d\xf5\xaf\x54\x95\xf6\x31" "\x7e\x55\x95\x27\xc3\xee\x4c\x4c\xf6\x65\xe2\xb9\xc3\x33\xf1\xfb\xf2\xb6" "\xb2\xd2\xbc\x7b\x67\xf9\xf6\xfc\x5b\x83\x1d\xee\xfc\xfb\x55\xa5\x7d\x1d" "\xfd\x26\x19\x3f\x39\x37\x92\xf6\xf3\xe5\x7c\xfb\x64\x95\x6b\x3b\x9f\x1d" "\xed\xb6\xe7\xf6\x6d\x9b\x2c\xdb\x2e\xf4\xda\x6a\x7b\xda\x2e\xf6\xda\x3a" "\x57\xea\xfa\x81\x57\xea\x48\xf5\x1e\x6e\xef\x48\x53\x65\xdb\x0b\xfb\xb6" "\x4d\x97\x6d\x97\xfa\xda\xf6\x7b\xbf\x05\xc0\x89\x77\xf6\x1b\x67\x47\x1a" "\xff\x6e\xfc\xa3\xf1\x61\xe3\xd7\x8d\xdb\x8d\x57\xcf\x7c\x7f\xf4\xdb\xa3" "\x2f\x8e\xe4\xf4\x5f\x4f\x7f\xa7\x3e\x71\xea\xab\xb5\x17\x8b\x3f\xe5\xc3" "\xfc\x62\xfb\xf3\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\xf0\x56\xde\x79\xf7\xce\x7c" "\xb3\xb9\xb0\xbc\xab\xd2\x6a\xb5\xde\x3b\xa0\x69\xc0\x4a\xbd\x3a\xc2\x43" "\x76\x7f\x84\x4a\xc6\xff\xf5\x54\xfb\xc8\xfb\x34\x75\x7f\xce\x6c\x88\xf1" "\x7c\xf9\xe9\xe4\xc1\x3b\x37\x86\x98\x9f\x87\xaa\x8c\xe4\x91\xba\xff\xaf" "\xd5\x6a\x55\x5b\x8a\x03\xf6\xf9\xc3\xdf\x06\x49\xd4\x50\x2a\xad\xca\x89" "\xc8\xfc\x31\x55\x8e\xef\x9e\x04\x0c\xc7\xb5\xd5\xa5\xb7\xae\xad\xbc\xf3" "\xee\x37\x17\x97\xe6\xdf\x58\x78\x63\xe1\xee\xec\xcc\xcc\xec\xc4\xec\xcc" "\x2b\xd3\xd7\x6e\x2d\x36\x17\x26\x3a\x8f\xc7\x1d\x25\xf0\x38\x6c\xbf\xe8" "\x1f\x77\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xa0\x86\xf1\xdf\x09" "\x8e\x7b\x8e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\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\x93\x6d\xee\x4a\xea\xf7\x53\x64\x72\xe2\xea" "\x44\x7b\x7d\x73\x63\xba\xd9\x5e\xba\xf5\xed\x3d\xeb\x49\x6a\x49\x8a\x9f" "\x27\xc5\x47\xc9\xf5\x74\x96\x8c\xf5\x0d\x57\x1c\x74\x9c\x0f\x16\x67\x5f" "\xff\xf8\xd3\xcd\x4f\xb6\xc7\xaa\x77\xf7\xaf\x1d\xd6\x6f\x30\xeb\xd5\x92" "\xf1\x24\xa7\x3a\xe5\xbd\xcf\x6a\xbc\x1b\x55\x79\xa8\xe2\xb0\x29\x14\xbd" "\x19\xb6\x13\x76\xb9\x9b\x38\x38\x6e\xff\x0f\x00\x00\xff\xff\xa6\x0c\x04" "\x64", 1657); syz_mount_image(/*fs=*/0x20000600, /*dir=*/0x200001c0, /*flags=MS_I_VERSION|MS_SYNCHRONOUS*/ 0x800010, /*opts=*/0x20000000, /*chdir=*/1, /*size=*/0x679, /*img=*/0x20000f40); memcpy((void*)0x20000040, "./bus\000", 6); res = syscall(__NR_creat, /*file=*/0x20000040ul, /*mode=*/0ul); if (res != -1) r[0] = res; syscall(__NR_write, /*fd=*/r[0], /*data=*/0x20000480ul, /*len=*/0xfd14ul); memcpy((void*)0x20000280, "./file1\000", 8); syscall(__NR_unlink, /*path=*/0x20000280ul); return 0; }