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