// https://syzkaller.appspot.com/bug?id=2b4f5e6d4f5161ee195e0ad1f7decd876921a1fc // 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 void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } 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; } #define FS_IOC_SETFLAGS _IOW('f', 2, long) static void remove_dir(const char* dir) { int iter = 0; DIR* dp = 0; const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; retry: while (umount2(dir, umount_flags) == 0) { } dp = opendir(dir); if (dp == NULL) { if (errno == EMFILE) { exit(1); } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); while (umount2(filename, umount_flags) == 0) { } struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } int i; for (i = 0;; i++) { if (unlink(filename) == 0) break; if (errno == EPERM) { int fd = open(filename, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno != EBUSY || i > 100) exit(1); if (umount2(filename, umount_flags)) exit(1); } } closedir(dp); for (int i = 0;; i++) { if (rmdir(dir) == 0) break; if (i < 100) { if (errno == EPERM) { int fd = open(dir, O_RDONLY); if (fd != -1) { long flags = 0; if (ioctl(fd, FS_IOC_SETFLAGS, &flags) == 0) { } close(fd); continue; } } if (errno == EROFS) { break; } if (errno == EBUSY) { if (umount2(dir, umount_flags)) exit(1); continue; } if (errno == ENOTEMPTY) { if (iter < 100) { iter++; goto retry; } } } exit(1); } } 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"); if (symlink("/dev/binderfs", "./binderfs")) { } } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); 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; } remove_dir(cwdbuf); } } 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$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 = 0x201c911 (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 { // resgid: fs_opt["resgid", fmt[hex, gid]] { // name: buffer: {72 65 73 67 69 64} (length 0x6) // eq: const = 0x3d (1 bytes) // val: gid (resource) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // mblk_io_submit: buffer: {6d 62 6c 6b 5f 69 6f 5f 73 75 62 6d // 69 74} (length 0xe) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // inode_readahead_blks: fs_opt["inode_readahead_blks", fmt[hex, // flags[ext4_inode_readahead_blks]]] { // name: buffer: {69 6e 6f 64 65 5f 72 65 61 64 61 68 65 61 64 // 5f 62 6c 6b 73} (length 0x14) eq: const = 0x3d (1 bytes) // val: ext4_inode_readahead_blks = 0x2 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // barrier_val: fs_opt["barrier", fmt[hex, int32]] { // name: buffer: {62 61 72 72 69 65 72} (length 0x7) // eq: const = 0x3d (1 bytes) // val: int32 = 0x0 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // noblock_validity: buffer: {6e 6f 62 6c 6f 63 6b 5f 76 61 6c 69 // 64 69 74 79} (length 0x10) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // errors_remount: buffer: {65 72 72 6f 72 73 3d 72 65 6d 6f 75 // 6e 74 2d 72 6f} (length 0x11) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // noinit_itable: buffer: {6e 6f 69 6e 69 74 5f 69 74 61 62 6c // 65} (length 0xd) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // sb: fs_opt["sb", fmt[hex, int32]] { // name: buffer: {73 62} (length 0x2) // eq: const = 0x3d (1 bytes) // val: int32 = 0x8 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // journal_dev: fs_opt["journal_dev", fmt[hex, int32]] { // name: buffer: {6a 6f 75 72 6e 61 6c 5f 64 65 76} (length // 0xb) eq: const = 0x3d (1 bytes) val: int32 = 0x7 (18 bytes) // } // } // comma: const = 0x32 (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x9c (1 bytes) // size: len = 0x4f2 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x4f2) // } // ] // returns fd_dir memcpy((void*)0x200000000040, "ext4\000", 5); memcpy((void*)0x200000000000, "./file0\000", 8); memcpy((void*)0x200000000480, "resgid", 6); *(uint8_t*)0x200000000486 = 0x3d; sprintf((char*)0x200000000487, "0x%016llx", (long long)0); *(uint8_t*)0x200000000499 = 0x2c; memcpy((void*)0x20000000049a, "mblk_io_submit", 14); *(uint8_t*)0x2000000004a8 = 0x2c; memcpy((void*)0x2000000004a9, "inode_readahead_blks", 20); *(uint8_t*)0x2000000004bd = 0x3d; sprintf((char*)0x2000000004be, "0x%016llx", (long long)2); *(uint8_t*)0x2000000004d0 = 0x2c; memcpy((void*)0x2000000004d1, "barrier", 7); *(uint8_t*)0x2000000004d8 = 0x3d; sprintf((char*)0x2000000004d9, "0x%016llx", (long long)0); *(uint8_t*)0x2000000004eb = 0x2c; memcpy((void*)0x2000000004ec, "noblock_validity", 16); *(uint8_t*)0x2000000004fc = 0x2c; memcpy((void*)0x2000000004fd, "errors=remount-ro", 17); *(uint8_t*)0x20000000050e = 0x2c; memcpy((void*)0x20000000050f, "noinit_itable", 13); *(uint8_t*)0x20000000051c = 0x2c; memcpy((void*)0x20000000051d, "sb", 2); *(uint8_t*)0x20000000051f = 0x3d; sprintf((char*)0x200000000520, "0x%016llx", (long long)8); *(uint8_t*)0x200000000532 = 0x2c; memcpy((void*)0x200000000533, "journal_dev", 11); *(uint8_t*)0x20000000053e = 0x3d; sprintf((char*)0x20000000053f, "0x%016llx", (long long)7); *(uint8_t*)0x200000000551 = 0x32; *(uint8_t*)0x200000000552 = 0; memcpy( (void*)0x200000000f40, "\x78\x9c\xec\xdd\x5d\x6b\x1c\xd7\x19\x00\xe0\x77\x46\x5a\x7f\xca\x95\x4c" "\x7b\xe1\x1a\xea\x9a\xda\x45\x72\x5b\xef\x4a\x56\x6d\x8b\x5e\xb8\x1f\x94" "\xf6\xca\xd0\xd6\xbd\xae\xad\x4a\x2b\x21\xb4\xd2\x0a\xed\xca\xb6\x84\x69" "\x65\xfa\x03\x0a\xa5\xb4\x85\x42\xa1\x57\xb9\x09\xe4\x07\x04\x82\x7f\x42" "\x08\x18\x92\xfb\x90\x84\x84\x90\xd8\xc9\x85\x2f\x12\x6f\xd8\x2f\x7f\xc8" "\xbb\x92\x8c\x57\x5a\xa1\x7d\x1e\x18\xcd\x39\x67\x66\xf4\x9e\x77\x97\x9d" "\xdd\x33\x33\xcc\x04\xd0\xb3\x4e\x47\xc4\x99\x88\x78\x5c\xa9\x54\xce\x45" "\xc4\x60\xa3\x3d\x6d\x4c\x3f\xaa\x56\xd6\xeb\xeb\x3d\x7c\x70\x67\xaa\x3a" "\x25\x51\xa9\x5c\xfb\x2c\x89\x48\xea\x6d\xd5\x55\x46\x9e\xf9\x9f\x47\xeb" "\x9b\xc4\xa1\x88\xf8\xc3\x6f\x23\xfe\x9c\xbc\x18\xb7\xb4\xba\x36\x3f\x59" "\x28\xe4\x97\x1b\xf5\x5c\x79\x61\x29\x57\x5a\x5d\x3b\x3f\xb7\x30\x39\x9b" "\x9f\xcd\x2f\x8e\x8f\x8f\x5d\x9a\xb8\x3c\x71\x71\x62\xb4\x23\x79\x0e\x44" "\xc4\x95\x5f\x7f\xf4\xaf\xbf\xbf\xf6\x9b\x2b\x6f\xfd\xe4\xd6\xfb\xd7\x3f" "\x19\xf9\x4b\xd2\x68\x8f\x78\x9a\x47\xa7\xd5\x53\xcf\xd4\x5e\x8b\xa6\xfe" "\x88\x58\xde\x89\x60\x5d\xd0\xd7\xc8\x27\xd3\x6c\x68\xf1\x5e\x03\x00\xb0" "\x77\x34\x7f\xe7\xff\x20\x22\xce\xc5\x60\xf4\xd5\x7e\xcd\x01\x00\x00\x00" "\xfb\x49\xe5\xe7\x03\xf1\x55\x12\x51\x01\x00\x00\x00\xf6\xad\xb4\x76\x0d" "\x6c\x92\x66\x1b\xd7\x01\x0c\x44\x9a\x66\xb3\xf5\x6b\x78\xbf\x13\x47\xd2" "\x42\xb1\x54\xfe\xf1\x4c\x71\x65\x71\xba\x7e\xad\xec\x50\x64\xd2\x99\xb9" "\x42\x7e\xb4\x71\xad\xf0\x50\x64\x92\x6a\x7d\xac\x56\x7e\x5a\xbf\xb0\xa1" "\x3e\x1e\x11\xc7\x23\xe2\x9f\x83\x87\x6b\xf5\xec\x54\xb1\x30\xdd\xed\x83" "\x1f\x00\x00\x00\xd0\x23\x8e\x6e\x18\xff\x7f\x39\x58\x1f\xff\x03\x00\x00" "\x00\xfb\xcc\x50\xb7\x3b\x00\x00\x00\x00\xec\x38\xe3\x7f\x00\x00\x00\xd8" "\xff\x8c\xff\x01\x00\x00\x60\x5f\xfb\xdd\xd5\xab\xd5\xa9\xd2\x7c\xfe\xf5" "\xf4\xcd\xd5\x95\xf9\xe2\xcd\xf3\xd3\xf9\xd2\x7c\x76\x61\x65\x2a\x3b\x55" "\x5c\x5e\xca\xce\x16\x8b\xb3\xb5\x7b\xf6\x2d\x6c\xf5\xff\x0a\xc5\xe2\xd2" "\x4f\x63\x71\xe5\x76\xae\x9c\x2f\x95\x73\xa5\xd5\xb5\xeb\x0b\xc5\x95\xc5" "\xf2\xf5\xb9\xe7\x1e\x81\x0d\x00\x00\x00\xec\xa2\xe3\xdf\xbf\xf7\x5e\x12" "\x11\xeb\x3f\x3b\x5c\x9b\xaa\x0e\x74\xbb\x53\xc0\xae\xe8\x7f\x99\x95\x3f" "\xdc\xb9\x7e\x00\xbb\xaf\xaf\xdb\x1d\x00\xba\xe6\xa5\xbe\xff\x81\x7d\x25" "\xd3\xed\x0e\x00\x5d\x97\x44\xc4\xff\x36\x59\xde\xf6\xe2\x9d\xb7\x77\xa6" "\x3f\x00\x00\x40\xe7\x0d\x7f\xb7\xf5\xf9\xff\x64\xcb\x63\x03\xeb\xe9\x2e" "\x75\x11\xd8\x21\x8e\xff\x41\xef\x72\xfe\x1f\x7a\x97\xf3\xff\xd0\xbb\x32" "\xd1\x17\x06\xf2\xd0\xdb\x92\x2d\x96\xbf\xfa\xf9\xff\x4a\xe5\xa5\x3a\x04" "\x00\x00\x74\xdc\x40\x6d\x4a\xd2\x6c\x44\xed\x38\xc0\x40\xa4\x69\x36\x1b" "\x71\xac\xf6\x58\x80\x4c\x32\x33\x57\xc8\x8f\x46\xc4\xb7\x22\xe2\xdd\xc1" "\xcc\xc1\x6a\x7d\xac\xb6\x65\xb2\xe5\x98\x01\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa8\xab\x54\x92\xa8\x00" "\x00\x00\x00\xfb\x5a\x44\xfa\x71\xd2\x78\xfe\xd7\xf0\xe0\xd9\x81\x8d\xc7" "\x07\x0e\x24\x8f\x06\x6b\xf3\x88\xb8\xf5\xdf\x6b\xff\xbe\x3d\x59\x2e\x2f" "\x8f\x55\xdb\x3f\x7f\xd2\x5e\xfe\x4f\xa3\xfd\x42\x37\x8e\x60\x00\x00\x00" "\x00\x1b\x35\xc7\xe9\xcd\x71\x3c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\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\xd2\xc3\x07\x77\xa6\x9a\xd3\x6e" "\xc6\xfd\xf4\x97\x11\x31\xd4\x2a\x7e\x7f\x1c\xaa\xcd\x0f\x45\x26\x22\x8e" "\x7c\x91\x44\xff\x33\xdb\x25\x11\xd1\xd7\x81\xf8\xeb\x77\x23\xe2\x57\x7f" "\x6a\x11\x3f\xa9\x76\x2b\x86\x1a\xbd\x68\x15\xff\x70\xa7\xe2\x9f\x68\x95" "\xff\xe6\xf1\xd3\x88\x38\xda\x81\xf8\xd0\xcb\xee\x55\xf7\x3f\xbf\x68\xf5" "\xf9\x4b\xe3\x74\x6d\xbe\xf1\xf3\x77\xf0\xc9\xb6\xfd\x1d\x88\xdf\x7e\xff" "\x97\x3e\xd9\xff\xf5\xb5\xd9\xff\x1c\xdb\x66\x8c\x93\xf7\xdf\xc8\xb5\x8d" "\x7f\x37\xe2\x64\x7f\xeb\xfd\x4f\x33\x7e\xd2\x26\xfe\x99\x6d\xc6\xbf\xf1" "\xc7\xb5\xb5\x76\xcb\x2a\xff\x8f\x18\x6e\xf9\xfd\x93\x3c\x17\x2b\x57\x5e" "\x58\xca\x95\x56\xd7\xce\xcf\x2d\x4c\xce\xe6\x67\xf3\x8b\xe3\xe3\x63\x97" "\x26\x2e\x4f\x5c\x9c\x18\xcd\xcd\xcc\x15\xf2\x8d\xbf\x2d\x63\xfc\xe3\x7b" "\x6f\x3e\xde\x2c\xff\x23\x6d\xe2\x0f\x6d\x91\xff\xd9\x6d\xe6\xff\xf5\xfd" "\xdb\x0f\xbe\x5d\x2f\x66\x5a\xc5\x1f\x39\xd3\xfa\xfd\x3f\xd1\x26\x7e\xda" "\xf8\xee\xfb\x61\xa3\x5c\x5d\x3e\xdc\x2c\xaf\xd7\xcb\xcf\x3a\xf5\xfa\x3b" "\xa7\x36\xcb\x7f\xba\x4d\xfe\x5b\xbd\xff\x23\xdb\xcc\xff\xdc\xef\xff\xf6" "\xc1\x36\x57\x05\x00\x76\x41\x69\x75\x6d\x7e\xb2\x50\xc8\x2f\xf7\x74\xe1" "\x95\x5e\x8d\xea\xcf\xa2\x3d\x91\x85\xc2\x56\x85\x4a\x63\xf0\xd6\x6c\xf9" "\xeb\x5e\xe9\xd8\x1e\x2c\x34\x3f\x13\x8f\xba\xb3\x63\x02\x00\x00\x3a\xee" "\xc5\x31\xf0\x76\xdc\xd8\xb9\x0e\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x40\x0f\xea\xcc\x3d\xc3\x9a\xf7\xc4\xde\xfc\xee\x7a" "\x4d\xeb\xf5\xd9\x0b\xf7\x42\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe8\xa6\x6f\x02\x00\x00" "\xff\xff\x45\xd2\xd0\xc1", 1266); syz_mount_image( /*fs=*/0x200000000040, /*dir=*/0x200000000000, /*flags=MS_LAZYTIME|MS_POSIXACL|MS_REC|MS_SYNCHRONOUS|MS_SILENT|MS_RDONLY|0x900*/ 0x201c911, /*opts=*/0x200000000480, /*chdir=*/0x9c, /*size=*/0x4f2, /*img=*/0x200000000f40); // 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 31 00} (length 0x8) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x2 (1 bytes) // size: len = 0xbd1 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xbd1) // } // ] // returns fd_dir memcpy((void*)0x200000000bc0, "ext4\000", 5); memcpy((void*)0x200000000140, "./file1\000", 8); *(uint8_t*)0x2000000000c0 = 0; memcpy( (void*)0x200000001340, "\x78\x9c\xec\xdc\xcd\x6b\x1c\xe7\x19\x00\xf0\x67\x46\xab\x95\x6c\xab\x5d" "\xb9\x94\x52\xf7\x52\x95\x52\x6c\x28\x5d\x4b\x2e\x32\xb5\x29\xd4\x2e\x2e" "\xbd\xf4\x50\x68\xaf\x05\xab\xf2\xca\x08\xad\x3f\x90\x54\x5c\xc9\x3a\xac" "\x92\x7f\x20\x5f\xe7\x40\x2e\x81\x24\x26\x21\x87\xf8\xec\x4b\x42\x72\xcd" "\x25\xb1\xaf\x09\x39\x04\x4c\x50\xac\x04\x42\x48\x14\x66\x3f\xa4\x8d\xa5" "\x95\xe4\x78\x57\xa3\xc8\xbf\x1f\xbc\x9a\xf7\x9d\x77\xb4\xcf\xf3\xec\xb0" "\x3b\xf3\xc2\xee\x06\xf0\xc4\x1a\xc9\xfe\xa4\x11\xc7\x22\xe2\x62\x12\x51" "\x6a\xee\x4f\x23\xa2\x58\xef\x0d\x46\xd4\x1a\xc7\xad\xae\x2c\x4d\x7e\xb9" "\xb2\x34\x99\xc4\xda\xda\xbf\x3e\x4b\x22\x89\x88\x07\x2b\x4b\x93\xad\xc7" "\x4a\x9a\xdb\x23\xcd\xc1\x60\x44\xbc\xff\xd7\x24\x7e\xf6\xf4\xe6\xb8\x73" "\x0b\x8b\x33\x13\xd5\x6a\x65\xb6\x39\x3e\x39\x7f\xe5\xfa\xc9\xb9\x85\xc5" "\x3f\x4c\x5f\x99\xb8\x5c\xb9\x5c\xb9\x3a\x76\xfa\x4f\xe3\xa7\xc6\x4f\x8f" "\x9e\x19\xef\x5a\xad\x5f\x7d\x74\xee\xf6\x17\xbf\xf9\xfb\x27\xb5\xaf\x5f" "\xfd\xe6\xd6\xe7\xcf\xbf\x9c\xc4\xb9\x18\x6a\xce\xb5\xd7\xd1\x2d\x23\x31" "\xb2\xfe\x9c\xb4\x2b\x44\xc4\x44\xb7\x83\xe5\xa4\xaf\x59\x4f\x7b\x9d\x49" "\x61\x87\x7f\x4a\x7b\x9c\x14\x00\x00\x1d\xa5\x6d\xf7\x70\xbf\x88\x52\xf4" "\xc5\xc6\xcd\x5b\x29\xde\xfe\x20\xd7\xe4\x00\x00\x00\x80\xae\x58\xeb\x8b" "\x58\x03\x00\x00\x00\x0e\xb8\xc4\xfa\x1f\x00\x00\x00\x0e\xb8\xd6\xe7\x00" "\x1e\xac\x2c\x4d\xb6\x5a\xbe\x9f\x48\xd8\x5b\xf7\xcf\x47\xc4\x70\xa3\xfe" "\xd5\x66\x6b\xcc\x14\xa2\x56\xdf\x0e\x46\x7f\x44\x1c\x7e\x90\x44\xfb\xd7" "\x5a\x93\xc6\xbf\x3d\xb6\x91\x88\xf8\xf8\xde\x99\x37\xb2\x16\x3d\xfa\x1e" "\xf2\x76\x6a\xcb\x11\xf1\xcb\xad\xce\x7f\x52\xaf\x7f\xb8\xfe\x2d\xee\xcd" "\xf5\xa7\x11\x31\xda\x85\xf8\x23\x0f\x8d\x7f\x4c\xf5\x9f\xeb\x42\xfc\xbc" "\xeb\x07\xe0\xc9\x74\xe7\x7c\xe3\x42\xb6\xf9\xfa\x97\xae\xdf\xff\xc4\x16" "\xd7\xbf\xc2\x16\xd7\xae\x1f\x22\xef\xeb\x5f\xeb\xfe\x6f\x75\xd3\xfd\xdf" "\x46\xfd\x7d\x1d\xee\xff\xfe\xb9\xcb\x18\x37\x5f\x79\xf1\x46\xa7\xb9\xac" "\xfe\x3f\xdf\xfe\xdb\xeb\xad\x96\xc5\xcf\xb6\x8f\x55\xd4\x23\xb8\xbf\x1c" "\xf1\xab\xc2\x56\xf5\x27\xeb\xf5\x27\x1d\xea\xbf\xb8\xcb\x18\xa5\x6f\x6f" "\x54\x3a\xcd\xe5\x5d\xff\xda\x4b\x11\xc7\x63\xeb\xfa\x5b\x92\xed\x7f\x9f" "\xe8\xe4\xd4\x74\xb5\x32\xda\xf8\xbb\x65\x8c\xe5\xf7\xc6\x5f\xeb\x14\x3f" "\xef\xfa\xb3\xf3\x7f\xb8\x43\xfd\xad\xdf\x7f\xea\x74\xfe\xaf\xef\x32\xc6" "\x7f\x2e\x5c\x78\x73\xd3\xce\x7b\x1b\xdd\xed\xeb\x4f\x3f\x2d\x26\xff\xae" "\xf7\x8a\xcd\x3d\xff\x9f\x98\x9f\x9f\x1d\x8b\x28\x26\xff\xd8\xbc\xff\xd4" "\xf6\xb9\xb4\x8e\x69\x3d\x46\x56\xff\x89\xdf\x6e\xff\xfa\xdf\xaa\xfe\xec" "\x3d\xa1\xd6\x7c\x1e\xb2\xb5\xc0\x72\x73\x9b\x8d\x9f\x7a\x28\xe6\x5f\x6e" "\xdd\x7c\xab\x53\x3e\xad\xf5\x5f\x9e\xe7\xff\x52\x87\xf3\xdf\x5e\xff\xbb" "\x85\xcd\xe7\xff\x99\x5d\xc6\xf8\xdd\x3b\xcf\x9d\xe8\x34\xd7\xbe\xfe\xcd" "\x5a\x16\xbf\xb5\x16\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x96\x34\x22\x86\x22" "\x49\xcb\xeb\xfd\x34\x2d\x97\x23\x8e\x44\xc4\xcf\xe3\x70\x5a\xbd\x36\x37" "\xff\xfb\xa9\x6b\xff\xbb\x7a\x29\x9b\x8b\x18\x8e\xfe\x74\x6a\xba\x5a\x19" "\x8d\x88\x52\x63\x9c\x64\xe3\xb1\x7a\x7f\x63\x7c\xea\xa1\xf1\x1f\x23\xe2" "\x68\x44\xbc\x50\x3a\x54\x1f\x97\x27\xaf\x55\x2f\xe5\x5d\x3c\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xeb\x8e\x44\xc4\x50\x24\x69\x39\x22\xd2\x88\x58" "\x2d\xa5\x69\xb9\x9c\x77\x56\x00\x00\x00\x40\xd7\x0d\xe7\x9d\x00\x00\x00" "\x00\xd0\x73\xd6\xff\x00\x00\x00\x70\xf0\x59\xff\x03\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\x63\x47\x7f\x7d\xe7\x6e\x12\x11" "\xb5\xb3\x87\xea\x2d\x53\x6c\xce\xf5\xe7\x9a\x19\xd0\x6b\x69\xde\x09\x00" "\xb9\xe9\xcb\x3b\x01\x20\x37\x85\xbc\x13\x00\x72\xf3\x88\x6b\x7c\xb7\x0b" "\x70\x00\x25\x3b\xcc\x0f\x76\x9c\x19\xe8\x7a\x2e\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xec\x5f" "\xc7\x8f\xdd\xb9\x9b\x44\x44\xed\xec\xa1\x7a\xcb\x14\x9b\x73\xfd\xb9\x66" "\x06\xf4\x5a\xda\xd6\x4f\x72\xcc\x03\xd8\x7b\x7d\xdb\x4d\x16\xf6\x2e\x0f" "\x60\xef\x79\x89\xc3\x93\xcb\x1a\x1f\xd8\x69\xed\x3f\xb8\x71\x4c\xed\xfb" "\x33\x03\x3d\xcb\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x80\xfd\x67\xa8\xde\x92\xb4\x1c\x11\xc5" "\xe6\xbe\x72\x39\xe2\x27\x11\x31\x1c\xfd\xc9\xd4\x74\xb5\x32\x1a\x11\x3f" "\x8d\x88\x0f\x4b\xfd\x03\xd9\x78\x2c\xe7\x9c\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\xe8\xbe\xb9\x85\xc5\x99\x89\x6a\xb5\x32\x9b\x75\xd2\x68\x76\xd6" "\xf7\xf4\xa0\xd3\xd7\x8c\xdc\xc3\x10\xbd\xe9\x24\x8d\xbc\x6b\xfb\x25\x9f" "\x83\xdd\x19\x78\x76\xa7\x63\xfe\x1b\x8f\x19\xa2\x18\xfb\xa2\xd2\x7d\xda" "\xc9\xf3\x5d\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xbc\xcc\x2d\x2c\xce\x4c" "\x54\xab\x95\xd9\xb9\xbc\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\xf2\x36\xb7\xb0\x38\x33\x51\xad\x56\x66" "\x7b\xd8\xc9\xbb\x46\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xf2\xf3\x5d\x00\x00\x00\xff\xff\x8c\x0b\x06" "\x47", 3025); syz_mount_image(/*fs=*/0x200000000bc0, /*dir=*/0x200000000140, /*flags=*/0, /*opts=*/0x2000000000c0, /*chdir=*/2, /*size=*/0xbd1, /*img=*/0x200000001340); // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 2f 63 67 72 6f 75 70 00} (length 0x9) // } // flags: open_flags = 0x42 (4 bytes) // mode: open_mode = 0x0 (2 bytes) // ] // returns fd memcpy((void*)0x200000000340, "./cgroup\000", 9); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000340ul, /*flags=O_CREAT|O_RDWR*/ 0x42, /*mode=*/0); if (res != -1) r[0] = res; // ioctl$EXT4_IOC_SWAP_BOOT arguments: [ // fd: fd (resource) // cmd: const = 0x6611 (4 bytes) // ] syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x6611, 0); } 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; use_temporary_dir(); loop(); return 0; }