// https://syzkaller.appspot.com/bug?id=0a52da0bbfd5ff2cd097edb1607fd2bda63a1c4d // 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); } } void execute_one(void) { 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 = 0x8 (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 { // nodioread_nolock: buffer: {6e 6f 64 69 6f 72 65 61 64 5f 6e 6f // 6c 6f 63 6b} (length 0x10) // } // 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 = 0x1 (18 bytes) // } // } // comma: const = 0x2c (1 bytes) // } // 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_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) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x4 (1 bytes) // size: len = 0x523 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x523) // } // ] // returns fd_dir memcpy((void*)0x2000000004c0, "ext4\000", 5); memcpy((void*)0x200000000500, "./file0\000", 8); memcpy((void*)0x200000000180, "nodioread_nolock", 16); *(uint8_t*)0x200000000190 = 0x2c; memcpy((void*)0x200000000191, "sb", 2); *(uint8_t*)0x200000000193 = 0x3d; sprintf((char*)0x200000000194, "0x%016llx", (long long)1); *(uint8_t*)0x2000000001a6 = 0x2c; memcpy((void*)0x2000000001a7, "jqfmt=vfsold", 12); *(uint8_t*)0x2000000001b3 = 0x2c; memcpy((void*)0x2000000001b4, "errors=remount-ro", 17); *(uint8_t*)0x2000000001c5 = 0x2c; *(uint8_t*)0x2000000001c6 = 0; memcpy( (void*)0x2000000018c0, "\x78\x9c\xec\xdd\xc1\x6f\x1b\x59\x19\x00\xf0\x6f\x9c\xb8\x49\xb3\xe9\xa6" "\x0b\x7b\x00\x04\x6c\x59\x16\x0a\xaa\xea\x24\xee\x6e\xb4\xea\x85\xf6\x02" "\x42\x55\x25\x44\xc5\x89\x43\x1b\x12\x37\x8a\x62\xd7\x51\xec\x8a\x26\xf4" "\x90\x1e\xb9\x57\xa2\x12\x27\xe0\x3f\xe0\xc6\x01\xa9\x27\x0e\xdc\xb8\xc1" "\x8d\x4b\x39\x20\x15\xa8\x40\x0d\x12\x07\xa3\x19\x4f\x52\x37\xb1\x93\x40" "\x9d\xb8\x89\x7f\x3f\x69\x32\xf3\xde\x4c\xfd\xbd\x17\xf7\xbd\xe7\x79\x91" "\xe7\x05\x30\xb4\x2e\x44\xc4\x66\x44\x9c\x89\x88\x3b\x11\x31\x95\xe7\x27" "\xf9\x16\xd7\xda\x5b\x7a\xdd\xcb\x17\x0f\x17\xb6\x5e\x3c\x5c\x48\xa2\xd5" "\xba\xf5\xf7\x24\x3b\x9f\xe6\x45\xc7\xbf\x49\xbd\x93\xbf\xe6\x78\x44\x7c" "\xff\x3b\x11\x3f\x4a\xf6\xc6\x6d\xac\x6f\xac\xcc\x57\xab\x95\xb5\x3c\x3d" "\xdd\xac\xad\x4e\x37\xd6\x37\x2e\x2f\x17\xf2\x9c\xf2\xdc\xec\xdc\xcc\xa7" "\x57\x3e\x29\xf7\xad\xae\x1f\xd4\x7e\xfd\xfc\xdb\xcb\x37\x7e\xf0\xdb\xdf" "\x7c\xe9\xd9\x1f\x36\xbf\xf9\x93\xb4\x58\x93\x3f\x3d\x97\x9d\xeb\xac\x47" "\x3f\xb5\xab\x5e\x8c\xc9\x8e\xbc\xd1\x88\xb8\x71\x14\xc1\x06\x64\x34\xff" "\xff\xc3\xc9\x93\xb6\xb6\xcf\x44\xc4\x87\x59\xfb\x9f\x8a\x91\xec\xdd\x04" "\x00\x4e\xb3\x56\x6b\x2a\x5a\x53\x9d\x69\x00\xe0\xb4\x4b\xef\xff\x27\x23" "\x29\x94\xf2\xb9\x80\xc9\x28\x14\x4a\xa5\xf6\x1c\xde\xfb\x31\x51\xa8\xd6" "\x1b\xcd\x4b\x53\xf5\xfb\xf7\x16\x23\x9b\xc3\x3a\x1f\xc5\xc2\xdd\xe5\x6a" "\x65\x26\x9f\x2b\x3c\x1f\xc5\x24\x4d\xcf\x66\xc7\xaf\xd2\xe5\xd7\xd2\x8f" "\x2b\x57\x22\xe2\xbd\x88\x78\x3c\x76\x36\x3b\x5f\x5a\xa8\x57\x17\x07\xf9" "\xc1\x07\x00\x86\xd8\x3b\xbb\xc6\xff\x7f\x8d\xb5\xc7\xff\x4e\xc5\x41\x15" "\x0e\x00\x38\x3a\xe3\x83\x2e\x00\x00\x70\xec\x8c\xff\x00\x30\x7c\x8c\xff" "\x00\x30\x7c\xfe\x87\xf1\xdf\xb7\x03\x01\xe0\x94\x70\xff\x0f\x00\xc3\xc7" "\xf8\x0f\x00\xc3\xe7\xc0\xf1\xff\xd1\xf1\x94\x03\x00\x38\x16\xdf\xbb\x79" "\x33\xdd\x5a\x5b\xed\xe7\x5f\x6f\x3f\xa9\xfb\xf2\x62\xa5\xb1\x52\xaa\xdd" "\x5f\x28\x2d\xd4\xd7\x56\x4b\x4b\xf5\xfa\x52\xb5\x52\x5a\x68\xb5\x0e\x7a" "\xbd\x6a\xbd\xbe\x3a\xfb\xf1\x4e\xb2\xb1\xbe\x71\xbb\x56\xbf\x7f\xaf\x79" "\x7b\xb9\x36\xbf\x54\xb9\x5d\xf1\x2c\x01\x00\x18\xbc\xf7\x3e\x78\xfa\xa7" "\x74\xd0\xdf\xbc\x7a\x36\xdb\xa2\x63\x2d\x07\x63\x35\x9c\x6e\x85\x41\x17" "\x00\x18\x98\x91\x41\x17\x00\x18\x18\xdf\xe7\x81\xe1\x75\x88\x7b\x7c\xd3" "\x00\x70\xca\x75\x59\xa2\xb7\x2d\x9f\x20\x48\x7a\x5d\xf0\xc4\xe2\xaf\x70" "\x52\x5d\xfc\xbc\xf9\x7f\x18\x56\x6f\x32\xff\x6f\xee\x00\x4e\xb6\xff\x6f" "\xfe\xff\x5b\x7d\x2f\x07\x70\xfc\x8c\xe1\x30\xbc\x5a\xad\xc4\x9a\xff\x00" "\x30\x64\xcc\xf1\x03\x3d\xff\xfe\x9f\xeb\xf9\x88\x90\x27\xfd\x2f\x0b\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x9c\x14\x93\xd9\x96\x14\x4a\xd9\x5a\xe0\x9b\xe9\xcf" "\x42\xa9\x14\x71\x2e\x22\xce\x47\x31\xb9\xbb\x5c\xad\xcc\x44\xc4\xbb\x11" "\xf1\xc7\xb1\xe2\x58\x9a\x9e\x1d\x74\xa1\x01\x80\x37\x54\xf8\x6b\x92\xaf" "\xff\x75\x71\xea\xa3\xc9\xdd\x67\xcf\x24\xff\x1e\xcb\xf6\x11\xf1\xe3\x9f" "\xdf\xfa\xd9\x83\xf9\x66\x73\x6d\x36\xcd\xff\xc7\x4e\x7e\xf3\x49\x9a\x7f" "\xb6\xb9\x56\x3e\x33\x88\x0a\x00\x00\x9d\xae\xed\xcd\xca\xc6\xef\x72\xbe" "\xef\xb8\x91\x7f\xf9\xe2\xe1\xc2\xf6\x76\x9c\x45\x7c\x7e\xbd\xbd\xb8\x68" "\x1a\x77\x2b\xdf\xda\x67\x46\x63\x34\xdb\x8f\x47\x31\x22\x26\xfe\x99\xe4" "\xe9\xb6\xf4\xf3\xca\x48\x1f\xe2\x6f\x3e\x8a\x88\xcf\x6d\xd7\x7f\x3c\x1e" "\x74\x44\x98\xcc\xe6\x40\xda\x2b\x9f\xee\x8e\x9f\xc6\x3e\xd7\xf7\xf8\x9d" "\xbf\xff\xdd\xf1\x0b\xaf\xd5\xb7\x90\x9d\x4b\xf7\xc5\xec\x77\xf1\xd9\xd8" "\x55\x38\xe0\x40\x4f\xaf\xb7\xfb\xc9\xbc\xed\xa5\x4d\x3c\x6f\x7f\x85\xb8" "\x90\xed\xbb\xb7\xff\xf1\xac\x87\x7a\x73\x69\xff\x97\x36\xd7\xad\x3d\xfd" "\x5f\x61\xa7\xff\x1b\xd9\x13\x3f\xc9\xda\xfc\x85\x9d\xf4\xfe\x25\x79\xfe" "\xf1\xef\xbe\xbb\x27\xb3\x35\xd5\x3e\xf7\x28\xe2\x0b\xa3\xdd\xe2\x27\x3b" "\xf1\x93\xee\xfd\x6f\xf1\xa3\x43\xd6\xf1\xcf\x5f\xfc\xf2\x87\xbd\xce\xb5" "\x7e\x11\x71\xb1\x6b\xfd\xb7\x57\xa4\xae\x65\xdd\xec\x74\xb3\xb6\x3a\xdd" "\x58\xdf\xb8\xbc\x5c\x9b\x5f\xaa\x2c\x55\xee\x95\xcb\x73\xb3\x73\x33\x9f" "\x5e\xf9\xa4\x3c\x9d\xcd\x51\xb7\x7f\xfe\xbe\x5b\x8c\xbf\x5d\xbd\xf4\x6e" "\xaf\xf8\x69\xfd\x27\x7a\xc4\x1f\xdf\xbf\xfe\xf1\xb5\x43\xd6\xff\x97\xff" "\xb9\xf3\xc3\xaf\xec\x13\xff\x1b\x5f\xed\xfe\xfe\xbf\xbf\x4f\xfc\x74\x4c" "\xfc\xfa\x21\xe3\xcf\x4f\x5c\xeb\xb9\x7c\x77\x1a\x7f\xb1\x47\xfd\x0f\x78" "\xff\xe3\xd2\x21\xe3\x3f\xfb\xcb\xc6\xe2\x21\x2f\x05\x00\x8e\x41\x63\x7d" "\x63\x65\xbe\x5a\xad\xac\x1d\x70\x90\x7e\xd6\x3c\xe8\x1a\x07\x87\x3f\x48" "\xef\xed\xdf\x82\x62\x64\x07\xb1\x19\xd1\xaf\x17\xcc\x26\x25\x22\xa2\xeb" "\x35\xe9\x27\xea\xb7\xa3\xca\x47\x75\x90\x0c\x2c\xfa\xaf\xfa\xfd\x82\x83" "\xee\x99\x80\xa3\xf6\xaa\xd1\x0f\xba\x24\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x40\x2f\x8d\xf5\x8d\x95\xb1\xee\xdf\xd6\xea\xdb\xc1\xa0\xeb" "\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xc0\xe9\xf5\xdf\x00\x00\x00\xff\xff\x28\x79\xc4" "\x36", 1315); syz_mount_image(/*fs=*/0x2000000004c0, /*dir=*/0x200000000500, /*flags=MS_NOEXEC*/ 8, /*opts=*/0x200000000180, /*chdir=*/4, /*size=*/0x523, /*img=*/0x2000000018c0); // creat arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // mode: open_mode = 0xa0 (8 bytes) // ] // returns fd memcpy((void*)0x200000000180, "./file1\000", 8); syscall(__NR_creat, /*file=*/0x200000000180ul, /*mode=S_IRGRP|S_IWUSR*/ 0xa0ul); // 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 = 0x1018e58 (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 = 0x1 (1 bytes) // size: len = 0x61f (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x620) // } // ] // returns fd_dir memcpy((void*)0x200000000140, "ext4\000", 5); memcpy((void*)0x200000000040, "./file1\000", 8); *(uint8_t*)0x200000000000 = 0; memcpy( (void*)0x200000001680, "\x78\x9c\xec\xdd\xcf\x6b\x5c\xd5\x1e\x00\xf0\xef\x9d\x49\xd2\xa4\xcd\x7b" "\x69\x1f\x8f\xc7\x6b\x78\x0f\x03\x2e\x5a\x90\xa6\x49\x2d\x56\xdd\xd8\xd6" "\x85\x5d\x14\x2c\xd8\x85\x88\x8b\x86\x26\xa9\xa1\xd3\x1f\x34\x29\xd8\x5a" "\x68\x0b\x2e\x14\x14\x44\xdc\x16\xe9\xc6\x7f\xc0\xbd\x74\xef\x4e\x04\x75" "\xe7\x5a\xa8\x22\x15\x05\x2d\x19\xb9\x77\xee\xa4\x93\xe4\x4e\x93\xa6\x9d" "\x99\xa4\xf7\xf3\x81\x99\x39\xf7\xdc\x3b\x73\xce\x77\x4e\x4f\xef\xb9\xf7" "\xe6\xcc\x0d\xa0\xb4\xc6\xd2\xa7\x4a\xc4\xee\x88\xc5\x53\x49\xc4\x48\xcb" "\xba\xe1\x68\xac\x1c\xcb\xb7\xbb\xf7\xeb\xb5\xd3\xe9\x23\x89\x7a\xfd\x8d" "\x5f\x92\x48\xf2\xbc\xe6\xf6\x8b\xf9\xeb\x8e\xf4\x29\x89\x18\x8c\x88\x6f" "\x8e\x46\xfc\xab\xba\xba\xdc\xf9\x2b\x57\xcf\x4e\xd5\xea\x0d\xd7\x23\xf6" "\x2f\x9c\xbb\xb8\x7f\xfe\xca\xd5\x7d\x73\xe7\xa6\xce\xcc\x9c\x99\x39\x3f" "\x79\xe0\xc5\x83\x87\x26\x5e\x9a\x3c\x38\xf9\x44\xe2\xdc\x91\xbf\x1e\x3b" "\xfe\xfa\xff\x3e\x7e\xff\x9d\x17\x66\xbf\xad\xed\x4b\xe2\x70\x9c\xec\x7f" "\x6f\x3a\x56\xc4\xb1\x01\xf5\xa4\x20\x73\x2c\xc6\x62\x31\x0f\xb1\x35\xbf" "\x2f\x22\x0e\xa5\x89\x82\xef\x65\xab\x59\x57\x08\xdb\x3a\x5f\x0f\x36\xa6" "\x9a\xff\x7b\xec\x8f\x88\xff\xc4\x48\x54\xb3\xa5\x86\x91\x98\xfb\xa8\xa7" "\x95\x03\x3a\xaa\x5e\x8d\xa8\x03\x25\x95\xe8\xff\x50\x52\xcd\x71\x40\xf3" "\xd8\x7e\x7d\xc7\xc1\x27\x3b\x3c\x2a\xe9\x9e\xbb\x47\x1a\x07\x40\xab\xe3" "\xef\x6b\x9c\x1b\x89\xc1\xec\xd8\x68\xfb\xbd\xa4\xe5\xc8\xa8\x71\x6e\x63" "\xe7\x13\x28\x3f\x2d\xe3\xfe\xb5\xd1\x5b\xe9\x23\x96\x9d\x87\xf8\x63\xa9" "\x75\xfa\x9e\x40\x39\xed\xdc\xb8\x19\x11\xff\x2d\x8a\x3f\xc9\xea\xb6\x33" "\x8b\x34\x8d\xbf\x12\x95\x96\xf7\xa5\x75\x9a\x88\x88\x81\x3c\xfd\xea\x06" "\x8a\x6e\x26\x5a\xcf\x9d\x3c\xe6\x79\x98\x47\xaf\xc4\x23\xc4\xdf\xda\x0e" "\xe9\x77\x71\x38\x7f\x4d\xf3\x8f\x6e\xb0\xfc\xb1\x15\xcb\xdd\x8e\x1f\x80" "\x72\xba\x73\x24\xdf\x91\x67\x7b\xe3\x07\xfb\xbf\x74\xec\xd1\x1c\xff\x44" "\xc1\xf8\x67\xb8\x60\xdf\xb5\x11\xbd\xde\xff\xb5\x1f\xff\x35\xf7\xf7\x83" "\xd9\x39\xf2\xca\x8a\x71\x58\x3a\x66\x39\x51\xfc\x91\xfd\x2b\x33\x7e\xfc" "\xf0\xd8\xa7\xed\xca\x6f\x1d\xff\xdd\xbf\x96\x64\xf5\x68\x8e\x05\xbb\xe1" "\xee\xcd\x88\xd1\x15\xf1\x7f\x90\x0d\xf4\x92\xa5\xf6\x4f\x0a\xda\x3f\xdd" "\xe4\xd4\xe1\xf5\x95\xf1\xda\x77\x3f\x1f\x6b\xb7\x6e\x79\xfc\xa3\xb7\xba" "\x1d\x7f\xfd\x76\xc4\x9e\xc2\xe3\x9f\x07\xa3\xd2\x34\xf5\x90\xeb\x93\xfb" "\x67\xe7\x6a\x33\x13\x8d\xe7\xc2\x32\xbe\xfa\xfa\xed\x2f\xda\x95\xdf\xeb" "\xf8\xd3\xf6\xdf\xde\x26\xfe\x96\xf6\xaf\xac\x7c\x5f\xfa\x9d\x5c\x5c\x67" "\x19\x5f\x9e\xb8\x7d\x6e\xa0\xcd\xba\xe1\x35\xe3\xaf\xfc\x34\x90\x34\x8e" "\x37\x9b\x9f\xf1\xee\xd4\xc2\xc2\xa5\xc9\x88\x81\xe4\x78\xbe\x49\x4b\xfe" "\x81\x87\xd7\xa5\xb9\x4d\xf3\x33\xd2\xf8\xf7\x3e\x5b\xdc\xff\x97\xfd\xfb" "\xbf\xb9\xfc\x73\x86\x5a\x0f\x60\xd6\x70\xf1\xcd\xb3\xf7\xda\xad\xdb\x48" "\xfb\xb7\x5c\x4c\x5e\xac\xaf\xb3\x0e\xed\xa4\xf1\x4f\xaf\xdd\xfe\xab\xfa" "\x7f\x9a\xf7\xc9\x3a\xcb\xf8\xfd\xad\xcb\xff\x6f\xb7\xae\x20\xfe\x88\x3c" "\xfe\xa1\xc7\x09\x0c\x00\x00\x00\x00\x00\x00\x4a\xa8\x92\x5d\x83\x4d\x2a" "\xe3\x4b\xe9\x4a\x65\x7c\xbc\x31\x5f\xf6\xdf\xb1\xbd\x52\xbb\x30\xbf\xf0" "\xdc\xec\x85\xcb\xe7\xa7\x23\xf6\x66\x7f\x0f\xd9\x5f\x69\x5e\xe9\x1e\x69" "\x2c\x27\xe9\xf2\x64\xfe\xf7\xb0\xcd\xe5\x03\x2b\x96\x9f\x8f\x88\x5d\x11" "\xf1\x59\x75\x28\x5b\x1e\x3f\x7d\xa1\x36\xdd\xeb\xe0\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x93\xd8\x91\xcf\xff\x6f\xde" "\xa7\xfa\xb7\x6a\x63\xfe\x3f\x50\x12\x9d\xbc\xc1\x1c\xb0\xb9\xe9\xff\x50" "\x5e\x59\xff\x5f\x75\x8b\x27\xa0\x0c\xec\xff\xa1\xbc\xf4\x7f\x28\x2f\xfd" "\x1f\xca\x4b\xff\x87\xf2\xd2\xff\xa1\xbc\xf4\x7f\x28\x2f\xfd\x1f\xca\x4b" "\xff\x07\x00\x00\x00\x80\xa7\xd2\xae\x67\xee\xfc\x90\x44\xc4\x8d\x97\x87" "\xb2\x47\x6a\x20\x5f\x57\xed\x69\xcd\x80\x4e\xeb\x2f\xc8\xab\x5f\xef\x41" "\x45\x80\xae\xb3\x8f\x87\xf2\x5a\xba\xf4\x6f\xfa\x3f\x94\x4e\xd1\xf8\x7f" "\x95\x3f\xf3\x1f\x07\xec\x7c\x75\x80\x1e\x48\x8a\x32\xb3\xc1\x41\xfd\xe1" "\x9d\xff\x4e\xe1\x3b\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x0e\xd8" "\xb3\xbb\xfd\xfc\xff\x75\xcd\x0d\x00\xb6\x2c\xd3\xfe\xa0\xbc\x1e\x63\xfe" "\xbf\x9f\x0e\x80\x2d\xce\x4f\xff\x43\x79\x39\xc6\x07\xd6\x9a\xc5\x3f\xd8" "\x6e\x85\xf9\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\x35\xc3\xd9" "\x23\xa9\x8c\xe7\x73\x81\x87\xa3\x52\x19\x1f\x8f\xf8\x47\x44\xec\x8c\xfe" "\x64\x76\xae\x36\x33\x11\x11\xff\x8c\x88\xef\xab\xfd\xdb\xd2\xe5\xc9\x5e" "\x57\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9e" "\x32\xf3\x57\xae\x9e\x9d\xaa\xd5\x66\x2e\xb5\x26\xfe\x5a\x95\xf3\x74\x27" "\x9a\x77\x41\xed\x42\x59\xaf\xc4\x23\xbe\x2b\x92\xee\x7f\x2d\x43\x11\xd1" "\xf3\x46\xe9\x58\xa2\xaf\x25\x27\x89\xb8\x91\xb6\xfc\xa6\xa8\xd8\xa5\xf9" "\xd8\x1c\xd5\xc8\x12\x3d\xfe\x8f\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x4a\xa8\x65\xee\x71\xb1\xd1\xcf\xbb\x5c\x23\x00\x00" "\x00\x00\x00\x00\x00\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\x07\xf7\xff\xef\x5c" "\xa2\xd7\x31\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x5b\xd3\xdf\x01\x00\x00\xff\xff\xfc\xaa" "\x42\x21", 1568); syz_mount_image( /*fs=*/0x200000000140, /*dir=*/0x200000000040, /*flags=MS_POSIXACL|MS_SYNCHRONOUS|MS_STRICTATIME|MS_SILENT|MS_NOEXEC|0xe40*/ 0x1018e58, /*opts=*/0x200000000000, /*chdir=*/1, /*size=*/0x61f, /*img=*/0x200000001680); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*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=*/0x1000, /*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; }