// 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_fsconfig #define __NR_fsconfig 431 #endif #ifndef __NR_fspick #define __NR_fspick 433 #endif #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 31 00} (length 0x8) // } // flags: mount_flags = 0x21081e (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 { // quota: buffer: {71 75 6f 74 61} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nogrpid: buffer: {6e 6f 67 72 70 69 64} (length 0x7) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nolazytime: buffer: {6e 6f 6c 61 7a 79 74 69 6d 65} (length // 0xa) // } // 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 = 0x523 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x523) // } // ] // returns fd_dir memcpy((void*)0x200000000840, "ext4\000", 5); memcpy((void*)0x200000000080, "./file1\000", 8); memcpy((void*)0x200000000440, "quota", 5); *(uint8_t*)0x200000000445 = 0x2c; memcpy((void*)0x200000000446, "nogrpid", 7); *(uint8_t*)0x20000000044d = 0x2c; memcpy((void*)0x20000000044e, "nolazytime", 10); *(uint8_t*)0x200000000458 = 0x2c; *(uint8_t*)0x200000000459 = 0; memcpy( (void*)0x200000000c00, "\x78\x9c\xec\xdd\xcf\x6f\x1c\x57\x1d\x00\xf0\xef\x4c\xb2\xb6\x93\xb8\x75" "\x5a\x7a\x00\x04\x6d\x68\x0b\x01\x45\x59\xc7\x9b\xd6\xaa\x7a\x80\x72\x42" "\x08\x55\x42\xf4\x08\x22\x35\xf6\xc6\xb2\xbc\xeb\xb5\xbc\xeb\x52\x9b\x48" "\xb8\x67\xae\x48\x54\xe2\x04\x47\xfe\x00\xce\x3d\x71\xe7\x82\xe0\xc6\xa5" "\x1c\x90\xf8\x61\x81\x6a\x24\x0e\x53\xcd\xec\xd8\xd9\xd8\xbb\xf6\xa6\x89" "\xbd\x96\xf7\xf3\x91\x46\xf3\xde\xbc\xf1\x7e\xdf\x8b\x33\xef\xcd\xbc\x5d" "\xef\x0b\x60\x6c\xdd\x88\x88\x9d\x88\x98\x88\x88\x77\x23\x62\xa6\x3c\x9e" "\x94\x5b\xbc\xd5\xdd\xf2\xf3\x3e\xd9\x7d\xb0\xb8\xb7\xfb\x60\x31\x89\x2c" "\x7b\xe7\x5f\x49\x51\x9e\x1f\x8b\x9e\x9f\xc9\x5d\x2b\x5f\x73\x2a\x22\x7e" "\xf0\x9d\x88\x9f\x24\x47\xe3\xb6\xb7\xb6\x57\x17\x1a\x8d\xfa\x46\x99\x9f" "\xed\x34\xd7\x67\xdb\x5b\xdb\xb7\x57\x9a\x0b\xcb\xf5\xe5\xfa\x5a\xad\x36" "\x3f\x37\x7f\xe7\x8d\xbb\xaf\xd7\x1e\xa3\x35\x53\xc7\x96\xbe\xd4\x9c\x28" "\x53\x5f\xfe\xf8\x8f\x3b\xdf\xf8\x59\x5e\xad\xe9\xf2\x48\x6f\x3b\x9e\xa6" "\x6e\xd3\x2b\x07\x71\x72\x97\x23\xe2\x7b\xa7\x11\x6c\x04\x2e\x95\xed\x99" "\x18\x75\x45\xf8\x4c\xd2\x88\x78\x3e\x22\x5e\x2e\xae\xff\x99\xb8\x54\xfc" "\x36\x01\x80\x8b\x2c\xcb\x66\x22\x9b\xe9\xcd\x03\x00\x17\x5d\x5a\xcc\x81" "\x25\x69\xb5\x9c\x0b\x98\x8e\x34\xad\x56\xbb\x73\x78\x2f\xc4\xd5\xb4\xd1" "\x6a\x77\x6e\xdd\x6f\x6d\xae\x2d\x75\xe7\xca\xae\x47\x25\xbd\xbf\xd2\xa8" "\xdf\x29\xe7\x0a\xaf\x47\x25\xc9\xf3\x73\x45\xfa\x61\xbe\x76\x28\x7f\x37" "\x22\x9e\x8b\x88\x5f\x4e\x5e\x29\xf2\xd5\xc5\x56\x63\x69\x94\x37\x3e\x00" "\x30\xc6\xae\x1d\x1a\xff\xff\x3b\xd9\x1d\xff\x01\x80\x0b\xee\xf8\x8f\xcd" "\x00\x00\x17\x91\xf1\x1f\x00\xc6\x8f\xf1\x1f\x00\xc6\x8f\xf1\x1f\x00\xc6" "\x4f\x77\xfc\xbf\xf2\xb8\x3f\x96\x65\xd9\xcf\x4f\xa3\x3a\x00\xc0\x19\xf0" "\xfc\x0f\x00\xe3\xc7\xf8\x0f\x00\x63\xe5\xfb\x6f\xbf\x9d\x6f\xd9\x5e\xf9" "\xfd\xd7\x4b\xef\x6d\x6d\xae\xb6\xde\xbb\xbd\x54\x6f\xaf\x56\x9b\x9b\x8b" "\xd5\xc5\xd6\xc6\x7a\x75\xb9\xd5\x5a\x2e\xbe\xb3\xa7\x79\xd2\xeb\x35\x5a" "\xad\xf5\xb9\xd7\x62\xf3\xfd\xeb\xdf\x5c\x6f\x77\x66\xdb\x5b\xdb\xf7\x9a" "\xad\xcd\xb5\xce\xbd\xe2\x7b\xbd\xef\xd5\x2b\xc5\x59\x3b\x67\xd0\x32\x00" "\x60\x90\xe7\x5e\xfa\xe8\x2f\x49\x3e\x22\xbf\x79\xa5\xd8\xa2\x67\x2d\x87" "\xca\x48\x6b\x06\x9c\xb6\x74\xd4\x15\x00\x46\xe6\xd2\xa8\x2b\x00\x8c\x8c" "\xd5\xbe\x60\x7c\x3d\x7c\xc6\x7f\xec\x0f\x01\x98\x1e\x80\x0b\xa2\xcf\x12" "\xbd\x8f\x98\xea\xf7\x07\x42\x59\x96\x65\xa7\x57\x25\xe0\x94\xdd\xfc\x82" "\xf9\x7f\x18\x57\x3d\xf3\xff\x3e\x05\x0c\x63\xe6\xa4\xf9\xff\x62\x6d\x60" "\x6f\x12\xc2\x85\x64\xfe\x1f\xc6\x57\x96\x25\xc3\xae\xf9\x1f\xc3\x9e\x08" "\x00\x9c\x6f\xc7\xcc\xf1\x5f\x3f\xcb\xfb\x10\x60\x74\x06\xbc\xff\xff\x7c" "\xb9\xff\x5d\xf9\xe6\xc0\x8f\x96\x0e\x9f\xf1\xe1\x69\xd6\x0a\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xce\xb7\xfd\xf5\x7f\xab\xe5\x32\xbf\xd3\x91\xa6\xd5\x6a\xc4" "\x33\xc5\x02\x40\x95\xe4\xfe\x4a\xa3\x7e\x27\x22\x9e\x8d\x88\x3f\x4f\x56" "\x26\xf3\xfc\xdc\x88\xeb\x0c\x00\x3c\xa9\xf4\xef\x49\xb9\xfe\xd7\xcd\x99" "\x57\xa7\x1f\x29\x7a\xf1\xda\x41\x72\x22\x22\x7e\xfa\xeb\x77\x7e\xf5\xfe" "\x42\xa7\xb3\xf1\xa7\x88\x89\xe4\xdf\x93\xfb\xc7\x3b\x1f\x96\xc7\x6b\x27" "\x06\x9b\x3a\x8d\x16\x00\x00\xc7\xdb\x1f\xa7\x8b\x7d\xcf\x83\xfc\x27\xbb" "\x0f\x16\xf7\xb7\xb3\xac\xcf\x3f\xbe\xdd\xbd\x2b\xc8\xe3\xee\xed\x4e\xc4" "\xde\x41\xfc\xcb\x71\xb9\xd8\x4f\x45\x25\x22\xae\xfe\x27\x29\xf3\x5d\x49" "\xcf\xdc\xc5\x93\xd8\xf9\x20\x22\x3e\xdf\xaf\xfd\x49\x4c\x17\x73\x20\xdd" "\x5b\x96\xc3\xf1\xf3\xd8\xcf\x9c\x69\xfc\xf4\x91\xf8\x69\xb9\x40\x73\x5a" "\xfe\x5b\x7c\xee\x29\xd4\x05\xc6\xcd\x47\x79\xff\xf3\x56\xbf\xeb\x2f\x8d" "\x1b\xc5\xbe\xff\xf5\x3f\x55\xf4\x50\x4f\xae\xec\xff\xf2\x97\x5a\xdc\x2b" "\xfa\xc0\x87\xf1\xf7\xfb\xbf\x4b\x03\xfa\xbf\x1b\xc3\xc6\x78\xed\x0f\xdf" "\xed\xa6\xae\x1c\x2d\xfb\x20\xe2\x8b\x97\x23\xf6\x63\xef\xf5\xf4\x3f\xfb" "\xf1\x93\x01\xf1\x5f\x1d\x32\xfe\x5f\xbf\xf4\xe2\xcb\x83\xca\xb2\xdf\x44" "\xdc\x8c\xfe\xf1\x7b\x63\xcd\x76\x9a\xeb\xb3\xed\xad\xed\xdb\x2b\xcd\x85" "\xe5\xfa\x72\x7d\xad\x56\x9b\x9f\x9b\xbf\xf3\xc6\xdd\xd7\x6b\xb3\xc5\x1c" "\xf5\xec\xe0\xd1\xe0\x9f\x6f\xde\x7a\x76\x50\x59\xde\xfe\xab\x03\xe2\x4f" "\x9d\xd0\xfe\xaf\x0e\xd9\xfe\xdf\xfe\xff\xdd\x1f\x7e\xe5\x98\xf8\x5f\x7f" "\xa5\x5f\xfc\x34\x5e\x38\x26\x7e\x3e\x26\x7e\x6d\xc8\xf8\x0b\x57\x7f\x3f" "\xf0\xb9\x3b\x8f\xbf\x74\xb4\xfd\xc9\x30\xbf\xff\x5b\x43\xc6\xff\xf8\x6f" "\xdb\x47\x96\x0d\x07\x00\x46\xa7\xbd\xb5\xbd\xba\xd0\x68\xd4\x37\x24\xc6" "\x34\xf1\xe3\x38\x17\xd5\x18\x2e\x91\xff\x97\x3d\x07\xd5\xe8\x9b\xf8\xd6" "\x59\xc5\x9a\x88\xfe\x45\xbf\x78\xa5\x7b\x4d\x1f\x2a\xca\xb2\xcf\x14\x6b" "\x50\x8f\xf1\x34\x66\xdd\x80\xf3\xe0\xe0\xa2\x8f\x88\xff\x8d\xba\x32\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x5f\x67\xf1\x17\x4b\xa3\x6e" "\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\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x17\xd7\xa7\x01\x00\x00\xff\xff\xf8\x4d\xd3" "\x43", 1315); syz_mount_image( /*fs=*/0x200000000840, /*dir=*/0x200000000080, /*flags=MS_POSIXACL|MS_SYNCHRONOUS|MS_RELATIME|MS_NOSUID|0x80c*/ 0x21081e, /*opts=*/0x200000000440, /*chdir=*/-1, /*size=*/0x523, /*img=*/0x200000000c00); // rename arguments: [ // old: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 32 00} (length 0x8) // } // new: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // ] memcpy((void*)0x200000000000, "./file2\000", 8); memcpy((void*)0x200000000300, "./file1\000", 8); syscall(__NR_rename, /*old=*/0x200000000000ul, /*new=*/0x200000000300ul); // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 34 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: mount_flags = 0x41 (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 = 0x66 (1 bytes) // size: len = 0x54d (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x54d) // } // ] // returns fd_dir memcpy((void*)0x2000000000c0, "ext4\000", 5); memcpy((void*)0x2000000001c0, "./bus\000", 6); *(uint8_t*)0x200000000080 = 0; memcpy( (void*)0x200000000200, "\x78\x9c\xec\xdd\xc1\x6f\x23\x57\x19\x00\xf0\x6f\x1c\x3b\x24\xbb\xd9\x26" "\x05\x0e\x50\x89\x52\x68\x61\x77\x05\x6b\x6f\x1a\xda\x46\x1c\x4a\x2b\x21" "\x38\x55\x02\xca\xbd\x84\xc4\x1b\x45\xeb\xc4\xab\xd8\x69\x37\x51\xc5\x66" "\xc5\x1f\x80\x84\x10\x20\x71\x82\x0b\x17\x24\xfe\x00\x24\x54\x89\x0b\x47" "\x84\x54\x09\xce\x20\x40\x20\x04\x5b\x38\x70\x80\x0e\x9a\xf1\x78\x37\x9b" "\xd8\xb1\xd3\x3a\x71\x36\xf9\xfd\xa4\xc9\xbc\x99\x79\x33\xdf\xf7\x9c\xcc" "\x64\x9e\x67\x34\x13\xc0\xb9\xf5\x54\x44\xbc\x14\x11\xef\xa6\x69\x7a\x35" "\x22\x66\x8b\xf9\xa5\x62\x88\xdd\xce\x90\xd5\x7b\xe7\xde\x9b\xcb\xd9\x90" "\x44\x9a\xbe\xfa\x8f\x24\x92\x62\x5e\x77\x5b\x49\x31\xbe\x58\xac\x36\x15" "\x11\x5f\xfb\x72\xc4\x37\x93\x83\x71\x5b\xdb\x3b\x37\x97\x1a\x8d\xfa\x66" "\x31\x5d\x6b\xaf\xdf\xaa\xb5\xb6\x77\xae\xad\xad\x2f\xad\xd6\x57\xeb\x1b" "\x0b\x0b\xf3\xcf\x2f\xbe\xb0\xf8\xdc\xe2\xf5\x3e\x99\x97\x8e\xd4\xce\x4b" "\x11\xf1\xe2\x17\xff\xf2\xfd\xef\xfc\xf4\x4b\x2f\xfe\xf2\xb3\x6f\xfc\xf1" "\xb5\xbf\x5d\xf9\x56\x96\xd6\x4c\xb1\x7c\x6f\x3b\x22\xd2\xa3\x6c\xba\x7c" "\xd8\xc2\x4e\xd3\x2b\xf9\x67\xb1\x77\x85\xcd\xa3\x44\x38\xe5\xca\x79\x0b" "\x0b\xd3\xbd\x6a\x4c\x1c\x98\x73\xf7\x98\x73\x02\x00\xa0\xb7\xec\x2c\xfa" "\x83\x11\xf1\xc9\x88\xb8\x1a\xb3\x31\x71\xf8\xe9\x2c\x00\x00\x00\xf0\x08" "\x4a\xbf\x30\x13\xff\x4d\x22\xd2\xde\x26\xfb\xcc\x07\x00\x00\x00\x1e\x21" "\xa5\xfc\x1e\xd8\xa4\x54\x2d\xee\x05\x98\x89\x52\xa9\x5a\xed\xdc\xc3\xfb" "\xe1\xb8\x50\x6a\x34\x5b\xed\xcf\xdc\x68\x6e\x6d\xac\x74\xee\x95\x9d\x8b" "\x4a\xe9\xc6\x5a\xa3\x7e\xbd\xb8\x57\x78\x2e\x2a\x49\x36\x3d\x9f\x97\x1f" "\x4c\x3f\xbb\x6f\x7a\x21\x22\x1e\x8f\x88\xef\xcd\x4e\xe7\xd3\xd5\xe5\x66" "\x63\x65\xdc\x5f\x7e\x00\x00\x00\xc0\x39\x71\x71\x5f\xff\xff\xdf\xb3\x9d" "\xfe\x7f\xd7\x9d\x71\x26\x07\x00\x00\x00\x8c\xce\xdc\xb8\x13\x00\x00\x00" "\x00\x8e\xdd\xb0\xfd\xff\x0b\xc7\x9c\x07\x00\x00\x00\x70\x7c\x5c\xff\x07" "\x00\x00\x80\x33\xed\x2b\xaf\xbc\x92\x0d\x69\xf7\xfd\xd7\x2b\xaf\x6f\x6f" "\xdd\x6c\xbe\x7e\x6d\xa5\xde\xba\x59\x5d\xdf\x5a\xae\x2e\x37\x37\x6f\x55" "\x57\x9b\xcd\xd5\xfc\x99\x7d\xeb\x83\xb6\xd7\x68\x36\x6f\x7d\x2e\x36\xb6" "\x6e\xd7\xda\xf5\x56\xbb\xd6\xda\x9e\x8a\xf5\xe6\xd6\x46\xfb\xb5\xb5\x87" "\x5e\x81\x0d\x00\x00\x00\x9c\xa0\xc7\x3f\xfe\xd6\xef\x93\x88\xd8\xfd\xfc" "\x74\x3e\x64\x26\x87\x5b\x75\xc8\x6a\xc0\x69\x55\xbe\x5f\x4a\x8a\x71\x8f" "\xdd\xfa\x0f\x8f\x75\xc6\x7f\x3e\xa1\xa4\x80\x13\x31\x31\xee\x04\x80\xb1" "\x29\x8f\x3b\x01\x60\x6c\x2a\xe3\x4e\x00\x18\xbb\x64\xc0\xf2\xbe\x37\xef" "\xfc\xa6\x18\x7f\x62\xb4\xf9\x00\x00\x00\xa3\x77\xf9\xa3\xfd\xaf\xff\x97" "\x0e\x5d\x73\xf7\xf0\xc5\xc0\xa9\x67\x27\x86\xf3\xcb\xf5\x7f\x38\xbf\xf2" "\xeb\xff\xc3\xde\xc9\xeb\x64\x01\xce\x94\xca\xa0\x33\x80\x43\xf7\xf9\x3b" "\x23\xce\x06\x18\x87\xf7\x7d\xfd\x7f\xa0\x34\x3d\x52\x42\x00\x00\xc0\xc8" "\xcd\xe4\x43\x52\xaa\x96\xbb\xd3\xa5\x52\xb5\x1a\x71\x29\x7f\x2d\x40\x25" "\xb9\xb1\xd6\xa8\x5f\x8f\x88\xc7\x22\xe2\x77\xb3\x95\x0f\x64\xd3\xf3\x79" "\xcd\x64\x60\x9f\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xe8\x48\xd3\x24\x52\x00\x00\x00\xe0\x4c\x8b\x28" "\xfd\x35\xf9\x55\xe7\x59\xfe\x97\x67\x9f\x99\xd9\xff\xfd\xc0\x64\xf2\x9f" "\xd9\x28\x5e\x11\xfa\xc6\x8f\x5e\xfd\xc1\xed\xa5\x76\x7b\x73\x3e\x9b\xff" "\xcf\xfb\xf3\xdb\x3f\x2c\xe6\x3f\x3b\x8e\x6f\x30\x00\x00\x00\xe0\x5c\x18" "\xf0\x02\xff\x87\x75\xfb\xe9\xdd\x7e\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\x8c\xd2\x3b\xf7\xde\x5c\xee" "\x0e\x27\x19\xf7\xef\x2f\x47\xc4\x5c\xaf\xf8\xe5\x98\xca\xc7\x53\x51\x89" "\x88\x0b\xff\x4a\xa2\xbc\x67\xbd\x24\x22\x26\x46\x10\x7f\x3a\xfb\xf1\x91" "\x98\x3c\x18\x3f\xc9\xd2\xba\x1f\xb2\x57\xfc\xe9\x11\xc4\xdf\xbd\x9b\xc7" "\xef\xd1\xfe\x3c\x7e\xec\x16\x9f\x42\xaf\xf8\x17\x47\x10\x1f\xce\xb3\xb7" "\xb2\xe3\xcf\x4b\xbd\xf6\xbf\x52\x3c\x95\x8f\x7b\xef\x7f\xe5\x88\x87\xa6" "\xdf\xab\xfe\xc7\xbf\xb8\x7f\xfc\x9b\xe8\xb3\xff\x5f\xfa\x74\x6b\xa8\x18" "\x4f\xbc\xfd\xf3\x5a\xdf\xf8\x77\x23\x9e\x28\x1f\x88\x7f\x27\x8b\xd0\x8d" "\x9f\xf4\x89\xff\xf4\x90\x6d\xfc\xc6\xd7\x77\x76\xfa\x2d\x4b\x7f\x1c\x71" "\xb9\xe7\xff\x9f\xa4\x5b\x25\x3b\x42\x46\xad\xbd\x7e\xab\xd6\xda\xde\xb9" "\xb6\xb6\xbe\xb4\x5a\x5f\xad\x6f\x2c\x2c\xcc\x3f\xbf\xf8\xc2\xe2\x73\x8b" "\xd7\x6b\x37\xd6\x1a\xf5\xce\xcf\x34\x4d\xd3\x83\x31\xbe\xfb\xb1\x5f\xbc" "\x7b\x58\xfb\x2f\xf4\x89\x3f\x37\xa0\xfd\xcf\x1c\xd8\xda\x64\xcf\x18\xff" "\x7b\xfb\xf6\xbd\x0f\x75\x8a\x95\x5e\xf1\xaf\x3c\xdd\x23\xfe\xaf\x7f\x52" "\xd4\x38\x18\xbf\x54\xfc\xef\xfb\x54\x51\xce\x96\x5f\xee\x96\x77\x3b\xe5" "\xbd\x9e\xfc\xd9\x6f\x9f\x3c\xac\xfd\x2b\x7d\xda\x3f\xe8\xf7\x7f\xa5\xdf" "\x46\xf7\xb9\xfa\xd5\x6f\xff\x69\xc8\xaa\x00\xc0\x09\x68\x6d\xef\xdc\x5c" "\x6a\x34\xea\x9b\x67\xb6\x90\xf5\xd2\x87\xac\x9c\x9d\x9d\x9d\x8a\x9c\x8f" "\xab\xf0\x72\xf4\xaf\xd3\xfd\x8b\x38\x25\xa9\x9e\x48\xe1\x4e\xff\x45\x53" "\x43\xfe\x25\x4c\x3c\x98\xd3\xed\x7d\xbc\x8f\xc4\x92\x38\x0d\x1f\x4b\x5e" "\x18\xeb\x61\x09\x00\x00\x38\x06\x0f\x4e\xfa\xc7\x9d\x09\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9c\x5f\x27\xf1\x38\xb1\x7d" "\x21\xa7\x1e\x14\x93\x51\x3c\x42\x1b\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x24\xfe\x1f\x00" "\x00\xff\xff\x38\xf4\xd8\xbf", 1357); syz_mount_image(/*fs=*/0x2000000000c0, /*dir=*/0x2000000001c0, /*flags=MS_RDONLY|MS_MANDLOCK*/ 0x41, /*opts=*/0x200000000080, /*chdir=*/0x66, /*size=*/0x54d, /*img=*/0x200000000200); // fspick arguments: [ // dfd: fd_dir (resource) // path: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // flags: fspick_flags = 0x0 (8 bytes) // ] // returns fd_fscontext memcpy((void*)0x200000000000, ".\000", 2); res = syscall(__NR_fspick, /*dfd=*/0xffffff9c, /*path=*/0x200000000000ul, /*flags=*/0ul); if (res != -1) r[0] = res; // fsconfig$FSCONFIG_CMD_RECONFIGURE arguments: [ // fd: fd_fscontext (resource) // cmd: const = 0x7 (8 bytes) // key: const = 0x0 (8 bytes) // value: const = 0x0 (8 bytes) // aux: const = 0x0 (8 bytes) // ] syscall(__NR_fsconfig, /*fd=*/r[0], /*cmd=*/7ul, /*key=*/0ul, /*value=*/0ul, /*aux=*/0ul); // quotactl$Q_GETQUOTA arguments: [ // cmd: quota_cmd_getquota = 0xffffffff80000701 (8 bytes) // special: ptr[in, blockdev_filename] { // union blockdev_filename { // loop: loop_filename { // prefix: buffer: {2f 64 65 76 2f 6c 6f 6f 70} (length 0x9) // id: proc = 0x0 (1 bytes) // z: const = 0x0 (1 bytes) // } // } // } // id: uid (resource) // addr: nil // ] memcpy((void*)0x200000000040, "/dev/loop", 9); *(uint8_t*)0x200000000049 = 0x30; *(uint8_t*)0x20000000004a = 0; syscall(__NR_quotactl, /*cmd=Q_GETQUOTA_GRP*/ 0xffffffff80000701ul, /*special=*/0x200000000040ul, /*id=*/0, /*addr=*/0ul); } 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; }