// https://syzkaller.appspot.com/bug?id=955ecdbb8a551201d370233b49ee9b5abe05354a // 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 4d 36 70 f9 ac // 12 f5 97 5c f1 ad 4e 08 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 = 0xdc4 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xdc4) // } // ] // 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\x4d\x36\x70\xf9\xac" "\x12\xf5\x97\x5c\xf1\xad\x4e\x08\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\x1e\x3b\xcf\xc6\x21" "\xa6\x71\xd3\x34\x49\x49\x29\xe9\x23\x36\x09\x51\xe9\xae\x46\x4a\x17\xa8" "\x12\xaa\xc4\x27\x40\x69\xa0\xa1\x86\x3e\x42\x17\xa0\x20\x25\x2c\xba\x6d" "\x24\xc4\x07\x28\x62\xdf\x45\x9f\x59\x20\x45\xac\x52\xb1\x69\xd5\x2f\x80" "\x58\x55\xaa\x52\x84\x44\xdb\x08\x09\xa6\xb2\x7d\xce\x78\xfc\xcf\x4c\xef" "\x8c\x63\x7b\x3c\x9e\xdf\x4f\x3a\x73\xe6\xde\x73\xee\x3d\xe7\xcc\xdc\xb9" "\x73\xdf\x27\x01\x63\xab\xb1\xf2\x7a\xe1\xc2\x5c\x95\xd2\x5b\xb7\xde\xbc" "\x78\xef\xe4\xe4\x7f\x97\xc7\x9c\x6c\xe7\x38\xb5\xf2\x3a\x99\x87\x16\x53" "\x4a\xcd\xf6\x74\x29\xcd\x84\xf9\x2d\x4e\xaf\xc6\x9f\x7d\x7c\xed\x52\x67" "\xfc\x79\x8e\xab\x74\x3e\x55\xa9\x6a\x8f\x4f\xcf\xdc\x6d\x4f\xbb\x3f\xa5" "\x74\x3d\x9d\x4a\xb7\xd3\x4c\x7a\xf6\xa3\xa3\x37\x5f\x7c\xff\xe9\xa5\x77" "\x8f\xdc\x38\x72\xf1\xf5\x33\x77\xb6\xa6\xf5\x00\x00\x30\x5e\xee\xfd\xe0" "\x9d\x9f\xff\xe5\xb1\xef\x5f\x3b\xfc\xe9\x6f\x4f\x2c\xa6\xe9\xf6\xf8\xb2" "\x7d\xbe\x98\x87\x0f\xe4\xed\xfe\xc5\x6a\x75\x38\x47\xed\xfd\x80\xaa\x23" "\xae\x3a\x86\x8b\xa9\x90\x6f\x32\x87\x46\xc8\x37\xd1\x25\x5f\x67\x39\xcd" "\x90\x6f\xb2\x47\xf9\x53\x61\xbe\xcd\x1e\xf9\xa6\x6b\xca\x9f\xe8\x18\xd7" "\xad\xdd\x30\xca\xd6\xf6\xe3\xab\xc6\xfc\xba\xe1\x46\x63\x7e\x7e\x75\x9f" "\x7c\xd9\x07\x13\x53\xd5\xfc\xcb\x57\x96\x9e\xbf\x3a\xa4\x8a\x02\x9b\xee" "\x93\x93\xf9\x10\x9f\x20\x08\x63\x17\x5a\x87\x86\xbd\x06\x02\x58\x15\xcf" "\x1b\xde\xe7\x7a\x3c\xb2\xf0\x60\xda\x73\x9b\xec\xaf\xfc\xbb\x4f\x35\xba" "\x4f\x0f\x9b\x60\xbb\x97\x7f\xe5\x8f\x56\xf9\xef\xdc\xb0\xc6\x61\xf3\xec" "\xd6\xa5\xa9\xb4\xab\xfc\x8e\x0e\xe4\xe1\x78\x1e\x61\x32\x4c\x37\xe8\xef" "\xbf\xcc\x2f\x9e\x8f\x68\xf6\x59\xcf\x5e\xe7\x11\x46\xe5\xfc\x42\xaf\x7a" "\x4e\x6c\x73\x3d\x36\xaa\x57\xfd\xe3\x72\xb1\x5b\x7d\x25\xc7\xe5\x73\x38" "\x11\xd2\x3b\x7f\x3f\xf1\x3b\x1d\x95\xef\x18\xe8\xee\x9e\xe3\xff\x82\x30" "\xb6\xa1\x35\xec\x15\x10\xb0\x63\xc5\xeb\xe6\x5a\x59\x49\x8f\xd7\xf5\xc5" "\xf4\xe9\x9a\xf4\x3d\x35\xe9\x7b\x6b\xd2\xf7\xd5\xa4\xef\xaf\x49\x87\x71" "\xf6\xbb\x57\x7e\x9d\x6e\x56\x6b\xfb\xf9\x71\x9f\x7e\xd0\xe3\x61\xe5\x38" "\xdb\xc1\x1c\x7f\x61\xc0\xfa\xc4\xe3\x91\x83\x96\x1f\xaf\xfb\x1d\xd4\x83" "\x96\x1f\xaf\x27\x86\x1d\xed\xcc\x7f\x8e\x7f\xf2\xcb\xdb\x7f\x8d\xd7\xff" "\x7f\x1e\xae\xff\x3f\x9d\xff\x4b\x67\xf2\x0a\xa2\x1c\x2f\x8c\xc7\xd5\xdb" "\xd7\xfe\x87\x1b\x83\x1b\x3d\xf2\x3d\x14\xaa\x73\xb0\x4b\xfe\x95\xf7\xb3" "\xeb\xf3\x55\xb3\x6b\xf3\x49\x1d\xeb\x99\xfb\xea\x31\xb7\x7e\xba\x43\xbd" "\xf2\x1d\x5f\x9f\x6f\x26\xe4\xdb\x97\xb7\x45\xf6\x84\xfa\xc6\xed\x93\x7d" "\x61\xba\xb2\xfd\x51\xd6\xab\xe5\xf3\x9a\x0c\xed\x6d\x86\x76\x4c\x85\x7a" "\x94\x6f\xe6\x70\x8e\xf7\x84\xf6\x1c\xee\xd5\xae\x70\x20\x7b\x2a\xe4\x6b" "\xe6\x70\x24\xb4\x6b\x36\xb4\xeb\xe1\x30\xdd\x17\x43\xbb\xaa\xb9\xf5\xed" "\x8a\xc7\xcf\x4b\x7d\x8e\x86\xf1\xf1\x3c\x49\xc9\x17\xbe\xb6\xfb\xfe\x97" "\xe2\x77\x11\xef\xcb\x78\x24\xc7\x6f\xe4\xf8\xed\x1c\xbf\x97\xe3\x0f\xbb" "\x94\x3b\x8e\xca\xf2\xd8\xeb\xfa\xff\xb2\x7c\xce\xa5\x66\xf5\xfc\x95\xa5" "\xcb\x8f\xe7\xe1\xb2\x9c\xde\x99\x68\x4e\x2f\x8f\x3f\xb7\xcd\xf5\x06\x1e" "\x5c\xbf\xf7\xff\xcc\xa5\xf5\xf7\xff\x1c\x68\x8f\x6f\x36\x3a\xd7\x0b\x87" "\xd6\xc6\x57\x9d\xeb\x85\x99\x30\xfe\x7c\x8f\xf1\x4f\xe4\xe1\xf2\x7f\xf6" "\xe3\x89\xbd\x2b\xe3\xe7\x2f\xfd\x74\xe9\x47\x9b\xdd\x78\x18\x73\x57\x5f" "\x7d\xed\x27\xcf\x2d\x2d\x5d\xfe\x85\x37\xde\xb4\xdf\x4c\x6d\x7b\xa1\xcb" "\xfb\x0b\x3b\xa3\xed\xde\xac\xbe\x19\xf6\x9a\x09\xd8\x6a\x0b\xaf\xbc\xf4" "\xb3\x85\xab\xaf\xbe\x76\xf6\xca\x4b\xcf\xbd\x70\xf9\x85\xcb\x2f\x9f\x7b" "\xfc\xbb\xdf\x79\xe2\xc9\x27\x2f\x2c\xac\x6c\xd5\x2f\x74\x6e\xdb\x03\xbb" "\xcb\xda\x9f\xfe\xb0\x6b\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf4\xad" "\xda\xdb\x7d\x74\x8e\xeb\x9e\x6f\x5b\xee\x27\x2f\xf7\xa7\xc7\xfb\xe3\x19" "\x0d\xe5\x7b\x2b\x4b\x43\x79\x8e\x41\xb9\xff\xb3\xd7\x73\x5d\xca\xfd\x9b" "\x87\xb7\xa1\x8e\x6c\xbe\xed\xb8\x9d\x68\xd8\x6d\x04\xba\xfb\x97\xe7\xff" "\x0a\xc2\xd8\x86\x56\xcb\x53\xfc\x81\x9d\x61\xd8\xfd\xff\x95\xe7\x1e\x96" "\xf8\xc0\xd9\xbf\x1f\x5e\x0e\x25\xdb\xdd\xa7\xd6\xaf\x2f\xe3\xf3\x0b\xe1" "\x41\xec\xf4\xfe\xe7\xb6\xbc\xfc\x72\x20\x6a\x5c\xdb\xbf\xcd\xfd\xff\xb5" "\xfb\xbf\xea\x7b\xfd\x17\x7a\xcc\x9a\xd9\x58\xb9\xbf\xbf\xb7\xf7\x6f\x1d" "\xc5\xa6\x63\xfd\x96\x1f\xdb\x5f\x9e\x03\x3b\x3b\x58\xf9\x7f\xc8\xe5\x97" "\xd6\x3c\x9a\xfa\x2b\xbf\xf5\x9b\x50\x7e\x7c\x50\x69\x9f\xfe\x18\xca\xdf" "\xd7\x67\xf9\xf7\xb5\xff\xf8\xc6\xca\xff\x53\x2e\xbf\x7c\x6c\x67\x4e\xf7" "\x5b\xfe\x6a\x8d\xab\xc6\xfa\x7a\xc4\xe3\xc6\xe5\x39\x80\xf1\xb8\x71\xf1" "\xe7\xd0\xfe\xf2\x6c\xbf\x81\xdb\xbf\xc1\x8e\xda\x6e\xe5\xf2\x61\x9c\x8d" "\x4a\x3f\x93\x83\x1a\x95\xfe\x3f\x7b\x29\xf3\x2d\xeb\xc1\xbc\x7a\x6e\x9f" "\xa7\x2b\xcf\xdf\x8e\xfd\x1d\x0c\x5a\xff\xf2\xdc\xef\xf2\x3f\xf0\x70\x98" "\x7f\x55\xf3\xff\xa6\xff\xcf\xd1\x56\xd7\xff\x67\x59\xfe\x16\xf4\xff\x09" "\xbb\xce\x07\xce\xff\xfd\xff\x70\x70\x07\xd4\x61\x24\xc2\x3f\x77\x40\x1d" "\x86\x19\x3e\xdd\x01\x75\x18\x3c\xb4\x5a\xad\xa1\x76\x7d\x32\xae\xfd\xae" "\xec\x14\xc3\xfe\xfc\x87\xbd\x0d\x39\xec\xf2\x87\xfd\xf9\xd7\x89\xfd\x7f" "\xc6\xfd\xa5\xd8\xff\x67\x4c\x8f\xfd\x7f\xc6\xf4\xd8\xff\x67\x4c\x8f\xfd" "\x6b\xc5\xf4\xd8\xff\x67\xfc\x3c\x63\xff\x9f\x31\xfd\x68\x98\x6f\xec\x1f" "\x74\xae\x26\xfd\x4b\x35\xe9\xc7\x6a\xd2\xbf\x5c\x93\x7e\xbc\x26\x3d\xee" "\xbf\xc5\xf4\x53\x35\xe9\x27\x6a\xd2\x4f\xd6\xa4\x3f\x54\x93\xfe\x48\x4d" "\xfa\xe9\xf5\xe9\x53\x25\x4b\x49\xff\x5a\xcd\xf4\x8f\xd6\xa4\x3f\x56\x93" "\x7e\xa6\x26\x7d\xb7\xfb\x6a\x8e\xc7\xb5\xfd\x30\xce\x62\xbf\x91\x7e\xff" "\x30\x3e\xca\xf9\x9f\x5e\xbf\xff\xd9\x9a\x74\x60\x74\xc5\x7e\x9d\xe3\xef" "\xfb\xeb\x35\xe9\xc0\xe8\x2a\xd7\x79\xf8\x7d\xc3\x18\xaa\xba\x3f\xb1\x23" "\x1e\x6f\x2f\xc7\x71\xdf\xc8\xf1\xdb\x39\x7e\x2f\xc7\x1f\x6e\x59\x05\xd9" "\x0e\xdf\xc8\xf1\x37\x73\xfc\xad\x1c\x7f\x3b\xc7\x67\x73\x3c\x9f\xe3\x85" "\x1c\xeb\x1b\x72\xb4\xfd\xea\x1f\xc7\x4e\xdc\xac\xd6\xae\xf3\x3b\xd4\x4e" "\x69\xad\xbc\xed\xf7\x7a\xd2\x78\x3f\x40\x7c\x4e\xcc\xb9\x3e\xeb\x13\xcf" "\xcf\x0d\x7a\x3d\xeb\xd1\x3e\xcb\xd9\xaa\xf2\x37\x78\x3b\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" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\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\xc8\x68\xac\xbc\x5e" "\xb8\x30\x57\xa5\xf4\xd6\xad\x37\x2f\xfe\x7b\xf6\x7b\x3f\x5c\x1e\x73\xb2" "\x9d\xe3\xd4\xca\xeb\x64\x1e\x5a\x4c\x29\x35\x53\x4a\x55\x1e\x9e\x0c\xf3" "\xbb\x3e\xbd\x1a\x7f\xf6\xf1\xb5\x4b\xdd\xe2\x2a\x9d\x5f\x79\x2d\xc3\xe9" "\x99\xbb\xed\x69\xf7\x2f\x4f\x9f\x4e\xa5\xdb\x69\x26\x3d\xfb\xd1\xd1\x9b" "\x2f\xbe\xff\xf4\xd2\xbb\x47\x6e\x1c\xb9\xf8\xfa\x99\x3b\x5b\xd3\x7a\x00" "\x00\x00\x18\x0f\xff\x0b\x00\x00\xff\xff\x54\xf7\xe0\xb3", 3524); syz_mount_image(/*fs=*/0x200000000dc0, /*dir=*/0x200000000400, /*flags=MS_SYNCHRONOUS|MS_DIRSYNC*/ 0x90, /*opts=*/0x200000003280, /*chdir=*/1, /*size=*/0xdc4, /*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 = 0xfffe (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 = 0xfffe; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x40786e88, /*arg=*/0x200000000640ul); return 0; }