// https://syzkaller.appspot.com/bug?id=83aa676a823eeb2855ab831541b2c8175904c281 // 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[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x3ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x400000000000ul, /*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=*/0x400001000000ul, /*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*)0x400000000000, "/dev/kvm\000", 9); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x400000000000ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; res = syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0xae01, /*type=*/0ul); if (res != -1) r[1] = res; syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0xae60, 0); res = syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0xae41, /*id=*/1ul); if (res != -1) r[2] = res; memcpy((void*)0x400000000100, "hfsplus\000", 8); memcpy((void*)0x400000000000, "./file1\000", 8); memcpy((void*)0x400000000880, "barrier", 7); *(uint8_t*)0x400000000887 = 0x2c; memcpy((void*)0x400000000888, "umask", 5); *(uint8_t*)0x40000000088d = 0x3d; sprintf((char*)0x40000000088e, "%023llo", (long long)2); *(uint8_t*)0x4000000008a5 = 0x2c; memcpy((void*)0x4000000008a6, "nls", 3); *(uint8_t*)0x4000000008a9 = 0x3d; memcpy((void*)0x4000000008aa, "macturkish", 10); *(uint8_t*)0x4000000008b4 = 0x2c; memcpy((void*)0x4000000008b5, "umask", 5); *(uint8_t*)0x4000000008ba = 0x3d; sprintf((char*)0x4000000008bb, "%023llo", (long long)9); *(uint8_t*)0x4000000008d2 = 0x2c; memcpy((void*)0x4000000008d3, "type", 4); *(uint8_t*)0x4000000008d7 = 0x3d; memcpy((void*)0x4000000008d8, "\xf7\x48\xb3\xb1", 4); *(uint8_t*)0x4000000008dc = 0x2c; memcpy((void*)0x4000000008dd, "force", 5); *(uint8_t*)0x4000000008e2 = 0x2c; *(uint8_t*)0x4000000008e3 = 0; memcpy( (void*)0x400000000140, "\x78\x9c\xec\xdd\x4f\x6c\x5b\x77\x1d\x00\xf0\xef\xb3\x1d\x27\xee\x50\xe6" "\x6d\xed\x36\x10\x52\xa3\x55\x54\xb0\x42\x9b\xc4\x8c\x16\x09\x89\x82\x10" "\xca\x61\x42\x95\xb8\xec\x1a\xda\x74\x8d\xea\x64\x55\x92\xa1\xb4\x42\xd4" "\x65\x0c\x8e\x70\x42\x3d\xec\x30\x84\xc2\x61\x27\xb4\x03\xd2\x10\x07\xc4" "\x38\x23\x21\x71\x45\xb9\x57\xda\x8d\x43\xc5\x01\xa3\xf7\xfc\x9c\xd8\x4e" "\xec\xd8\xf9\xdb\x96\xcf\x47\x7a\x79\xbf\xf7\xde\xef\xcf\xf7\x7d\xf3\x7b" "\x2f\xf6\x73\x2b\x07\xf0\x7f\x6b\xee\xad\x18\x6b\x44\x12\x73\x17\xde\x5c" "\x4f\xb7\x37\x37\x6a\xf5\xcd\x8d\xda\x52\xbb\x1c\x11\xe3\x11\x51\x88\x28" "\xb5\x56\x91\x2c\x47\x24\x9f\x46\x5c\x8d\xd6\x12\x9f\x4f\x77\xe6\xdd\x25" "\xfd\xc6\x79\xe3\xd1\x27\x1f\x9c\x7f\xf8\x51\xad\xb5\x55\xca\x97\xac\x7e" "\x61\x50\xbb\x6d\xcd\x01\x23\x34\xf2\x25\xa6\x22\xa2\x98\xaf\x47\x54\xea" "\xd7\xdf\xf5\x5d\xfa\xbb\x3f\x52\xd7\xc9\x56\xdc\x69\xc2\xce\xb5\x13\x07" "\x27\xad\xb9\x43\x63\x94\xe6\x43\x5c\xb7\xc0\x93\xee\x7e\x44\x71\x6c\x97" "\xfd\xd5\x88\x53\x11\x31\x91\xbf\x0e\x88\xfc\xee\x50\x38\xe6\xf0\x0e\xdd" "\x48\x77\x39\x00\x00\x00\x78\x32\x15\xf7\xaa\xf0\xfc\xe3\x78\x1c\xeb\x31" "\x79\x3c\xe1\x00\x00\x00\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\xb3\x21\x69\x7d\x67" "\x60\x92\x2f\x85\x76\x79\x2a\x92\xf6\xf7\xff\x97\xf3\x7d\xa9\x72\xf9\x84" "\xe3\x1d\xec\xab\x7b\x1c\x7f\xff\xe6\x31\x05\x02\x00\x00\x00\x00\x00\x00" "\x00\x07\xd3\xe7\x03\xfa\x8f\xf3\xfd\x67\x1f\xc7\xe3\x58\x8f\xc9\x7c\x77" "\xd2\x48\xb2\xcf\xfc\x5f\xcb\xb6\x4e\x67\x3f\x9f\x8b\x77\x63\x35\x16\x62" "\x25\x2e\xc6\x7a\xcc\xc7\x5a\xac\xc5\x4a\xcc\x44\x8c\x4d\x76\x8e\xb3\x3e" "\xbf\xb6\xb6\x32\xb3\xb3\xe5\x6f\x22\x6d\xd9\x6c\x36\xef\xe7\x2d\x67\x23" "\xa2\xba\xa3\xe5\xec\xa1\x9f\x39\x00\x00\x00\x00\x00\x00\x00\x3c\x3b\x8a" "\x7b\xd6\xf8\x59\xcc\xc5\xe4\xb1\xc4\x02\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x43\x4a\x22\x8a\xad\x55\xb6\x9c\x6e\x97\xab\x51\x28\x45\xc4" "\x44\x44\x94\xd3\x7a\x8d\x88\x3f\xb7\xcb\x4f\xb3\xbf\x9c\x74\x00\x00\x00" "\x00\x70\xf4\x2a\xf9\x7a\x32\xf9\x6f\xab\xd0\x4c\xb2\xf7\xfc\x2f\x67\xef" "\xfb\x27\xe2\xdd\x58\x8e\xb5\x58\x8c\xb5\xa8\xc7\x42\xdc\xc8\x9e\x05\xb4" "\xde\xf5\x17\xfe\xd1\xa8\xd5\x37\x37\x6a\x4b\xe9\xb2\xb3\xe3\xef\x7c\x36" "\x52\x1c\x59\x8f\x11\x51\x8c\x07\x7d\x46\x9e\xce\x6a\x9c\xd9\x6a\x31\x17" "\xdf\x8f\x1f\xc6\x85\x98\x8a\x6b\xb1\x12\x8b\xf1\xe3\x98\x8f\xb5\x58\x88" "\xa9\xa8\xa4\x27\x11\xf3\x91\x44\xb5\xd2\x7a\x7a\x51\x6d\xc7\xb9\x7b\xbc" "\x57\xbb\xb6\xae\xf5\xc6\x76\xb6\x67\xfb\xd5\x2c\x92\x4a\xdc\x8c\xc5\x2c" "\xb6\x8b\x71\xbd\x1c\xad\xc7\x26\xd9\x39\xa4\x63\xbe\xda\x31\xda\x1f\xcb" "\x11\x3d\x23\x3e\x48\xb3\x93\x7c\x3b\x37\x64\x8e\x6e\x74\xfc\xbe\x7e\x9d" "\x3f\x97\xc9\x35\x9f\x1f\xb2\x8f\xa3\x51\xcd\xce\x7c\x6c\x2b\x23\xd3\x69" "\xee\xf3\x6c\xbc\x30\x38\xf7\x23\xce\x93\xde\x91\x66\xa2\xd0\x2c\xe6\xc7" "\x4e\x6f\x8f\x92\x6e\xf6\x8e\xd4\xce\xf9\x8f\x46\xc9\xf9\xa9\x7c\x9d\xe6" "\xfa\x17\xdd\x39\x3f\x6c\x23\x3e\x4a\xeb\xcd\xc4\x6c\x14\xf2\xd9\x17\xf1" "\x72\x77\xce\xef\x7c\xe9\xe1\x8b\xdd\x8d\xbf\xf2\xcf\xbf\x5e\xbb\x55\x58" "\xbe\x7d\xeb\xe6\xea\x85\x23\x3c\xa5\x23\x35\xd6\x2e\xf4\x66\xa2\xd6\x91" "\x89\x57\x06\xcf\xbe\x3c\x13\xf5\x34\x13\x8d\xe1\x33\x31\xd6\xbb\x63\xe2" "\x00\xe7\x71\x88\xca\x79\x36\x5a\x57\xc4\x70\x77\xcb\xef\x65\xa5\xf9\x78" "\xad\x63\x0a\xbe\x13\x37\x62\x21\x2e\xc7\x74\xcc\xc4\x95\x98\x8e\x6f\xc6" "\x6c\xd4\xba\x66\xd8\x99\xcd\x8d\x5a\x44\x3b\xaf\xa5\xda\x52\x77\x4e\x1e" "\x7c\xb6\x75\xa7\xea\xba\xd6\x2a\x03\x82\x3f\xf7\xe5\x8e\x4a\xbf\xec\x53" "\xb9\x79\x7f\x1f\x69\x39\xb0\x34\x2f\x2f\x74\xe4\xb5\xf3\x4e\x57\xcd\x8e" "\xe5\x7b\xae\xfe\x2a\xa6\x3b\xb2\xf4\xe2\xe0\xd9\x37\xf2\x5f\x81\x74\xfc" "\x2f\xe4\xe5\x74\x8c\xf7\xb6\xfe\xe2\x3c\x09\xba\x32\x91\xdd\x9b\xdf\xfb" "\x5c\xfb\xd8\x4b\x83\x33\xf1\xdb\x66\xfa\x73\xb5\xbe\x7c\x7b\xe5\xd6\xfc" "\x9d\x21\xc7\x3b\x9f\xaf\xd3\xcb\xf6\xfd\xee\x7b\xf3\xef\x0e\xe1\x74\x0e" "\x20\x9d\x2f\xe9\x1d\xb7\x94\x6d\x65\x39\xa9\xb4\xe7\x4b\x7a\xec\xa5\xad" "\x68\xbb\xf3\x55\xce\x3f\x71\x69\xb5\x2b\xec\x38\x76\x66\xeb\x58\x35\x26" "\x63\x31\x7e\xd0\xf7\x4a\x2d\xe7\xaf\xe1\x76\xf6\xd4\x3a\xf6\x4a\xe7\xb1" "\x7f\x6d\xdf\x39\xcb\xf9\xeb\x9b\xf6\xb1\xae\x57\x39\xf1\x4e\xd4\xb3\x57" "\x21\x3d\xa6\x8e\x27\xab\x00\x0c\xed\xd4\xeb\xa7\xca\x95\x47\x95\xbf\x57" "\x3e\xac\xfc\xbc\x72\xab\xf2\xe6\xc4\x77\xc7\xaf\x8c\x7f\xb1\x1c\x63\x7f" "\x2b\xfd\xa9\xf8\x87\xc2\xef\x0b\xdf\x4a\x5e\x8f\x0f\xe3\xa7\x31\x79\xd2" "\x91\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xc0\xb3\x60\xf5\xee\xbd\xdb\xf3\xf5\xfa\xc2\xca" "\x56\x21\x26\x7a\xf7\x1c\xb4\x50\xee\x3b\xd6\xe0\x42\x14\x3a\xf7\x94\x77" "\xab\xb3\xf1\xdc\x70\x1d\x46\x35\x62\xf0\x58\x49\x5e\x28\x1f\xee\xb9\x3f" "\x4d\x85\x7f\x47\xab\x50\x89\xfd\x34\x2f\xed\x5d\xe7\xe3\x88\x18\x50\xa7" "\xbc\x9f\xe0\xbb\x3a\x4c\x3a\xe7\xd8\xc0\xb1\xf6\x5d\x48\x27\xf2\xa1\x74" "\xd8\xfe\xe2\xb4\x6c\x4f\xb3\x38\x42\xf3\x52\xbb\xd5\xee\x75\x4a\xb1\x3a" "\xd1\xef\x37\x38\xbe\x7d\x15\x44\xf5\xf6\x7c\xfd\x3f\xcd\xae\x3a\x95\xe8" "\xb8\x64\x76\x31\xe2\x77\x15\x02\x4f\xb4\x4b\x6b\x4b\x77\x2e\xad\xde\xbd" "\xf7\xb5\xc5\xa5\xf9\xb7\x17\xde\x5e\x58\x9e\xbd\x72\xf9\xca\xe5\xda\x37" "\x66\xbe\x7e\xe9\xe6\x62\x7d\x61\xba\xf5\xf3\xa4\xa3\x04\x8e\xc2\xea\xdd" "\x7b\xc5\x93\x8e\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x4d\xfe\xaf" "\xff\xd7\xf6\xfd\x9f\x19\x4a\x7b\xd4\x29\xaf\xac\xee\x3e\xf2\xd9\xe3\x3e" "\x55\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x29\x35\xf7\x56\x8c\x35\x22\x89\x99\xe9\x8b\xd3\xe9" "\xf6\xe6\x46\xad\x9e\x2e\xed\xf2\x76\xcd\x52\x44\x14\x22\x22\xf9\x49\x44" "\xf2\x69\xc4\xd5\x68\x2d\x51\xed\xe8\x2e\xe9\x37\xce\x1b\x8f\x3e\xf9\xe0" "\xfc\xc3\x8f\x6a\xdb\x7d\x95\xda\xf5\x0b\x83\xda\x0d\xa7\x91\x2f\x31\x15" "\x11\xc5\x7c\xbd\xb7\xf1\x5d\xba\xd9\xd9\xdf\xf5\x8e\xfe\x1a\xfb\x0a\x2f" "\xd9\x3a\xc3\x34\x61\xe7\xda\x89\x83\x93\xf6\xbf\x00\x00\x00\xff\xff\xd0" "\xfc\xf7\x83", 1803); syz_mount_image(/*fs=*/0x400000000100, /*dir=*/0x400000000000, /*flags=MS_NOATIME|MS_DIRSYNC*/ 0x480, /*opts=*/0x400000000880, /*chdir=*/1, /*size=*/0x70b, /*img=*/0x400000000140); *(uint8_t*)0x400000000140 = 0; *(uint8_t*)0x400000000141 = -1; *(uint8_t*)0x400000000142 = 0; *(uint8_t*)0x400000000143 = 0; *(uint32_t*)0x400000000144 = 0; *(uint8_t*)0x400000000148 = 0; *(uint8_t*)0x400000000149 = 0; *(uint8_t*)0x40000000014a = 0; *(uint8_t*)0x40000000014b = 0; *(uint8_t*)0x40000000014c = 0; *(uint8_t*)0x40000000014d = 9; *(uint8_t*)0x40000000014e = 0; *(uint8_t*)0x40000000014f = 0; *(uint32_t*)0x400000000150 = 3; *(uint32_t*)0x400000000154 = 0x20; *(uint8_t*)0x400000000158 = 0; *(uint8_t*)0x400000000159 = 0; *(uint8_t*)0x40000000015a = 0; *(uint8_t*)0x40000000015b = 0; memset((void*)0x40000000015c, 0, 27); *(uint8_t*)0x400000000177 = 0; *(uint64_t*)0x400000000178 = 2; syscall(__NR_ioctl, /*fd=*/r[2], /*cmd=*/0x4400ae8f, /*arg=*/0x400000000140ul); syscall(__NR_ioctl, /*fd=*/r[2], /*cmd=*/0xae80, /*arg=*/0ul); return 0; }