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