// https://syzkaller.appspot.com/bug?id=04e95388a1b71c0e15b667b54b34ad3a60a9d933 // 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 #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% 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; } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$hfs arguments: [ // fs: ptr[in, buffer] { // buffer: {68 66 73 00} (length 0x4) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x3000840 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {64 69 72 5f 75 6d 61 73 6b 3d 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 34 2c 66 69 6c 65 5f 75 6d 61 73 6b 3d // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 31 33 34 // 30 2c 69 6f 63 68 61 72 73 65 74 3d 6d 61 63 74 75 72 6b 69 73 68 // 2c 63 6f 64 65 70 61 67 65 3d 69 73 6f 38 38 35 39 2d 36 2c 63 72 // 65 61 74 6f 72 3d 4d dd 71 75 2c 00 ea ce 69 1a f6 ae 10 46 9d a9 // b0 1b ac eb 6a 94 86 a6 be 7f 83 42 90 52 da b3 e6 e5 e2 87 ba 3d // 79 e8 09 94 5e 43 61 c0 01 9a 8e d8 8a e1 c6 c5 41 bb 9a 96 6c 0e // 4d 7b de 2f 8e 3a dd 0a f5 a9 c7 4c 52 0f 88 93 81 fb cf 57 3e 00 // 00 00 00 00} (length 0xc4) // } // } // } // chdir: int8 = 0x11 (1 bytes) // size: len = 0x2e1 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x2e1) // } // ] // returns fd_dir memcpy((void*)0x200000000480, "hfs\000", 4); memcpy((void*)0x200000000140, "./file1\000", 8); memcpy( (void*)0x2000000004c0, "\x64\x69\x72\x5f\x75\x6d\x61\x73\x6b\x3d\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x30\x34\x2c\x66\x69\x6c\x65\x5f\x75\x6d\x61\x73" "\x6b\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x31\x33\x34\x30\x2c\x69\x6f\x63\x68\x61\x72\x73\x65\x74\x3d" "\x6d\x61\x63\x74\x75\x72\x6b\x69\x73\x68\x2c\x63\x6f\x64\x65\x70\x61\x67" "\x65\x3d\x69\x73\x6f\x38\x38\x35\x39\x2d\x36\x2c\x63\x72\x65\x61\x74\x6f" "\x72\x3d\x4d\xdd\x71\x75\x2c\x00\xea\xce\x69\x1a\xf6\xae\x10\x46\x9d\xa9" "\xb0\x1b\xac\xeb\x6a\x94\x86\xa6\xbe\x7f\x83\x42\x90\x52\xda\xb3\xe6\xe5" "\xe2\x87\xba\x3d\x79\xe8\x09\x94\x5e\x43\x61\xc0\x01\x9a\x8e\xd8\x8a\xe1" "\xc6\xc5\x41\xbb\x9a\x96\x6c\x0e\x4d\x7b\xde\x2f\x8e\x3a\xdd\x0a\xf5\xa9" "\xc7\x4c\x52\x0f\x88\x93\x81\xfb\xcf\x57\x3e\x00\x00\x00\x00\x00", 196); memcpy( (void*)0x200000000ac0, "\x78\x9c\xec\xdd\x4f\x6b\x13\x4f\x1c\xc7\xf1\xcf\x6c\xd2\x26\xfd\xb5\xf4" "\xb7\xda\x8a\xe0\x41\xa4\x1a\xd0\x8b\x68\xbd\x88\x97\x88\xe4\x41\x78\x12" "\xb5\x49\xa1\xb8\x54\xd4\x8a\x7f\x4e\x55\x3c\x89\xd8\xbb\x77\x9f\x82\x8f" "\x41\xbc\x28\x3e\x01\x3d\x79\x12\xcf\xf5\x20\x2b\x33\x3b\xf9\xb3\x49\x36" "\x49\xa5\x9b\x6d\xf5\xfd\x02\xcb\x66\x67\x66\xe7\x3b\x9d\x9d\x9d\x99\x80" "\x5d\x01\xf8\x67\x5d\x6b\x7c\x79\x7b\xe9\x9b\xfd\x67\xa4\x92\x4a\xd2\xcb" "\x2b\x52\x20\xa9\x2a\x95\x25\x1d\xd3\xf1\xea\xc3\xcd\xad\x8d\xad\xa8\xd5" "\x1c\x75\xa1\x92\x4e\x56\x92\x52\x46\x49\x49\x33\x90\x67\x6d\xb3\x35\xac" "\x68\x55\xbe\x84\x17\xda\x4f\x65\x2d\xf4\x9e\x43\x3e\xe2\x38\xbe\xfa\xb5" "\xe8\x20\x50\x38\x37\xfa\xe3\x52\xfa\xe4\x29\xf7\x24\xa8\xf8\xd1\xe9\x12" "\xab\x05\xc5\x97\xe5\xd9\xde\x8b\xfc\x98\x93\xb4\x9d\x47\x30\x87\x88\xd9" "\xd5\xae\x1e\x6b\xb1\xe8\x38\x00\x00\xc5\x32\xc9\xfc\x1e\xf8\x79\x7e\xc1" "\xaf\xdf\x83\x40\xaa\xf9\x69\xdf\xad\xc6\x0f\xda\xfc\xff\xa7\x76\x8b\x0e" "\x20\x77\xf1\xc8\xd4\x9e\xf9\xdf\xf5\x6b\x6c\x6c\xbf\xff\xef\x92\xba\xfb" "\x3d\xb7\x85\xb3\xe9\x41\x7b\x97\x38\x49\xcd\x33\x7d\x9f\x67\x95\xdc\x59" "\xa9\xd5\xa5\x19\xb7\xab\x74\xb1\x04\x73\xeb\x1b\x51\xeb\xfc\xda\xdd\xa8" "\x19\xe8\xb9\xea\x5e\x4f\xb6\x65\xf7\xb3\x99\xdc\xba\x6d\x63\xa2\x5d\x19" "\xb2\x37\x1d\xa1\x73\xb5\xb9\xcc\x2c\x66\xf8\x8a\x72\xde\xb5\x61\xc6\xb6" "\x61\x35\x89\xff\x91\xa4\x54\xfc\x4b\x23\x6b\xcc\x81\xf9\x60\x3e\x99\x1b" "\x26\xd4\x1b\x35\x3b\xeb\xbf\x72\x6c\x6c\x37\xb9\x9e\x0a\xfb\x7a\x2a\x89" "\xff\x42\xf6\x15\x5d\x2b\x43\x9b\x4b\xfe\xb1\x51\xaf\xd7\x83\x54\x96\x23" "\xae\x92\x13\xbe\x06\x6f\x4c\x2b\xab\x2a\x65\xd5\x38\xeb\xaf\x99\xfa\x82" "\x20\x1c\x17\xa7\x2b\x75\xb4\xaf\x54\xd2\xba\x8b\x63\x4a\x2d\x0d\x2d\xb5" "\xda\xfe\x94\x51\x6a\x39\x55\xca\xb6\x66\x7d\x23\x7a\x9f\x5d\xd5\x54\x98" "\xd7\xe6\xba\x59\xd1\x77\xbd\x53\xa3\x67\xfd\x1f\xd8\xf8\x6a\x1a\x39\x32" "\xbb\xa3\xc6\xd4\x92\xa9\xc0\xfd\xc6\xed\xe8\x4c\xf7\x6c\x8f\x72\xcd\xa7" "\xf4\xcd\x1c\x83\xc3\xa5\xf3\x5b\xac\x64\x85\xfe\x73\xf4\x33\x0d\x7b\xf0" "\x4a\xb7\x75\x59\x8b\x0f\x9e\x3c\xbd\x53\x8a\xa2\xd6\x7d\x7b\x70\x2b\xb2" "\xb7\xab\x3b\xe8\x9c\xb9\xb7\xe0\x0f\xa2\xd6\xcc\x0b\xa9\x37\xe9\xa0\x1c" "\x68\xbb\x7b\xa6\xa2\xd8\x19\xc8\xdc\x9e\x94\xa6\x19\xd8\xb9\x7d\xbd\xa0" "\x7d\x7e\x8c\xcd\x6c\x47\x59\xee\xed\xb2\xcf\x81\x03\xd0\xef\xc5\x1d\x34" "\x3e\xe6\x78\x23\xfd\x8a\xe3\x78\x8a\xcd\xd9\xf1\x03\xa3\x3f\xa9\xc0\x67" "\x13\xa6\xa6\xdb\xe9\x45\x47\x82\x82\xd8\x75\x97\x49\xf6\x7f\xdd\xfd\x4a" "\x39\x59\xec\xd9\x1f\xe1\xd0\x75\xfa\x84\x5f\x04\xf8\x2b\xc6\x76\x8d\xdd" "\xd9\xc1\x75\xcb\xc6\xc9\x8a\x5c\xd2\x7f\x7b\xda\xc1\xcd\x67\xef\xe0\x06" "\xf7\x5c\x03\x7b\x46\xb7\xe7\x3a\x7d\x56\x3a\x33\x79\x8d\xa1\x8f\xf3\x2f" "\x61\x1a\xfa\xac\x9b\x7c\xff\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x70\xd8\x4c\xe3\xff\x4b\x14\xdd\x46\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\xbb\xce\xfb\x7f\xd5" "\x7e\xff\xaf\x26\x7b\xff\x6f\xff\xab\x58\x4a\xc9\x9f\x04\xdf\x97\xf7\xff" "\xee\x6c\x8a\xf7\xff\x02\xf9\xfb\x1d\x00\x00\xff\xff\xf5\xd6\x79\x77", 737); syz_mount_image( /*fs=*/0x200000000480, /*dir=*/0x200000000140, /*flags=MS_LAZYTIME|MS_STRICTATIME|MS_NODIRATIME|MS_MANDLOCK*/ 0x3000840, /*opts=*/0x2000000004c0, /*chdir=*/0x11, /*size=*/0x2e1, /*img=*/0x200000000ac0); // mkdir arguments: [ // path: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // mode: open_mode = 0x0 (8 bytes) // ] memcpy((void*)0x200000000300, "./bus\000", 6); syscall(__NR_mkdir, /*path=*/0x200000000300ul, /*mode=*/0ul); // mkdirat arguments: [ // fd: fd_dir (resource) // path: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // mode: open_mode = 0x0 (8 bytes) // ] memcpy((void*)0x200000000340, "./file1\000", 8); syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000340ul, /*mode=*/0ul); // mkdirat arguments: [ // fd: fd_dir (resource) // path: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // mode: open_mode = 0x0 (8 bytes) // ] memcpy((void*)0x200000000340, "./file1\000", 8); syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000340ul, /*mode=*/0ul); // mount$overlay arguments: [ // src: const = 0x0 (8 bytes) // dst: nil // type: nil // flags: mount_flags = 0x0 (8 bytes) // opts: nil // ] syscall(__NR_mount, /*src=*/0ul, /*dst=*/0ul, /*type=*/0ul, /*flags=*/0ul, /*opts=*/0ul); // chdir arguments: [ // dir: nil // ] syscall(__NR_chdir, /*dir=*/0ul); // mkdirat arguments: [ // fd: fd_dir (resource) // path: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // mode: open_mode = 0x0 (8 bytes) // ] memcpy((void*)0x200000000340, "./file1\000", 8); syscall(__NR_mkdirat, /*fd=*/0xffffff9c, /*path=*/0x200000000340ul, /*mode=*/0ul); // openat$dir arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: nil // flags: open_flags = 0x0 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd_dir res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; // mknodat$loop arguments: [ // dirfd: fd_dir (resource) // file: nil // mode: mknod_mode = 0x0 (8 bytes) // dev: proc = 0x0 (4 bytes) // ] syscall(__NR_mknodat, /*dirfd=*/r[0], /*file=*/0ul, /*mode=*/0ul, /*dev=*/0x700); // writev arguments: [ // fd: fd (resource) // vec: nil // vlen: len = 0x0 (8 bytes) // ] syscall(__NR_writev, /*fd=*/(intptr_t)-1, /*vec=*/0ul, /*vlen=*/0ul); // writev arguments: [ // fd: fd (resource) // vec: nil // vlen: len = 0x0 (8 bytes) // ] syscall(__NR_writev, /*fd=*/(intptr_t)-1, /*vec=*/0ul, /*vlen=*/0ul); // syz_mount_image$romfs arguments: [ // fs: ptr[in, buffer] { // buffer: {72 6f 6d 66 73 00} (length 0x6) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // } // } // chdir: int8 = 0x1 (1 bytes) // size: len = 0x140 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x140) // } // ] // returns fd_dir memcpy((void*)0x200000000140, "romfs\000", 6); memcpy((void*)0x2000000001c0, "./file0\000", 8); memcpy( (void*)0x200000000440, "\x78\x9c\xec\xda\xbf\x4a\xc3\x50\x14\x06\xf0\xa3\x16\x84\x3e\x82\x53\x21" "\x01\xab\x90\xff\x5a\x07\x77\x41\x70\xf2\x09\x0c\x6d\x92\x06\x6f\xbc\x25" "\x11\xa4\x9d\x8a\xab\x83\xe2\x70\x1d\x1d\x5d\xdd\x44\x37\x1f\x21\xb3\x4f" "\xa0\x6f\xe0\x74\x25\x6d\x6a\x6d\xee\x28\xd5\x42\xbf\xdf\x72\x0f\x3d\x97" "\xaf\x49\x86\x33\x1d\x23\xe5\x89\x13\x66\x06\xd1\xd6\xf0\xf6\xf8\x7d\x35" "\xe5\x49\xa3\xe5\xed\xb5\x43\x27\xf4\x69\xec\x90\x88\x1a\x45\x91\x4b\x79" "\x67\x92\xe2\xe4\xbb\x9f\xcb\xa1\xa9\x5c\xd0\x5e\xca\xb3\x19\x89\xa3\xe7" "\x30\x66\x81\xab\x66\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x2c\x09\xed\xa3\x2c\xea\x5d\xc1\x1f\xc2\x98\x05\xce\x8f" "\x6e\xd6\x1f\x9c\xfa\x8c\x05\x69\x36\xf9\x45\xa7\x72\x47\x87\xb6\xef\xf9" "\x7e\x71\xdf\x9b\xc9\x6b\xd6\x88\xf4\xd1\xfe\x4e\x2c\x0e\x2e\x8b\xbe\x3d" "\xd3\xd7\x27\x49\x9b\x5d\xc1\x57\xaa\xff\x67\x9d\x27\x3d\x2b\xeb\x0f\x8c" "\x38\xf1\xa3\x20\x0a\xce\x5c\xd7\x6b\xd9\x3b\xb6\xbd\xeb\x5a\xa3\x2c\xab" "\x9a\xa8\xdf\x94\xcf\x44\xb9\x7c\xea\xa9\xfb\x44\xfa\xe3\x74\x9f\xe8\xcd" "\x56\xf7\x89\xa8\x3e\x3e\x6a\x1b\xb1\xb8\xbe\xa8\xa6\x4f\xdf\x1f\xc5\xbc" "\x8a\x2b\x9a\x43\xf2\xa7\x94\xf2\x77\x39\x72\x6d\x41\xbe\x0f\x8a\x45\x2c" "\xaa\xf3\x83\x3a\xeb\x9e\xf6\x5a\xcc\x0f\xb3\xcd\x59\xe7\x0f\xe7\x87\x32" "\xd1\x00\xfe\xc9\x57\x00\x00\x00\xff\xff\x03\xf7\x3a\x52", 320); syz_mount_image(/*fs=*/0x200000000140, /*dir=*/0x2000000001c0, /*flags=*/0, /*opts=*/0x2000000003c0, /*chdir=*/1, /*size=*/0x140, /*img=*/0x200000000440); // openat$smackfs_ambient arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: nil // flags: const = 0x2 (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd_smackfs_label syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0ul, /*flags=*/2, /*mode=*/0); // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x1810754 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // fs_opt_elem[ext4_options] { // elem: union ext4_options { // jqfmt_vfsold: buffer: {6a 71 66 6d 74 3d 76 66 73 6f 6c 64} // (length 0xc) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // errors_continue: buffer: {65 72 72 6f 72 73 3d 63 6f 6e 74 69 // 6e 75 65} (length 0xf) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // usrquota: buffer: {75 73 72 71 75 6f 74 61} (length 0x8) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // prjquota: buffer: {70 72 6a 71 75 6f 74 61} (length 0x8) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // usrquota: buffer: {75 73 72 71 75 6f 74 61} (length 0x8) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // resuid: fs_opt["resuid", fmt[hex, uid]] { // name: buffer: {72 65 73 75 69 64} (length 0x6) // eq: const = 0x3d (1 bytes) // val: uid (resource) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // usrjquota: buffer: {75 73 72 6a 71 75 6f 74 61 3d} (length // 0xa) // } // comma: const = 0x5 (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // min_batch_time: fs_opt["min_batch_time", fmt[hex, int32]] { // name: buffer: {6d 69 6e 5f 62 61 74 63 68 5f 74 69 6d 65} // (length 0xe) eq: const = 0x3d (1 bytes) val: int32 = // 0xffffffff (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nodiscard: buffer: {6e 6f 64 69 73 63 61 72 64} (length 0x9) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // test_dummy_encryption: buffer: {74 65 73 74 5f 64 75 6d 6d 79 // 5f 65 6e 63 72 79 70 74 69 6f 6e} (length 0x15) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0xff (1 bytes) // size: len = 0x46e (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x46e) // } // ] // returns fd_dir memcpy((void*)0x200000000140, "ext4\000", 5); memcpy((void*)0x200000000080, "./file0\000", 8); memcpy((void*)0x2000000001c0, "jqfmt=vfsold", 12); *(uint8_t*)0x2000000001cc = 0x2c; memcpy((void*)0x2000000001cd, "errors=continue", 15); *(uint8_t*)0x2000000001dc = 0x2c; memcpy((void*)0x2000000001dd, "usrquota", 8); *(uint8_t*)0x2000000001e5 = 0x2c; memcpy((void*)0x2000000001e6, "prjquota", 8); *(uint8_t*)0x2000000001ee = 0x2c; memcpy((void*)0x2000000001ef, "usrquota", 8); *(uint8_t*)0x2000000001f7 = 0x2c; memcpy((void*)0x2000000001f8, "resuid", 6); *(uint8_t*)0x2000000001fe = 0x3d; sprintf((char*)0x2000000001ff, "0x%016llx", (long long)0xee00); *(uint8_t*)0x200000000211 = 0x2c; memcpy((void*)0x200000000212, "usrjquota=", 10); *(uint8_t*)0x20000000021c = 5; memcpy((void*)0x20000000021d, "min_batch_time", 14); *(uint8_t*)0x20000000022b = 0x3d; sprintf((char*)0x20000000022c, "0x%016llx", (long long)0xffffffff); *(uint8_t*)0x20000000023e = 0x2c; memcpy((void*)0x20000000023f, "nodiscard", 9); *(uint8_t*)0x200000000248 = 0x2c; memcpy((void*)0x200000000249, "test_dummy_encryption", 21); *(uint8_t*)0x20000000025e = 0x2c; *(uint8_t*)0x20000000025f = 0; memcpy( (void*)0x200000000e40, "\x78\x9c\xec\xdb\xcd\x6f\x14\xe5\x1f\x00\xf0\xef\xcc\x6e\xcb\xdb\x8f\x5f" "\x2b\x22\x0a\x82\x34\xa2\xb1\xf1\xa5\xa5\x05\x95\x83\x17\x8d\x26\x1e\x34" "\x31\xd1\x03\x1e\x6b\x5b\x08\xb2\x50\x43\x6b\x22\x84\x68\x35\x06\x8f\x86" "\xc4\xbb\xf1\x68\xe2\x5f\xe0\xc9\x93\x51\x4f\x26\x5e\xf5\x6e\x48\x88\x12" "\x13\xd0\x98\xb0\x66\x66\x67\xda\xee\xb2\x5b\x0a\xdd\xb2\x84\xfd\x7c\x92" "\x69\x9f\x67\xe7\xd9\x99\xe7\xbb\xf3\x3c\x33\xcf\xcc\xb3\x1b\x40\xdf\x1a" "\xc9\xfe\x24\x11\xff\x8b\x88\x5f\x23\x62\xa8\x91\x6d\x2e\x30\xd2\xf8\x77" "\xed\xca\xf9\xe9\xbf\xaf\x9c\x9f\x4e\xa2\x5e\x7f\xf3\x8f\xc1\xbc\xdc\xd5" "\x2b\xe7\xa7\xcb\xa2\xe5\xfb\xb6\x15\x99\xd1\x34\x22\xfd\x34\x29\x76\xd2" "\x6c\xfe\xec\xb9\x93\x53\xb5\xda\xec\x99\x22\x3f\xbe\x70\xea\xbd\xf1\xf9" "\xb3\xe7\x9e\x39\x71\x6a\xea\xf8\xec\xf1\xd9\xd3\x93\x47\x8e\x1c\x3e\x34" "\xf1\xfc\x73\x93\xcf\x76\x25\xce\x2c\xbe\xab\x7b\x3e\x9c\xdb\xbb\xfb\xd5" "\xb7\x2f\xbe\x3e\x7d\xf4\xe2\x3b\x3f\x7e\x93\xd5\x77\xd7\xbe\xc6\xfa\x95" "\x71\x74\xcb\x48\x16\xf8\x9f\xf5\x5c\xeb\xba\xc7\xbb\xbd\xb3\x1e\xbb\x5e" "\x5f\x8e\x33\xa9\xf6\xba\x36\xac\x55\x25\x22\xb2\xc3\x35\x90\xf7\xff\xa1" "\xa8\xc4\xf2\xc1\x1b\x8a\x57\x3e\xe9\x69\xe5\x80\x0d\x95\x9d\xb3\x37\xb5" "\x79\xb9\xf8\xbf\x58\x07\xee\x61\x49\xf4\xba\x06\x40\x6f\x94\x17\xfc\xec" "\xfe\xb7\x5c\xee\xe0\xf0\xa3\xe7\x2e\xbf\xd8\xb8\x01\xca\xe2\xbe\x56\x2c" "\x8d\x35\xd5\x48\x8b\x32\x03\x1b\xb8\xff\x91\x88\x38\xba\xf8\xcf\x97\xd9" "\x12\x2d\xcf\x21\x96\x8e\xcf\xe0\x06\x56\x00\x00\xe8\x3b\xdf\x65\xe3\x9f" "\xa7\xdb\x8d\xff\xd2\xd8\xb5\xa2\xdc\xff\x8b\xb9\xa1\xe1\x88\xb8\x2f\x22" "\x76\x44\xc4\xfd\x11\xb1\x33\x22\x1e\x88\xc8\xcb\x3e\x18\x11\x0f\xdd\xe2" "\xfe\x5b\xa7\x86\x6e\x1c\x7f\xa6\x97\x6e\x2b\xb0\x35\xca\xc6\x7f\x2f\x14" "\x73\x5b\xcd\xe3\xbf\x72\xf4\x17\xc3\x95\x22\xb7\x3d\x8f\x7f\x20\x39\x76" "\xa2\x36\x7b\xb0\xf8\x4c\x46\x63\x60\x53\x96\x9f\x68\xb7\xf1\x72\x13\x2f" "\xff\xf2\x79\xa7\xfd\xaf\x1c\xff\x65\x4b\xb6\xff\x72\x2c\x58\x6c\xe4\x52" "\xb5\xe5\x01\xdd\xcc\xd4\xc2\x54\xb7\x06\xa5\x97\x3f\x8e\xd8\x53\x6d\x17" "\x7f\xb2\x34\x13\x90\x44\xc4\xee\x88\xd8\xb3\xe6\xad\x2e\x46\xf1\xf1\xe4" "\x4e\x3c\xf9\xf5\xde\x4e\x25\x6f\x1e\xff\x2a\xba\x30\xcf\x54\xff\x2a\xe2" "\x89\xc6\xf1\x5f\x8c\x96\xf8\x4b\xc9\xea\xf3\x93\xe3\x9b\xa3\x36\x7b\x70" "\xbc\x6c\x15\x37\xfa\xe9\xe7\x0b\x6f\x74\xda\x7f\xdb\xf8\xaf\x6f\x5f\x7f" "\x60\x6b\x94\x1d\xff\xad\xcd\xed\x7f\x69\x5d\x25\xff\x3b\xf4\x57\xb2\x72" "\xbe\x76\x3e\x6e\xf9\x86\xe4\xc2\x6f\x9f\x75\xbc\xa7\xac\xde\x66\xfb\x1f" "\x4c\xde\xca\xe7\x74\xcb\x9a\x7c\x30\xb5\xb0\x70\x66\x22\x62\x30\x79\x2d" "\xa2\xf5\xf5\xc9\xe5\xf7\x96\xf9\xb2\x7c\x16\xff\xe8\x81\xf6\xfd\x7f\x47" "\xf1\x9e\x2c\xfe\x87\x23\x22\x6b\xc4\xfb\x22\xe2\x91\x88\xd8\x1f\x11\xff" "\x16\xf7\xd0\x8f\x46\xc4\x81\x55\xe2\xff\xe1\xa5\xc7\xde\xed\xb4\x6e\x5d" "\xed\x3f\x62\xcb\x1a\xcb\x75\x94\xc5\x3f\xd3\xf6\xfc\xb7\xd4\xfe\x87\x9b" "\x8f\xff\xad\x27\x2a\x27\xbf\xff\xf6\xf6\xe3\xcf\x8e\xff\xe1\x3c\x35\x5a" "\xbc\x92\x9f\xff\x6e\xa2\x73\x75\x36\x17\x25\x96\x5b\x33\x00\x00\x00\xdc" "\xeb\xd2\xfc\xbb\xf1\x49\x3a\xb6\x94\x4e\xd3\xb1\xb1\xc6\x77\xf8\x77\xc6" "\xd6\xb4\x36\x37\xbf\xf0\xd4\xb1\xb9\xf7\x4f\xcf\x34\xbe\x43\x3f\x1c\x03" "\x69\xf9\xa4\x6b\x68\xc5\xf3\xd0\x89\x64\xb1\xd8\x62\x23\x3f\x59\x3c\x2b" "\x2e\xd7\x1f\x2a\x9e\x1b\x7f\x51\xd9\x92\xe7\xc7\xa6\xe7\x6a\x33\x3d\x8e" "\x1d\xfa\xdd\xb6\xe6\xfe\xbf\xbf\xec\xff\x99\xdf\x2b\xbd\xae\x1d\xb0\xe1" "\xfc\x5e\x0b\xfa\x57\x6b\xff\x4f\x7b\x54\x0f\xe0\xce\x73\xfd\x87\xfe\xa5" "\xff\x43\xff\xd2\xff\xa1\x7f\xb5\xeb\xff\x1f\xb5\xe4\xcd\x05\xc0\xbd\xc9" "\xf5\x1f\xfa\x97\xfe\x0f\xfd\x4b\xff\x87\xfe\xa5\xff\x43\x5f\x5a\xcf\xef" "\xfa\x37\x2a\x51\x5d\xe5\xd7\xfb\x12\x77\x4b\x22\xd2\xbb\xa2\x1a\x12\x2d" "\x89\x48\x1a\x17\xf4\x4d\xeb\xec\xdd\xbd\x3e\x33\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x74\xc7\x7f\x01\x00\x00\xff\xff\xe0\xab\xf8" "\xac", 1134); syz_mount_image( /*fs=*/0x200000000140, /*dir=*/0x200000000080, /*flags=MS_I_VERSION|MS_POSIXACL|MS_SYNCHRONOUS|MS_STRICTATIME|MS_NODEV|0x740*/ 0x1810754, /*opts=*/0x2000000001c0, /*chdir=*/-1, /*size=*/0x46e, /*img=*/0x200000000e40); // lseek arguments: [ // fd: fd (resource) // offset: intptr = 0x4 (8 bytes) // whence: seek_whence = 0x1 (8 bytes) // ] syscall(__NR_lseek, /*fd=*/(intptr_t)-1, /*offset=*/4ul, /*whence=SEEK_CUR*/ 1ul); } 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; loop(); return 0; }