// https://syzkaller.appspot.com/bug?id=ff9fe3de46d66c92f26a627abe9e85d0518c9890 // 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 279 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #endif #ifndef __NR_unlinkat #define __NR_unlinkat 35 #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"); } 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; retry: const int umount_flags = MNT_FORCE | UMOUNT_NOFOLLOW; 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 (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); 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)) { } memcpy((void*)0x20000080, "hfsplus\000", 8); memcpy((void*)0x20000140, "./file1\000", 8); memcpy( (void*)0x20000180, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\x6c\xd6\x4e\x36\x94\xd4" "\x6d\x93\x36\x45\x95\x12\x35\x12\x20\x22\x12\x3b\x56\x0a\xe6\xd2\x80\x10" "\xca\xa1\x42\x55\x39\x70\xb6\x12\x27\xb1\xb2\x49\x8b\xed\x22\xb7\x42\xd4" "\xbc\x5f\x7b\xc8\x1f\x50\x0e\xbe\x71\x40\x48\xdc\x23\xca\x85\x0b\xdc\x7a" "\xf5\xb1\x12\x82\x4b\x2f\x98\xd3\xa2\x99\x9d\x5d\x6f\xfc\xba\x6e\x13\xaf" "\x1d\x3e\x9f\x6a\xfc\x3c\x33\xcf\x3c\xcf\xfc\x9e\xdf\xce\xec\xec\x4b\xa3" "\x0d\xf0\x7f\xeb\xfa\xc5\x34\x1f\xa6\xc8\xf5\x8b\x6f\x2c\x97\xeb\x6b\xab" "\xd3\xed\xb5\xd5\xe9\x7b\xbd\x7a\x92\xe3\x49\x1a\x49\xb3\x5b\xa4\xf8\x4f" "\xa7\xd3\xf9\x38\xb9\x96\xee\x92\x97\xcb\x8d\xf5\x70\xc5\x4e\xc7\x79\x30" "\x3f\xf3\xd6\x27\x9f\xad\x7d\xda\x5d\x6b\xd6\x4b\xb5\x7f\x63\xb7\x7e\xc3" "\x59\xa9\x97\x9c\x4f\x72\xac\x2e\x1f\xd7\x78\x37\xf6\x1a\xef\xc4\x5e\xc3" "\x15\xfd\x19\x96\x09\xbb\xd0\x4b\x1c\x8c\xda\x58\x92\x4e\xe5\x5f\x0f\xba" "\x5b\x7e\xf2\xb7\x67\xfa\x2d\x03\x5a\xdb\xf5\xde\xf3\xcc\x07\x8e\x80\xa2" "\x7b\xdf\xdc\x62\x22\x39\x59\x5f\xe8\xe5\xeb\x80\xee\x5d\xb1\x7b\xcf\x3e" "\xd2\x56\x46\x1d\x00\x00\x00\x00\x1c\x80\x67\xd7\xb3\x9e\xe5\x9c\x1a\x75" "\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x94\xd4\xbf\xff\x5f\xd4\x4b" "\xa3\x57\x3f\x9f\xa2\xf7\xfb\xff\xe3\xf5\xb6\xd4\xf5\xc3\xe5\xdc\xfe\x76" "\x7f\xf8\xa4\xe2\x00\x00\x00\x00\x00\x00\x00\x80\x03\x74\x6e\x3d\xeb\x59" "\xce\xa9\xde\x7a\xa7\xa8\xbe\xf3\x7f\xb5\x5a\x39\x5d\xfd\xfd\x52\xde\xcd" "\x62\xe6\xb2\x90\x4b\x59\xce\x6c\x96\xb2\x94\x85\x4c\x25\x99\x18\x18\x68" "\x7c\x79\x76\x69\x69\x61\xaa\xdf\xb3\xf7\x7f\x06\x6c\xed\x79\x65\xdb\x9e" "\x57\xf6\x08\xf4\x78\x5d\xb6\x1e\xc7\xac\x01\x00\x00\x00\x00\x00\x00\xe0" "\xa9\xf3\xcb\x5c\xdf\xf8\xfe\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x0e\x83\x22\x39\xd6\x2d\xaa\xe5\x74\xaf\x3e\x91\x46\x33\xc9\x89\x24" "\xe3\xe5\x7e\x2b\xc9\x3f\x7a\xf5\xa3\xec\xe1\xa8\x03\x00\x00\x00\x80\x2f" "\xa0\x33\xe4\x7e\xcf\xae\x67\x3d\xcb\x39\xd5\xef\x57\x54\xef\xf9\x5f\xac" "\xde\xf7\x9f\xc8\xbb\xb9\x9f\xa5\xcc\x67\x29\xed\xcc\xe5\x66\xf5\x59\x40" "\xf7\x5d\x7f\x63\x6d\x75\xba\xbd\xb6\x3a\x7d\xaf\x5c\xb6\x8e\xfb\xdd\x7f" "\xef\x2b\xdc\x6a\xc4\x74\x3f\x7b\xd8\xfe\xc8\x67\xab\x3d\x5a\xb9\x95\xf9" "\x6a\xcb\xa5\xdc\xc8\xdb\x29\x8a\x9b\x69\x54\x3d\x4b\x67\x7b\xf1\x6c\x1f" "\xd7\x2f\xca\x98\x8a\xd7\xbb\xc6\x86\x8c\xec\x66\x5d\x96\x33\xff\xb0\x2e" "\xb7\xf8\x60\x5f\x93\xdd\xc9\x3e\x3f\x4c\x99\xa8\x32\x32\xd6\xcf\xc8\x64" "\x1d\x5b\x99\x8d\xe7\x76\xcf\xc4\x3e\x1f\x9d\xcd\x47\x9a\x4a\xa3\x1f\xec" "\xe9\x4d\x47\xda\x34\x89\x47\x72\xfe\xfa\x90\xc7\x3b\x59\x97\xe5\x7c\x7e" "\xbb\x53\xce\x47\x62\x73\x26\xae\x0c\x9c\x7d\x2f\xee\x9e\xf3\xe4\x6b\x7f" "\xfe\xc3\x8f\xef\xb4\xef\xdf\xbd\x73\x6b\xf1\xe2\xe1\x99\xd2\x70\x8e\xd5" "\x65\xf7\x79\xa5\xb5\x35\x13\xd3\x03\x99\x78\xe9\x69\xce\xc4\x16\x93\x55" "\x26\xce\xf4\xd7\xaf\xe7\x07\xf9\x51\x2e\xe6\x7c\xde\xcc\x42\xe6\xf3\xd3" "\xcc\x66\x29\x73\x39\x9f\xef\x57\xb5\xd9\xfa\x7c\x2e\x06\x2e\xf9\x1d\x32" "\x75\xed\x91\xb5\x37\xf7\x8a\x64\xbc\x3e\x43\xbb\x0f\xd6\xa3\x31\x65\x8f" "\x98\x5e\xad\xfa\x9e\xca\x7c\x7e\x98\xb7\x73\x33\x73\x79\xad\xfa\xef\x4a" "\xa6\xf2\xad\x5c\xcd\xd5\xcc\x0c\x3c\xc2\x67\x86\x78\xa6\x6d\xec\x70\xd5" "\x77\xbe\xbc\x6d\xf0\x17\xbe\x5e\x57\x5a\x49\x7e\x57\x97\x95\xdb\xcd\xbd" "\x26\xfe\x84\x95\x79\x7d\x6e\x20\xaf\x83\xcf\xb9\x13\x55\xdb\xe0\x96\x8d" "\x2c\x3d\xbf\x8f\xfb\x51\x2f\x4b\x7f\xdc\x3d\x94\xe6\x57\xea\x4a\x79\x8c" "\x5f\xd5\xe5\xe1\xb0\x39\x13\x53\x03\x99\x78\x61\xf7\x4c\xfc\xbe\x7a\x5a" "\x59\x6c\xdf\xbf\xbb\x70\x67\xf6\x9d\xe1\x0e\xf7\xfc\x87\x75\xa5\xbc\x8e" "\x7e\x73\xa8\xee\x12\xe5\xf9\xf2\x7c\xf9\x60\x55\x6b\x8f\x9e\x1d\x65\xdb" "\x0b\x75\xdb\x58\xb5\x6c\xe4\x6b\xbc\xfe\xc6\xa5\xdb\xaf\xb1\xa5\xed\x4c" "\xbf\xad\x7b\xa5\xae\xec\x78\xa5\x8e\xd7\xaf\xe1\xb6\x8e\x74\xa5\x6a\x7b" "\x69\xdb\xb6\xe9\xaa\xed\xec\x40\xdb\xe6\xd7\x5b\xed\xfe\xeb\xa1\xa7\xe1" "\xcb\x1f\x80\xa7\xd6\xc9\x6f\x9c\x1c\x6f\xfd\xb3\xf5\xf7\xd6\x47\xad\x5f" "\xb7\xee\xb4\xde\x38\xf1\xbd\xe3\xdf\x3e\xfe\xca\x78\xc6\xfe\x3a\xf6\x9d" "\xe6\xe4\xb1\xaf\x36\x5e\x29\xfe\x94\x8f\xf2\xf3\x8d\xf7\xff\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xc0\xe7\xb7\xf8\xde\xfb\x77\x67\xdb\xed\xb9\x85\x4d\x95\x4e\xa7" "\xf3\xc1\x0e\x4d\x47\xb9\xd2\xfb\x39\xb3\x03\x3c\xe8\xcb\xcf\x24\xa3\x9a" "\xf2\x78\x92\xc3\x91\xf9\xff\x76\x3a\x9d\x7a\x4b\x71\x18\xe2\xd9\xbd\xd2" "\x29\x1d\x4f\xe7\x73\x76\xff\x4b\x92\xe1\x76\x6e\x26\xd9\xae\xe9\xdc\xe8" "\x93\x30\xe2\x27\x26\xe0\x89\xbb\xbc\x74\xef\x9d\xcb\x8b\xef\xbd\xff\xcd" "\xf9\x7b\xb3\xb7\xe7\x6e\xcf\xdd\x9f\xb9\x7a\x75\x66\x72\xe6\xea\x6b\xd3" "\x97\x6f\xcd\xb7\xe7\x26\xbb\x7f\x47\x1d\x25\xf0\x24\x6c\xdc\xf4\x47\x1d" "\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\xac\x83\xf8\xe7\x04\x3b\x1f" "\xfd\xc4\x41\x4e\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x38\xa2\xae\x5f\x4c\xf3\x61\x8a\x4c\x4d" "\x5e\x9a\x2c\xd7\xd7\x56\xa7\xdb\xe5\xd2\xab\x6f\xec\xd9\x4c\xd2\x48\x52" "\xfc\x2c\x29\x3e\x4e\xae\xa5\xbb\x64\x62\x60\xb8\x62\xa7\xe3\x3c\x98\x9f" "\x79\xeb\x93\xcf\xd6\x3e\xdd\x18\xab\xd9\xdb\xbf\xb1\x5b\xbf\xe1\xac\xd4" "\x4b\xce\x27\x39\x56\x97\x8f\x6b\xbc\x1b\x5f\x78\xbc\xa2\x3f\xc3\x32\x61" "\x17\x7a\x89\x83\x51\xfb\x5f\x00\x00\x00\xff\xff\x0c\x91\x06\x1f", 1654); syz_mount_image(/*fs=*/0x20000080, /*dir=*/0x20000140, /*flags=MS_STRICTATIME|MS_SILENT|MS_NOATIME*/ 0x1008400, /*opts=*/0x20000100, /*chdir=*/0x85, /*size=*/0x676, /*img=*/0x20000180); memcpy((void*)0x20000000, ".\000", 2); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x20000000ul, /*flags=*/0ul, /*mode=*/0ul); if (res != -1) r[0] = res; memcpy((void*)0x20000100, "./file1\000", 8); syscall(__NR_unlinkat, /*fd=*/r[0], /*path=*/0x20000100ul, /*flags=*/0ul); memcpy((void*)0x20000000, "hfsplus\000", 8); memcpy((void*)0x20000080, "./bus\000", 6); memcpy( (void*)0x200000c0, "\x78\x9c\xec\xdd\xc1\x6f\x1c\x57\x1d\x07\xf0\xef\xac\xd7\x8e\x1d\xaa\xe0" "\xb4\x49\x1b\xa1\x22\xa2\x44\x2a\x48\x11\x89\x1d\x2b\x05\x73\x21\x20\x84" "\x72\xa8\x50\x55\x0e\x9c\xad\xc4\x49\xac\x6c\x92\xca\x71\x21\xa9\x10\xb8" "\x80\xe0\x84\xc4\xa1\x7f\x40\x41\xf2\x8d\x13\x52\xef\x41\xe1\x5c\x6e\xbd" "\xfa\x58\x09\x89\x4b\xc4\x21\xe2\xb2\x68\x66\x67\x9c\xcd\xee\x3a\xb6\x13" "\x3b\x76\xe8\xe7\x53\x8d\xdf\x9b\x79\x6f\xde\xfc\xf6\x37\x6f\x66\xbc\xdb" "\x58\x1b\xe0\x4b\xeb\xd2\x99\xb4\xef\xa7\xc8\xa5\x33\xef\xdc\x2d\xd7\xd7" "\xd7\xe6\x3a\xeb\x6b\x73\x87\xea\xe6\x4e\x92\xb2\xde\x4a\xda\xbd\x22\xc5" "\xad\xa4\x78\x90\x5c\x2c\xdb\x8b\x24\x27\xea\x32\x7d\xe5\x90\x8f\x97\xe6" "\xdf\xfb\xfc\xe1\xfa\x17\xbd\xb5\x76\xbd\x54\xfd\x5b\x4f\xdb\x6f\x84\x11" "\x7d\x57\x9b\xca\xc9\x24\x63\x75\x39\x6c\x7c\xbb\x87\x58\x6d\xc6\x2c\xc7" "\xb9\x9c\xe4\x95\xa1\x2e\x13\xdb\x1d\xeb\x89\x8e\x65\xd2\x4e\xd7\x25\xec" "\xbb\xee\x90\xd5\x9d\xec\xbe\x93\xeb\x16\x38\x60\x9a\xa7\x53\xd1\x7b\x6e" "\x0e\x99\x4e\x0e\x27\x99\xac\x7f\x0f\x68\x9e\xb4\xad\x17\x17\xe1\xde\xd8" "\xd1\x5d\x0e\x00\x00\x00\x5e\x52\x9f\xdd\xde\xef\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\xe0\xe5\x53\x7f\xff\x7f\x91\xa4\xdb\xed\x76\x5b\x75\x3d" "\x27\x53\x34\xdf\xff\x3f\xd1\x6c\xab\xeb\x2f\xb5\xfb\xfb\x1d\x00\x00\x00" "\x00\x00\x00\x00\x00\xec\x82\x6f\x3c\xca\xa3\xdc\xcd\x91\x66\xbd\x5b\xa4" "\x95\xe4\x54\xb5\x72\x2c\xff\xed\x26\x5f\xc9\x07\xb9\x93\xc5\x2c\xe7\x6c" "\xee\x66\x21\x2b\x59\xc9\x72\x66\x93\x4c\xf7\x0d\x34\x71\x77\x61\x65\x65" "\x79\x76\x63\xcf\xd2\xe8\x3d\xcf\x67\x6a\xc4\x9e\xe7\x5f\xd4\x2b\x06\x00" "\x00\x00\x00\x00\x00\x80\xff\x4b\xbf\xc9\xa5\xc7\xff\xff\x1f\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x82\x22\x19\xeb\x15\xd5\x72\xac\xa9" "\x4f\xa7\xd5\xce\xe3\xb6\xac\x26\xff\x4c\x32\xb1\xdf\xf1\xee\x40\x31\x6a" "\xe3\xfd\x17\x1f\x07\x00\x00\x00\x3c\x97\xc9\x67\xd8\xe7\xab\x8f\xf2\x28" "\x77\x73\xa4\x59\xef\x16\xd5\x7b\xfe\xd7\xab\xf7\xcb\x93\xf9\x20\xb7\xb2" "\x92\xa5\xac\xa4\x93\xc5\x5c\xa9\xdf\x43\x97\xef\xfa\x5b\xeb\x6b\x73\x9d" "\xf5\xb5\xb9\x9b\xe5\x32\x3c\xee\x0f\xfe\xbd\xa3\x30\xaa\x11\xeb\xcf\x17" "\x46\x1f\xf9\x44\xd5\x63\x2a\x57\xb3\x54\x6d\x39\x9b\xcb\x55\x30\x57\xd2" "\xaa\xf6\x2c\x9d\x68\xe2\x19\x1d\xd7\x47\x65\x4c\xc5\xf7\x6b\xdb\x8c\xac" "\x5d\xa7\xb5\x3c\xd8\x9f\x36\xfb\x14\x61\x57\xec\xf4\xa3\x88\xe9\x32\xb8" "\x64\x23\x23\x33\x75\x6c\x65\x36\x8e\xf6\x32\x50\x54\x1f\xd4\x24\x83\x99" "\xd8\xf2\xec\xb4\x07\x8f\x94\x56\xc6\x37\x8e\x34\x9b\xd6\xc6\x27\x3f\xc7" "\xf6\x20\xe7\x87\xeb\xb2\x7c\x3d\xbf\xdf\xd3\x9c\xef\xd4\x46\x26\x5a\xa9" "\x32\x71\xbe\x6f\xf6\xbd\xfe\xf4\x4c\x24\xdf\xfc\xf4\xaf\x3f\xbb\xde\xb9" "\x75\xe3\xfa\xd5\x3b\x67\x0e\xce\x4b\xda\xc2\xd8\x26\xdb\x07\xe7\xc4\x5c" "\x5f\x26\xde\x78\xa9\x33\xd1\xde\x61\xff\x99\x2a\x13\xc7\x37\xd6\x2f\xe5" "\xc7\xf9\x69\xce\xe4\x64\xde\xcd\x72\x96\xf2\xf3\x2c\x64\x25\x8b\xe9\xd6" "\xed\x0b\xf5\x7c\x2e\x7f\x4e\x3f\x3d\x53\x17\x9f\x58\x7b\x77\xab\x48\x26" "\xea\xf3\xd2\x3b\x67\xdb\x89\xe9\x64\x7e\x54\xd5\x16\x72\xaa\xda\xf7\x48" "\x96\x52\xe4\x76\xae\x64\x31\x6f\x57\xff\x9d\xcf\x6c\xbe\x93\x0b\xb9\x90" "\xf9\xbe\x33\x7c\x7c\xd3\xb8\xab\xd7\x56\x5d\xf5\xad\xc1\xab\xbe\x39\xd3" "\x7f\x1f\x19\xfc\xe9\x6f\xd5\x95\xa9\x24\x7f\xa8\xcb\xa1\x1c\x0c\xd8\x6c" "\x76\xee\x96\xde\xbd\xbf\xcc\xeb\xd1\xbe\xbc\xf6\x66\xfd\xc3\x8d\x5e\x47" "\xfb\xae\x83\x99\xbe\x2c\xbd\xda\x64\x67\x7c\xe4\xe0\xcf\x72\x6f\x6c\x7f" "\xad\xae\x94\xc7\xf8\x6d\x5d\x1e\x0c\xd3\x75\x26\xca\x0b\xa8\x79\x4a\x34" "\xd1\xbd\xd6\xcb\x44\xbb\x7a\x16\x0d\xcf\xf3\x3f\x57\xd7\xc6\x9d\xce\xad" "\x1b\xcb\xd7\x17\xde\xdf\x64\xfc\xd5\x81\xf5\xb7\xea\xb2\x9c\x56\x6b\x5f" "\xdf\x6e\x94\xa3\x4f\xc5\xee\x2a\xe7\xcb\xab\x99\xac\xef\x24\x4f\xce\x8e" "\xb2\xed\xb5\x72\xf3\x2f\x06\xdb\x66\xab\xb6\x63\x1b\x77\xa0\xd6\x60\xdb" "\xd8\xf1\xaa\xad\x28\x9a\x2b\xf5\x27\x9b\x5e\xa9\x13\xf5\xef\x70\xc3\x23" "\x9d\xaf\xda\xde\x18\xd9\x36\x57\xb5\x9d\xe8\x6b\x7b\xe2\xf7\xad\xdc\x4e" "\x27\x57\x5e\x40\xfe\x00\x78\x4e\xd3\x39\x3c\x31\xf5\xaf\xa9\xcf\xa6\x3e" "\x99\xfa\xdd\xd4\xf5\xa9\x77\x26\x7f\x78\xe8\xbb\x87\xde\x9c\xc8\xf8\x3f" "\xc6\xbf\xd7\x9e\x19\x7b\xab\xf5\x66\xf1\xb7\x7c\x92\x5f\x3d\x7e\xff\x0f" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x3c\xbb\x3b\xf7\x3e\xbc\xb1\xd0\xe9\x2c\x2e\x8f\xae" "\xb4\x36\x6f\xda\xa2\xb2\xd5\xc8\x03\x95\xa2\xfe\x42\x9f\x67\x3a\xd6\x01" "\xac\x4c\x26\x79\x62\xcb\x78\xb9\x61\xa0\xf3\xfc\xb5\x4f\xef\x95\x27\x61" "\xef\xc2\x98\x1a\x0c\x63\xa8\xd2\xfd\x75\xf2\xc2\xf3\xd3\x7c\x89\xe0\xe8" "\x3e\x7f\x2c\x2b\xed\x6c\x67\xc0\x8b\x5b\xf5\xf9\x68\xdf\x67\xc2\x41\xaf" "\x8c\x65\xf4\x04\xd8\xdf\xfb\x12\xb0\xf7\xce\xad\xdc\x7c\xff\xdc\x9d\x7b" "\x1f\x7e\x7b\xe9\xe6\xc2\xb5\xc5\x6b\x8b\xb7\xc6\x2f\x5c\x98\x9f\x99\xbf" "\xf0\xf6\xdc\xb9\xab\x4b\x9d\xc5\x99\xde\xcf\xfd\x8e\x12\xd8\x0b\x8f\x1f" "\xfa\xfb\x1d\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\x5d\xa3\xfe\x30" "\xe0\xd4\x2b\x5b\xfd\xd1\xc8\xb6\xfe\xc6\xc3\xbf\x2c\x04\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x76" "\xc5\xa5\x33\x69\xdf\x4f\x91\xd9\x99\xb3\x33\xe5\xfa\xfa\xda\x5c\xa7\x5c" "\x9a\xfa\xe3\x9e\xed\x24\xad\x56\x52\xfc\x32\x29\x1e\x24\x17\xd3\x5b\x32" "\xdd\x37\x5c\x91\xbf\x3c\x48\x77\xc4\x71\x3e\x5e\x9a\x7f\xef\xf3\x87\xeb" "\x5f\x54\x2b\x87\x9a\xf1\x52\x94\x83\xd6\xe5\x73\x58\xad\x97\x9c\x4c\x32" "\x56\x97\xbb\x35\xde\xe5\xe7\x1e\xaf\xf8\x4f\xf3\x0a\xcb\x84\x9d\x6e\x12" "\x07\xfb\xed\x7f\x01\x00\x00\xff\xff\x34\x2b\xf7\x23", 1705); syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000080, /*flags=MS_LAZYTIME|MS_SYNCHRONOUS*/ 0x2000010, /*opts=*/0x20000040, /*chdir=*/0, /*size=*/0x6a9, /*img=*/0x200000c0); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }