// https://syzkaller.appspot.com/bug?id=59cf02532b6e1b4b8c5217b6bc0e378adb9a5fb3 // 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"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } 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=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$nilfs2 arguments: [ // fs: ptr[in, buffer] { // buffer: {6e 69 6c 66 73 32 00} (length 0x7) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x90 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {00 01 de f4 77 47 74 36 6f 0b 8a 20 db 13 db 64 // e8 5f c9 32 2c 3f e0 18 b9 1f f1 29 1b 4f 4c 56 de 7e 45 43 f4 98 // 18 e1 30 7d 98 d0 9d aa 1e 2a 7d bf 88 00 3e 94 01 dc 73 aa d0 b7 // db b5 68 55 65 c7 82 5b a8 34 06 21 fa ea e9 2a be d1 9c 52 4a b0 // 6c 43 03 25 8d 25 37 22 e1 59 64 2a f4 47 ae b0 96 c6 a2 6d 34 5d // 82 f2 92 51 63 33 1b 0e 91 57 44 1a 9c 61 dd 10 51 d3 b9 70 f9 ac // 12 f5 97 5c f1 ad 4e 45 ac ef 1a 54 92 1c 49 2a 77 bc b1 85 8b 68 // 75 8e d3 39 60 8b 8e 43 c7 33 21 9f 1f 9e 0b 86 78 40 f8 21 e0 3b // c0 e8 a4 97 c4 d5 dd e4 36 00 00 90 a3 97 63 7d ed b2 f3} (length // 0xbd) // } // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0xda3 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xda3) // } // ] // returns fd_dir memcpy((void*)0x200000000dc0, "nilfs2\000", 7); memcpy((void*)0x200000000400, "./file0\000", 8); memcpy( (void*)0x200000003280, "\x00\x01\xde\xf4\x77\x47\x74\x36\x6f\x0b\x8a\x20\xdb\x13\xdb\x64\xe8\x5f" "\xc9\x32\x2c\x3f\xe0\x18\xb9\x1f\xf1\x29\x1b\x4f\x4c\x56\xde\x7e\x45\x43" "\xf4\x98\x18\xe1\x30\x7d\x98\xd0\x9d\xaa\x1e\x2a\x7d\xbf\x88\x00\x3e\x94" "\x01\xdc\x73\xaa\xd0\xb7\xdb\xb5\x68\x55\x65\xc7\x82\x5b\xa8\x34\x06\x21" "\xfa\xea\xe9\x2a\xbe\xd1\x9c\x52\x4a\xb0\x6c\x43\x03\x25\x8d\x25\x37\x22" "\xe1\x59\x64\x2a\xf4\x47\xae\xb0\x96\xc6\xa2\x6d\x34\x5d\x82\xf2\x92\x51" "\x63\x33\x1b\x0e\x91\x57\x44\x1a\x9c\x61\xdd\x10\x51\xd3\xb9\x70\xf9\xac" "\x12\xf5\x97\x5c\xf1\xad\x4e\x45\xac\xef\x1a\x54\x92\x1c\x49\x2a\x77\xbc" "\xb1\x85\x8b\x68\x75\x8e\xd3\x39\x60\x8b\x8e\x43\xc7\x33\x21\x9f\x1f\x9e" "\x0b\x86\x78\x40\xf8\x21\xe0\x3b\xc0\xe8\xa4\x97\xc4\xd5\xdd\xe4\x36\x00" "\x00\x90\xa3\x97\x63\x7d\xed\xb2\xf3", 189); memcpy( (void*)0x200000000e00, "\x78\x9c\xec\xdd\x4b\x6f\x5c\xd5\x1d\x00\xf0\x73\xc7\x9e\x38\x2f\x1a\x87" "\x98\xc6\x4d\xd3\x24\x25\xa5\xb8\x8f\xd8\x24\x58\xa5\xbb\x1a\x29\x5d\xa0" "\x4a\xa8\x12\x9f\x00\xa5\x81\x86\x1a\xfa\x08\x5d\x80\x82\x94\xb0\xe8\xb6" "\x91\x10\x1f\xa0\x88\x7d\x17\x7d\x66\x81\x14\xb1\x4a\xc5\xa6\x55\xbf\x00" "\x62\xd5\x4d\x8a\x90\x68\x9b\x56\x82\xa9\x6c\x9f\x33\x1e\xff\x33\xa3\x3b" "\xe3\xd8\x1e\x8f\xe7\xf7\x93\xee\x9c\xb9\xf7\x7f\xee\x3d\xe7\xcc\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xc8\xde\x17" "\xf2\x35\xf3\x70\x2c\xb4\x6b\x26\xb4\xeb\x91\x30\xdf\x17\x43\xbb\xaa\xd9" "\x8d\xed\x8a\xfb\xcf\x4b\x7d\x8e\x87\xe9\xf1\x38\x49\xc9\x17\xde\xb6\xfb" "\x7e\x97\xe2\x7b\x11\xaf\xcb\x78\x34\xa7\x6f\xe6\xf4\x9d\x9c\xbe\x9f\xd3" "\x8f\xba\x94\x3b\x8e\xca\xe7\xb1\xd7\xf9\xff\xe5\xf3\x39\x9b\x9a\xd5\x0b" "\x57\x96\x2f\x3f\x91\xc7\xcb\xe7\xf4\xce\x44\x73\x6a\x65\xfa\xf9\x1d\xae" "\x37\xf0\xe0\xfa\xbd\xfe\x67\x36\x6d\xbc\xfe\xe7\x70\x7b\x7a\xb3\xd1\xb9" "\x5e\x38\xb2\x3e\xbd\xea\x5c\x2f\x4c\x87\xe9\x17\x7a\x4c\x7f\x32\x8f\x97" "\xdf\xb3\x1f\x4f\x1c\x58\x9d\x3e\x7f\xe9\xa7\xcb\x3f\xda\xea\xc6\xc3\x98" "\xbb\xfa\xda\xeb\x3f\x79\x7e\x79\xf9\xf2\x2f\x3c\xf1\xc4\x13\x4f\xda\x4f" "\x86\xbd\x66\x02\xb6\xdb\xc2\xab\x2f\xff\x6c\xe1\xea\x6b\xaf\x9f\xbb\xf2" "\xf2\xf3\x2f\x5e\x7e\xf1\xf2\x2b\xe7\x9f\xf8\xee\x77\x9e\x7c\xea\xa9\xc5" "\x85\xd5\xad\xfa\x85\xce\x6d\x7b\x60\x6f\x59\xff\xd1\x1f\x76\x4d\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x80\xbe\x55\x07\xba\x4f\xce\x69\xdd\xfd\x6d" "\xcb\xf5\xe4\xe5\xfa\xf4\x78\x7d\x3c\xa3\xa1\xbc\x6f\xe5\xd3\x50\xee\x63" "\x50\xae\xff\xec\x75\x5f\x97\x72\xfd\xe6\xd1\x1d\xa8\x23\x5b\x6f\x27\x2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\x67\x8c" "\xc7\xfe\x3f\x63\x3c\xf6\xff\x19\xe3\xb1\x7f\xad\x18\x8f\xfd\x7f\xc6\xd7" "\x33\xf6\xff\x19\xe3\xc7\xc3\x72\x63\xff\xa0\xb3\x35\xf1\x2f\xd5\xc4\x4f" "\xd4\xc4\xbf\x5c\x13\x3f\x59\x13\x8f\xff\xdf\x62\xfc\x4c\x3b\x7e\xa0\x6b" "\xfc\x54\xcd\xfc\xa7\x6b\xe2\x0f\xd7\xc4\x1f\xad\x89\x9f\xad\x89\x7f\xad" "\x26\xfe\x58\x4d\xfc\xf1\x9a\xf8\x5c\x4d\x7c\xaf\xfb\x6a\x4e\xc7\xb5\xfd" "\x30\xce\x62\xbf\x91\xbe\xff\x30\x3e\xca\xf1\x9f\x5e\xdf\xff\x99\x9a\x38" "\x30\xba\x62\xbf\xce\xf1\xfb\xfd\xf5\x9a\x38\x30\xba\xca\x79\x1e\xbe\xdf" "\x30\x86\xaa\xee\x77\xec\x88\xfb\xdb\xcb\x7e\xdc\x37\x73\xfa\x4e\x4e\xdf" "\xcf\xe9\x47\xdb\x56\x41\x76\xc2\x37\x72\xfa\xcd\x9c\x7e\x2b\xa7\xdf\xce" "\xe9\xb9\x9c\xce\xe7\x74\x21\xa7\xfa\x86\x1c\x6d\xbf\xfa\xc7\x89\x53\x37" "\xab\xf5\xf3\xfc\x8e\x84\x78\xbf\xe7\x93\xc6\xeb\x01\xe2\x7d\x62\xce\xf7" "\x59\x9f\x78\x7c\x6e\xd0\xf3\x59\x8f\xf7\x59\xce\x76\x95\xbf\xc9\xcb\x41" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x46\x46" "\x63\xf5\x71\x71\x71\xb6\x4a\xe9\xed\x5b\x6f\x5d\xfc\xd7\xcc\xf7\x7e\xb8" "\x32\xe5\x74\x3b\xc7\x99\xd5\xc7\xc9\x3c\xb6\x94\x52\x6a\xa6\x94\xaa\x3c" "\x3e\x19\x96\x77\x7d\x6a\x2d\xfd\xec\x93\x6b\x97\xba\xa5\x55\xba\xb0\xfa" "\x58\xc6\xd3\xb3\x77\xdb\xf3\x1e\x5a\x99\x3f\x9d\x49\xb7\xd3\x74\x7a\xee" "\xe3\xe3\x37\x5f\xfa\xe0\x99\xe5\xf7\x8e\xdd\x38\x76\xf1\x8d\xb9\x3b\xdb" "\xd3\x7a\x00\x00\x00\x18\x0f\xff\x0f\x00\x00\xff\xff\xe8\xe1\xe7\xa2", 3491); syz_mount_image(/*fs=*/0x200000000dc0, /*dir=*/0x200000000400, /*flags=MS_SYNCHRONOUS|MS_DIRSYNC*/ 0x90, /*opts=*/0x200000003280, /*chdir=*/1, /*size=*/0xda3, /*img=*/0x200000000e00); // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x200000000240, ".\000", 2); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000240ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; // ioctl$NILFS_IOCTL_CLEAN_SEGMENTS arguments: [ // fd: fd (resource) // cmd: const = 0x40786e88 (4 bytes) // arg: ptr[in, nilfs_ioctl_clean_segments_args] { // nilfs_ioctl_clean_segments_args { // argv0: nilfs_argv_typed[nilfs_vdesc, in, NILFS_VDESC_SIZE] { // v_base: nil // v_nmembs: len = 0x0 (4 bytes) // v_size: const = 0x40 (2 bytes) // v_flags: int16 = 0xd (2 bytes) // v_index: int64 = 0xe2 (8 bytes) // } // argv1: nilfs_argv_typed[nilfs_period, in, NILFS_PERIOD_SIZE] { // v_base: nil // v_nmembs: len = 0x0 (4 bytes) // v_size: const = 0x10 (2 bytes) // v_flags: int16 = 0x20c (2 bytes) // v_index: int64 = 0xfffffffffffffff8 (8 bytes) // } // argv2: nilfs_argv_typed[int64, in, 8] { // v_base: nil // v_nmembs: len = 0x0 (4 bytes) // v_size: const = 0x8 (2 bytes) // v_flags: int16 = 0x1 (2 bytes) // v_index: int64 = 0x2 (8 bytes) // } // argv3: nilfs_argv_typed[nilfs_bdesc, in, NILFS_BDESC_SIZE] { // v_base: nil // v_nmembs: len = 0x0 (4 bytes) // v_size: const = 0x28 (2 bytes) // v_flags: int16 = 0x0 (2 bytes) // v_index: int64 = 0xffffffffffffff2d (8 bytes) // } // argv4: nilfs_argv_typed[int64, in, 8] { // v_base: nil // v_nmembs: len = 0x0 (4 bytes) // v_size: const = 0x8 (2 bytes) // v_flags: int16 = 0x98f (2 bytes) // v_index: int64 = 0xffff (8 bytes) // } // } // } // ] *(uint64_t*)0x200000000640 = 0; *(uint32_t*)0x200000000648 = 0; *(uint16_t*)0x20000000064c = 0x40; *(uint16_t*)0x20000000064e = 0xd; *(uint64_t*)0x200000000650 = 0xe2; *(uint64_t*)0x200000000658 = 0; *(uint32_t*)0x200000000660 = 0; *(uint16_t*)0x200000000664 = 0x10; *(uint16_t*)0x200000000666 = 0x20c; *(uint64_t*)0x200000000668 = 0xfffffffffffffff8; *(uint64_t*)0x200000000670 = 0; *(uint32_t*)0x200000000678 = 0; *(uint16_t*)0x20000000067c = 8; *(uint16_t*)0x20000000067e = 1; *(uint64_t*)0x200000000680 = 2; *(uint64_t*)0x200000000688 = 0; *(uint32_t*)0x200000000690 = 0; *(uint16_t*)0x200000000694 = 0x28; *(uint16_t*)0x200000000696 = 0; *(uint64_t*)0x200000000698 = 0xffffffffffffff2d; *(uint64_t*)0x2000000006a0 = 0; *(uint32_t*)0x2000000006a8 = 0; *(uint16_t*)0x2000000006ac = 8; *(uint16_t*)0x2000000006ae = 0x98f; *(uint64_t*)0x2000000006b0 = 0xffff; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x40786e88, /*arg=*/0x200000000640ul); return 0; }