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