// https://syzkaller.appspot.com/bug?id=7189a7335047c1bff22b83401b2ced56252aae7a // 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_bpf #define __NR_bpf 321 #endif #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; static __thread int clone_ongoing; static __thread int skip_segv; static __thread jmp_buf segv_env; static void segv_handler(int sig, siginfo_t* info, void* ctx) { if (__atomic_load_n(&clone_ongoing, __ATOMIC_RELAXED) != 0) { exit(sig); } uintptr_t addr = (uintptr_t)info->si_addr; const uintptr_t prog_start = 1 << 20; const uintptr_t prog_end = 100 << 20; int skip = __atomic_load_n(&skip_segv, __ATOMIC_RELAXED) != 0; int valid = addr < prog_start || addr > prog_end; if (skip && valid) { _longjmp(segv_env, 1); } exit(sig); } static void install_segv_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; syscall(SYS_rt_sigaction, 0x20, &sa, NULL, 8); syscall(SYS_rt_sigaction, 0x21, &sa, NULL, 8); memset(&sa, 0, sizeof(sa)); sa.sa_sigaction = segv_handler; sa.sa_flags = SA_NODEFER | SA_SIGINFO; sigaction(SIGSEGV, &sa, NULL); sigaction(SIGBUS, &sa, NULL); } #define NONFAILING(...) \ ({ \ int ok = 1; \ __atomic_fetch_add(&skip_segv, 1, __ATOMIC_SEQ_CST); \ if (_setjmp(segv_env) == 0) { \ __VA_ARGS__; \ } else \ ok = 0; \ __atomic_fetch_sub(&skip_segv, 1, __ATOMIC_SEQ_CST); \ ok; \ }) 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; 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)) { } NONFAILING(memcpy((void*)0x200000000040, "ext4\000", 5)); NONFAILING(memcpy((void*)0x200000000200, "./file1\000", 8)); NONFAILING(*(uint8_t*)0x200000000240 = 0); NONFAILING(memcpy( (void*)0x200000000f00, "\x78\x9c\xec\xdd\xcf\x6b\x1c\x55\x1c\x00\xf0\xef\x6c\x36\xfd\xad\x4d\xa1" "\x14\xf4\x20\x81\x1e\xac\xd4\x6e\x9a\xc4\x1f\x15\x3c\xd4\x83\x07\xd1\x62" "\x41\xef\x75\x49\xa6\xa1\x64\xd3\x2d\xd9\x4d\x69\x62\xc1\xf6\x60\x2f\x5e" "\xa4\x08\x22\xf6\xe2\x1f\xe0\xdd\x63\xf1\x1f\xf0\xaf\x28\x68\xa1\x48\x09" "\x7a\xf0\xb2\x32\x9b\xd9\x34\x3f\x76\xb3\x69\xba\x6d\xb6\xd9\xcf\x07\x26" "\x79\x6f\x66\x76\xdf\xbc\x99\xf9\x3e\xde\xdb\xb7\xcb\x04\x30\xb0\x46\xb3" "\x3f\x85\x88\xd7\x22\xe2\xfb\x24\xe2\xe8\x9a\x6d\xc5\xc8\x37\x8e\xae\xec" "\xb7\xfc\xf8\xe6\x54\xb6\x24\xd1\x68\x7c\xf1\x77\x12\x49\xbe\xae\xb5\x7f" "\x92\xff\x3f\xdc\xca\x14\x23\x7e\xff\x36\xe2\x74\x61\x73\xb9\xb5\xc5\xa5" "\xd9\x72\xa5\x92\xce\xe7\xf9\xb1\xfa\xdc\xb5\xb1\xda\xe2\xd2\x99\x2b\x73" "\xe5\x99\x74\x26\xbd\x3a\x31\x39\x79\xee\xdd\xc9\x89\x0f\xde\x7f\xaf\x67" "\x75\x7d\xeb\xe2\xbf\x3f\x7d\x7e\xff\x93\x73\xdf\x9d\x5c\xfe\xf1\xd7\x87" "\xc7\xee\x26\x71\x3e\x8e\xe4\xdb\xd6\xd6\xe3\x19\xdc\x5a\x9b\x19\x8d\xd1" "\xfc\x9c\x0c\xc7\xf9\x0d\x3b\x8e\xf7\xa0\xb0\x7e\x92\xec\xf6\x01\xb0\x23" "\x43\x79\x9c\x0f\x47\xd6\x06\x1c\x8d\xa1\x3c\xea\x81\xbd\xef\x9b\x88\x68" "\x00\x03\x2a\x11\xff\x30\xa0\x5a\xfd\x80\xd6\xd8\xbe\x47\xe3\xe0\x97\xc6" "\xa3\x8f\x56\x06\x40\x9b\xeb\x5f\x5c\xf9\x6c\x24\x0e\x34\xc7\x46\x87\x96" "\x93\x75\x23\xa3\x6c\xbc\x3b\xd2\x83\xf2\xb3\x32\x7e\xfb\xeb\xde\xdd\x6c" "\x89\xde\x7d\x0e\x01\xd0\xd5\xad\xdb\x11\x71\xb6\x58\xdc\xdc\xfe\x25\x79" "\xfb\xb7\x73\x67\xb7\xb1\xcf\xc6\x32\xb4\x7f\xf0\xe2\xdc\xcf\xfa\x3f\x6f" "\xb7\xeb\xff\x14\x56\xfb\x3f\xd1\xa6\xff\x73\xb8\x4d\xec\xee\x44\xf7\xf8" "\x2f\x3c\xec\x41\x31\x1d\x65\xfd\xbf\x0f\x37\xf6\x7f\x9b\x53\x4e\xab\x93" "\x56\x23\x43\x79\xee\x95\x66\x9f\x6f\x38\xb9\x7c\xa5\x92\x66\x6d\xdb\xab" "\x11\x71\x2a\x86\xf7\x67\xf9\xad\xe6\x73\xce\x2d\x3f\x68\x74\xda\xb6\xb6" "\xff\x97\x2d\x59\xf9\xad\xbe\xe0\x8a\xc2\xc3\xe2\xfe\xf5\xaf\x99\x2e\xd7" "\xcb\xcf\x56\xeb\x27\x1e\xdd\x8e\x78\xbd\x6d\xff\x37\x59\xbd\xfe\x49\x9b" "\xeb\x9f\x9d\x8f\x8b\xeb\xdf\xaa\xb1\xbf\x43\x19\x27\xd2\x7b\x6f\x74\x2a" "\xbf\x7b\xfd\x9f\xaf\xc6\x2f\x11\x6f\xb6\x1d\xff\x3c\x99\xd1\x4a\xb6\x9e" "\x9f\x1c\x6b\xde\x0f\x63\xad\xbb\x62\xb3\x7f\xee\x9c\xf8\xa3\x53\xf9\xbb" "\x5d\xff\xec\xfa\x1f\xda\xba\xfe\x23\xc9\xda\xf9\xda\xda\x53\xbc\xf9\xc1" "\xfc\xff\x81\xff\xd2\x4e\xbb\xec\xf4\xfe\xdf\x97\x7c\xd9\x4c\xef\xcb\xd7" "\xdd\x28\xd7\xeb\xf3\xe3\x11\xfb\x92\xcf\x36\xaf\x9f\x78\xf2\xda\x56\xbe" "\xb5\x7f\x56\xff\x53\x27\xb7\x6e\xff\xda\xdd\xff\x59\xd5\xbe\xda\xe6\x69" "\xb8\x73\xfc\x4e\xc7\x5d\xfb\xe1\xfa\x4f\x3f\xd5\xf5\x7f\xfa\xc4\x83\x4f" "\xbf\xfe\xb9\x53\xf9\xdb\xbb\xfe\xef\x34\x53\xa7\xf2\x35\xdb\x69\xff\xb6" "\x7b\x80\xcf\x72\xee\x00\x00\x00\x00\x00\x00\xa0\xdf\x14\x22\xe2\x48\x24" "\x85\xd2\x6a\xba\x50\x28\x95\x56\xbe\xdf\x71\x3c\x0e\x15\x2a\xd5\x5a\xfd" "\xf4\xe5\xea\xc2\xd5\xe9\x68\xfe\x56\x76\x24\x86\x0b\xad\x99\xee\xa3\x6b" "\xbe\x0f\x31\x9e\x7f\x1f\xb6\x95\x9f\xd8\x90\x9f\x8c\x88\x63\x11\xf1\xc3" "\xd0\xc1\x66\xbe\x34\x55\xad\x4c\xef\x76\xe5\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x4f\x1c\xee\xf0\xfb\xff\xcc\x9f\x43" "\xbb\x7d\x74\xc0\x73\xb7\xee\x91\xdf\x9e\xe4\x0e\x03\xa5\xeb\x23\xff\x7b" "\xf1\xa4\x27\xa0\x2f\x75\x8d\x7f\x60\xcf\x12\xff\x30\xb8\xc4\x3f\x0c\x2e" "\xf1\x0f\x83\x4b\xfc\xc3\xe0\x12\xff\x30\xb8\xc4\x3f\x0c\x2e\xf1\x0f\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x3d\x75\xf1\xc2\x85\x6c\x69\x2c\x3f\xbe\x39\x95\xe5\xa7\xaf\x2f" "\x2e\xcc\x56\xaf\x9f\x99\x4e\x6b\xb3\xa5\xb9\x85\xa9\xd2\x54\x75\xfe\x5a" "\x69\xa6\x5a\x9d\xa9\xa4\xa5\xa9\xea\x5c\xb7\xf7\xab\x54\xab\xd7\xc6\x27" "\x62\xe1\xc6\x58\x3d\xad\xd5\xc7\x6a\x8b\x4b\x97\xe6\xaa\x0b\x57\xeb\x97" "\xae\xcc\x95\x67\xd2\x4b\xe9\xf0\x0b\xa9\x15\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\xbc\x5c\x6a\x8b\x4b\xb3\xe5\x4a\x25\x9d" "\xef\xff\xc4\xc7\x3b\x7f\xf9\x50\x5e\xdb\x3e\xa8\xc5\x9e\x4b\x14\xfb\xe3" "\x30\x24\x7a\x9c\x58\xd7\x4c\x24\x91\xec\x4a\xf3\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\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x4d\xff\x07\x00\x00\xff\xff\x81\x8e\x35" "\xa1", 1387)); NONFAILING(syz_mount_image(/*fs=*/0x200000000040, /*dir=*/0x200000000200, /*flags=MS_RELATIME*/ 0x200000, /*opts=*/0x200000000240, /*chdir=*/0xfa, /*size=*/0x56b, /*img=*/0x200000000f00)); NONFAILING(memcpy((void*)0x200000000100, "./file1\000", 8)); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000100ul, /*flags=O_SYNC|O_CREAT|FASYNC|O_RDWR*/ 0x103042, /*mode=*/0); NONFAILING(memcpy((void*)0x200000000340, "./bus\000", 6)); syscall(__NR_open, /*file=*/0x200000000340ul, /*flags=O_SYNC|O_NOCTTY|O_NOATIME|O_CREAT|FASYNC|0x2*/ 0x143142ul, /*mode=*/0ul); NONFAILING(memcpy((void*)0x200000000380, "/dev/loop", 9)); NONFAILING(*(uint8_t*)0x200000000389 = 0x30 + procid * 1); NONFAILING(*(uint8_t*)0x20000000038a = 0); NONFAILING(memcpy((void*)0x200000000140, "./bus\000", 6)); syscall(__NR_mount, /*src=*/0x200000000380ul, /*dst=*/0x200000000140ul, /*type=*/0ul, /*flags=MS_BIND*/ 0x1000ul, /*data=*/0ul); NONFAILING(memcpy((void*)0x200000000080, "./bus\000", 6)); res = syscall(__NR_open, /*file=*/0x200000000080ul, /*flags=O_SYNC|O_NOCTTY|O_DIRECT|O_CLOEXEC|O_RDWR*/ 0x185102ul, /*mode=*/0ul); if (res != -1) r[0] = res; syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0xb36000ul, /*prot=PROT_WRITE*/ 2ul, /*flags=MAP_STACK|MAP_POPULATE|MAP_FIXED|MAP_SHARED*/ 0x28011ul, /*fd=*/r[0], /*offset=*/0ul); NONFAILING(*(uint32_t*)0x200000000200 = 0xc); NONFAILING(*(uint32_t*)0x200000000204 = 0xe); NONFAILING(*(uint64_t*)0x200000000208 = 0x2000000022c0); NONFAILING(memcpy( (void*)0x2000000022c0, "\xb7\x02\x00\x00\x00\x00\x00\x00\xbf\xa3\x00\x00\x00\x00\x00\x00\x07\x03" "\x00\x00\xfd\xfd\xff\xf6\x7a\x0a\xf0\xff\xf8\xff\xff\xff\x79\xa4\xf0\xff" "\x00\x00\x00\x00\xb7\x06\x00\x00\xff\xff\xff\xff\x2d\x64\x05\x00\x00\x00" "\x00\x00\x65\x04\x00\x00\x01\x00\x00\x40\x04\x04\x00\x00\x01\xf7\xff\x04" "\xb7\x05\x00\x00\x04\x00\x00\x00\x6a\x0a\x00\xfe\x00\x00\x00\x00\x85\x00" "\x00\x00\x0d\x00\x00\x00\xb7\x00\x00\x00\x00\x00\x00\x00\x95\x00\x00\x00" "\x00\x00\x00\x00\x9c\xc6\xb3\xfc\xd6\x2c\x06\x1c\x62\x38\x97\x5d\x43\xa4" "\x50\x5f\x80\xe3\x9c\x9f\x3c\x53\x0c\xf0\x8e\x46\x7b\x59\x2f\x86\x8e\xe3" "\xb0\xa4\x35\xdf\x0a\x0e\x8c\x1b\xf1\x76\xdb\x2a\x6b\x2f\xeb\x4b\x77\xd3" "\x39\x70\x7b\xfd\x2d\x84\xaa\xa3\xb1\xd4\xe9\x84\xc4\x6e\xa7\xe2\xb3\x47" "\xa3\x6f\x56\x62\x40\x3e\x1b\x2b\xe4\x28\x43\x22\xa4\x90\x8a\x0d\x41\x1a" "\x98\x72\x97\x1c\x7c\x56\xf0\x97\x9b\xd1\x0b\x97\x16\x3c\x06\x6d\x0e\x19" "\x6b\xf0\x2f\x46\xc7\x95\x3a\xb1\xab\xda\xf9\x0a\x70\xf2\xbd\xf4\x00\x02" "\x00\x00\x00\x00\xb0\xc2\xc1\x25\x08\x09\x63\xf6\x32\x23\xb7\xb8\x01\x97" "\xaa\x31\x61\xf4\x53\x46\xb1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x89\x07" "\x00\x00\x00\x98\x76\xb5\x88\x74\x37\x94\x29\x8b\x79\xdc\x19\x2d\xff\x04" "\x8f\xc2\x07\xc8\x1f\x28\xbd\xd3\xe2\x6a\x1a\x8a\x04\x81\xe9\xf0\xda\x43" "\xbb\x6c\xa6\x6e\x2f\x55\xa9\xff\x19\xff\xca\xfe\x3e\x64\xbe\x06\x00\x00" "\x00\x00\x00\x00\x00\x50\x64\xca\xec\x04\xa3\x67\xc2\x3d\x9f\xb6\xa6\x99" "\x1d\xdb\x73\x7d\x52\x7d\x6a\xcb\x15\x42\x64\x06\x99\x1c\x3b\x40\x49\x84" "\xdf\xa2\xc6\xe9\x4b\xd0\x33\x94\x54\xc1\x3a\x01\x00\x00\x00\x82\xc1\x5d" "\xc7\x60\xa3\x13\xe3\xb3\xca\x5d\x33\x93\x40\x40\x29\xe9\x8f\xa8\x83\xc7" "\x19\x49\xa3\x4d\x84\x03\x03\x23\xe3\xd5\x4f\xc5\xb2\x9d\x27\x64\x34\x53" "\xad\x92\x11\xe3\x55\x0e\xe5\x52\x02\x11\xd9\x37\x01\x75\x13\x3f\x26\x0c" "\x68\x82\xa1\x46\x88\x0b\x93\x87\xf1\xbe\xb5\x41\x86\x18\xbc\x83\xa3\xbe" "\xcf\x9b\xb5\x7d\xa7\xba\x8b\x91\x3c\x68\x5f\xc6\x70\x08\x48\xdc\x66\x65" "\xd7\x32\x48\xc1\xf7\x4e\x08\xad\x04\xce\x90\x5f\xaf\x32\x70\x6e\x00\x00" "\x24\x9a\x02\x80\x44\xed\xe9\x64\x36\x2c\xfb\x2f\x30\xa2\x46\xc3\xb2\xf6" "\x00\x00\xfc\x4d\xeb\x91\xda\x13\x68\xb0\x96\x0b\x8d\x69\xbd\x99\xc6\x48" "\x93\xd4\x4f\x96\x25\x24\x42\x9d\xc0\x58\x52\x8e\x7e\x54\x1c\x90\x38\x69" "\xd9\x69\x89\xb9\xa9\x86\x62\x0c\xb2\xc9\x5c\x83\xf2\xa0\x82\xc5\x27\x64" "\xf4\x9e\x51\x18\x8f\x94\x18\xb0\x1b\xcd\x8a\xe1\x64\xac\xda\xc9\x53\x18" "\xec\x8b\x2c\x6f\xea\xcd\xcf\x4b\x52\x8e\x5e\x58\x21\x9b\xc5\x4f\x6a\xd5" "\x67\x9e\x7f\x43\x0e\x69\x60\xed\x04\x8c\x46\xe1\xdc\xcc\xa0\x5b\xfa\x1d" "\x67\xc8\x37\x95\xea\xe2\xd3\x19\x68\xc0\x55\xd3\x25\xa9\xc7\x94\xef\x88" "\xb3\x0c\x2d\xe4\xa2\x74\x87\x8b\x73\xc0\x5f\xfa\x88\xb7\x07\x3b\xe6\x48" "\xb1\x2b\xb1\xfe\xe5\x89\x58\xd6\xa6\xf3\x1b\xfe\x56\x82\x15\xdf\xbd\xe5" "\x9d\xad\x00\x00\x8a\x73\xb4\x0f\x09\xcf\x01\x8c\xd4\x96\xb3\x60\x50\xd7" "\xfd\x45\xe3\x62\x0c\x28\xf7\x67\x49\x26\x2e\x33\xe1\x64\x29\xa6\xda\x35" "\xce\xb1\xa9\x89\xde\x81\xc3\xf8\xb8\xbc\x34\x8e\xf2\xac\x37\x81\xb8\x47" "\x61\x1f\xcb\x0a\x26\xac\xaf\xdd\x6d\x9a\x1b\x17\xdc\xb9\xf7\xc4\x93\xd8" "\xf8\xcd\x34\x4a\x1d\x47\x0c\xa0\xd6\xf1\x6a\xb0\x29\x37\x74\xb5\x50\x9f" "\xb0\xe7\x11\x39\x36\xd5\x9d\x5a\x60\xdb\xd8\x4a\x93\x84\x76\xad\xee\xba" "\xb9\xff\x44\xf5\x31\xbb\x02\x00\x00\x00\x00\x00\x00\x00\xcc\x1f\xbc\x45" "\x5a\x64\xfd\x44\x92\x84\xf7\x17\x61\x09\x2a\x03\x02\x00\x00\x00\x00\x00" "\x00\x00\x8a\x05\xd3\x6f\xd9\xb8\x14\xb4\x29\x27\x45\x41\x8c\x92\xd9\x44" "\x76\x3a\x4b\xf5\xe1\x38\xd8\x10\xe2\x9a\x31\xf0\x8f\x7d\xea\x77\x62\xd2" "\xd8\xf7\xe1\xd2\x4c\xab\xe1\x7a\xd4\x13\x5d\x88\x72\x93\x5c\xea\xc6\xeb" "\x4f\x04\x6f\x2a\xcc\x1b\x0e\xfb\x44\x38\xab\xdd\xca\xbb\x4e\x4e\x72\x70" "\x5e\xdf\xa2\xcd\xdb\x01\xf4\x4c\x85\x0e\x4e\xa4\x50\xaa\xb7\x2b\x58\x9b" "\xec\x83\xbb\xb6\x88\xe6\x59\xfb\x42\x6c\xb4\x3d\x0e\xe9\x93\x51\x6f\xd4" "\xe8\x67\x23\x2c\xde\x69\xb6\xff\xad\x44\x7d\xcd\x92\xe0\xef\x82\x34\xff" "\x85\x0e\xc3\x94\x8d\xd1\xfa\x7a\xfb\x77\xd9\x51\xfe\x4a\xbf\x61\x81\x21" "\xb7\x89\x4c\x10\x6b\xeb\x49\xa7\x1c\x62\xdf\x55\x44\xef\x22\x19\x73\x43" "\x2c\xcc\x7e\x62\xb1\x51\xeb\x89\x8a\x01\x01\x0a\x7e\xc5\xac\xd0\xa5\xdc" "\xb2\xde\x44\x38\x80\xc8\xa6\x82\x51\x5d\x1d\xa9\xa3\x04\x87\x44\xac\xb4" "\x43\x84\xd1\x59\x1d\xf7\x89\x88\x3c\x05\x60\x49\x5c\xb0\xcb\x32\x28\x35" "\x29\x92\x6d\x25\xe5\xc7\xf4\x81\x11\x2a\xb8\xa8\x22\x47\xe9\x27\xfb\x6f" "\x25\x68\x30\xda\xb3\x67\x1f\x00\x50\x0d\x36\xa1\x77\x90\xba\xb7\xd0\xe8" "\x9e\x6c\x15\x31\x4f\x2b\x96\x3b\xfc\x86\x79\x53\x47\x6b\x05\x05\xc7\xd7" "\x28\x32\x6d\x66\x6f\x39\xe8\x2c\xfc\xf7\xe7\xa8\x5d\xf2\x88\xd7\x5d\xf2" "\x4c\x5e\x4d\x52\x9c\x34\x99\x23\xf9\xa4\xfb\x88\x23\x10\x39\x1d\xd5\x8b" "\x4c\xbd\x8d\xef\x23\x9a\x22\x77\x24\xd3\x9c\x3e\x6c\x40\xe2\x0e\x07\xe6" "\x8a\x22\x88\x8a\x5c\x39\x41\xb7\xa7\x65\xb9\x2b\xcb\x37\xf3\x02\x48\x7b" "\xcb\xd9\x3c\xcf\x3a\x10\x40\x21\xff\x34\xdd\xf7\xff\xcc\xa1\xa0\x4e\xae" "\x96\x3e\x25\x51\x6a\x11\x45\x73\x77\x9b\x24\xa3\x41\xdf\xb2\xe8\x0f\x1f" "\x34\x5c\x6d\x96\x49\x3f\xfc\x2a\x18\x47\x8b\x5b\xf3\xaa\xb2\xea\x59\xc5" "\x1c\xf0\x67\x8e\x1a\x57\xd0\xea\x04\x2d\x91\x15\x48\xff\x61\x20\x02\xdd" "\xb2\xd5\x4d\x42\xfb\xdd\xe4\x2b\x56\x88\x70\x03\xd2\x74\x68\x22\x5b\x25" "\x94\xa0\x50\x44\xba\xf3\x14\x11\x3e\x88\x94\x68\x06\x00\x00\x00\x00\x00" "\x00\x00\xdb\x6b\x56\x55\x7a\x5a\xda\xd9\x5c\xb9\xa6\x9d\x4d\xe5\x06\x42" "\xb4\xb9\xd6\xd3\xba\x7e\xb5\x34\xc8\x8d\x44\x3a\xc8\xb3\x68\x51\x35\xdf" "\xc4\xda\x06\xe7\xf8\x69\x5b\xe6\x14\xc5\x57\xca\xed\x7e\xb0\x12\x05\x16" "\xe1\x35\x1f\xed\x7d\x8f\xfa\x31\xc8\xf4\xbe\x36\x41\x85\x46\x9c\xfc\x5f" "\x25\xc9\x0d\x71\xbc\xe7\x45\xdd\x2d\x58\xa3\x0e\x08\x44\xf1\x2c\x4c\xbb" "\xdd\x7a\x08\x46\x5e\x66\x5c\x26\x20\xd7\x86\x73\xdf\xb6\xd9\x26\x3e\xd7" "\xde\xf8\x92\x4c\xfc\xd4\x8a\x8a\x35\x34\xf1\xa3\xea\xc9\xee\x9f\x18\xa1" "\x81\x06\xba\x3d\x7c\x7a\x62\x33\x0f\x5c\x0e\x98\xcb\x79\x82\xdd\x7b\xad" "\x02\xc8\xdb\xa9\xc1\x38\x94\x18\x5b\xfc\x4b\xd2\x52\x0b\x6e\x20\x43\xfc" "\xb3\xfc\x5e\xb5\x5e\xcf\x9e\x6e\x36\x3e\xa2\xac\x40\xa1\x4a\x6f\xaa\x21" "\xb0\xf5\xa0\xfd\xb6\x48\x7c\x51\xef\x12\xc2\x7b\x30\x25\x5b\xc4\xf8\x81" "\x3b\xe8\x8b\xee\xb5\xaa\x6f\x6a\x41\x51\xcf\xb9\x06\x44\xe5\x06\x30\xed" "\x47\x4d\xf7\xd1\x63\x5a\xfc\xb1\xea\x3f\x6c\x47\xb5\xac\xbb\xa2\xce\x50" "\x99\xa9\x38\x7c\x7a\xcb\x9b\xbd\x1d\xa4\x97\x61\x1c\xed\xa2\x50\x49\xe4" "\x8d\xda\xcc\xcb\xb5\x8d\xdd\xaf\x9a\x35\x10\xd6\x53\x83\x82\x9a\x51\xe0" "\xf4\x16\x66\x1f\xa8\x0c\xa1\xea\xaa\x6c\xf0\x82\x43\x05\xba\x4e\xc8\x04" "\x00\xc5\x0f\xfe\x83\xcc\xb0\xe6\xfe\xf3\x21\x19\x0c\x58\xac\xa8\xc7\xc8" "\xc6\xd2\x6f\xf5\xcb\xc2\xca\xde\xbd\xa8\xe1\x21\x9e\x04\xf8\xda\xcf\xfd" "\x33\xdb\x1a\x0a\x2e\x74\xc9\xeb\x97\x8d\x80\xa1\x2d\x0b\x53\x27\xbf\xd0" "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbe\x0d\x02\xa1\x47\x08\x50\x44" "\x12\xfa\x93\xd3\x35\x99\x2b\x29\x83\xc5\xad\xdc\x19\x1b\x4a\x21\xc7\xb3" "\x40\xd0\x53\x6b\x01\x95\x8e\x15\x31\x5e\xb5\xf3\xf9\xf4\x99\x2c\x18\xf6" "\x66\x35\x9f\x40\x29\x5f\xa7\x32\x84\xc4\xb6\x07\x66\x9b\xae\x75\xbd\x68" "\xc3\xe2\xb7\x70\xc3\x24\xa0\xab\x26\xb6\x06\x5d\x7e\xa6\xa7\xbd\x80\x05" "\x2d\xb5\x75\x06\xec\x7c\xc8\x61\xbf\x39\x98\xd0\x74\x84\xc6\x66\x30\xca" "\x81\x73\xfe\xa3\xf0\x6e\xd1\xdf\xc7\x0a\x8b\x90\x41\x8e\x2d\xc7\x61\x37" "\xe0\xf6\x8c\xb1\xc8\xa9\x08\xae\xf9\xf0\xf8\x56\x47\xdb\xa5\x4e\x05\x02" "\x8c\x33\xd9\x4d\x46\x3f\xb2\x0d\x2e\x75\x47\x18\x4b\x8d\x36\x11\xe4\x5d" "\xff\x02\x14\x43\x87\xf3\x42\xef\x9b\x9b\xf6\x50\xe9\xd0\x49\xbf\x65\x25" "\x8a\x7b\xc0\x94\xa6\x96\x5e\x24\x61\x1c\x07\x7e\x1c\xa0\x89\x13\x62\xa9" "\xd6\x8f\x3e\xc7\x61\x0c\x04\x49\xac\xf1\x84\x59\x50\x0f\x02\x4f\x9b\x75" "\x88\x5c\xd7\x9b\xa3\x27\x76\xe4\xa5\x11\xc8\xa4\xad\x92\x2b\x00\x00\x00" "\x00\x00\x00\x00\xa9\x24\x12\x20\xdf\xbf\x7d\x02\xef\x50\x7e\xc6\xfc\x7f" "\x5d\x37\xd8\x35\xf7\xbe\xd7\x12\x83\xc4\x31\xb9\xd8\xcb\xd9\x00\x39\x72" "\xbf\x1d\xc6\xa7\x1b\xed\xad\x8e\x19\xef\xc3\xed\xd2\xa7\xa7\xe5\x55\xd5" "\xf3\x17\x6a\xf6\x99\x20\x47\x1e\x6e\x5b\xcb\x89\x66\xc8\x13\xc1\x32\xd6" "\x5e\x2b\x99\xd3\x01\x5e\x06\xb3\x72\xe1\xae\xfa\xae\x14\xee\x3f\xbc\x63" "\x49\xaf\x36\x2c\x19\xb5\x9c\x21\x4d\xe6\x69\x12\xd1\xa9\xa9\x8d\x92\xdc" "\x19\x7a\x51\xc2\x94\x43\xde\x62\xca\xca\x33\x4c\x46\xd1\x10\xe5\x08\x96" "\xfe\x50\xd0\x47\x77\x71\xd3\x87\xf4\x0c\x8e\xf0\x57\x50\xca\x65\x1e\x6e" "\x69\xa2\x37\xdc\xf7\x86\x66\xd6\xab\x2b\xda\x1f\x85\x35\x25\x49\x4e\x4e" "\xfd\xd9\x3b\xe3\x8b\xb5\xfc\x67\x1f\x87\x94\x00\x2d\x7a\x95\x1f\xd3\x36" "\xaa\xf4\xed\x11\x66\xcb\x45\x9d\xf7\x02\x18\xc5\x71\xba\x1c\x40\xb0\x28" "\x23\x45\x05\xe5\x47\x7e\x26\x83\x26\xaf\x88\x12\xc2\xfb\xb8\x78\x5a\x22" "\x3f\xce\x0a\x06\x01\xc2\xa3\xb5\x8b\xea\x8c\x62\x16\xea\xda\xbc\xab\xe8" "\x6a\xb4\x6e\x4c\xd3\xd5\x8e\xf7\xce\x8d\x3c\x4b\x0b\xc5\x95\x2e\x81\xdf" "\xc0\xa4\x90\xd8\x56\x8d\xb6\xf9\xc5\x1f\xe7\x03\xc6\x86\x4f\xae\x00\x53" "\xd2\xf9\x1f\x49\xe9\x77\xcd\xc1\x96\x2d\xbc\x28\xc2\x94\x71\xa7\x21\x99" "\x86\x2b\xc8\xfc\x6e\x21\x1d\x13\x6e\xcc\x87\x18\x5f\x24\x37\xc4\xfc\xe1" "\x46\xd8\x57\x9c\xab\x4f\xba\x94\xb2\xb6\x13\xc9\xb8\x14\x8d\x05\xe0\x69" "\x0a\x4c\x4a\xb3\x5a\xab\xc4\x58\x01\xd2\xb8\x20\x81\xe6\x2b\x23\xa0\x1b" "\x58\xb1\xff\xb6\x24\xf6\x3a\xd2\x24\x67\x96\x79\x61\x60\xcd\x36\x82\x37" "\x43\x64\xed\xac\x52\xf1\xbe\xcb\x7c\x6e\xff\x50\x82\x3b\x75\xfb\x2e\xf5" "\x16\xec\x4e\xc1\xcb\x20\xa2\x53\x5b\x50\x45\x02\xd7\x44\xf2\x09\x96\x74" "\xe5\x8f\x2c\x11\x7c\x98\x0c\xf0\xd0\x41\xc8\xea\x5c\x4f\x16\x6b\xab\x4a" "\xa5\xed\x20\x0e\xf4\xdc\xff\x96\xf7\xc9\xc1\xab\x8c\x22\xdb\x0f\x43\x9b" "\x23\xb0\x4b\xcd\x41\xff\xc3\xa0\xe0\x19\x76\xca\x1c\xf4\x3e\x12\xd7\xd7" "\x2f\x3f\xaa\x49\x79\xfa\xab\xd6\x2e\x2d\xc5\x4a\x98\x0e\xae\x4d\x5e\x8c" "\x64\x98\xde\x33\x1c\x3a\xba\x11\x44\xef\x11\x90\xea\x6c\xda\x64\x1d\x94" "\x16\xc4\x56\x0c\xab\x2d\x81\x9e\xac\x7b\x04\xc7\x0f\x14\x17\x54\xc3\xff" "\xd7\x9d\xa3\x63\xfe\x88\x59\xaf\xee\x53\x17\x10\xca\xf1\xb2\xbf\x5a\x51" "\x14\x2f\x47\x55\xcb\xb7\x00\xc2\x80\x83\x52\x5a\x90\x93\x79\x00\x96\xcb" "\x93\x41\x7f\x12\x16\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x40\xce\xb2\x44\xe4\xca\xe2\xb6\x5a\x76\xd4\x17\x93\xaa\xbc\xcd\x3d" "\x0c\x50\x48\x6e\xae\x00\x00\x00\x00\x00\x00\x7c\x01\x27\x79\xc1\x4c\xa9" "\x47\x59\x26\x62\x00\x22\x9b\x58\xc1\x22\x79\x81\x78\x69\xe8\x31\xca\xde" "\x7b\x09\xdd\xff\xff\xff\x9d\x93\xe2\xad\x25\xee\xd4\x3c\x0b\x9e\xe4\xfd" "\x20\x9b\x5b\x91\x9a\x42\xf6\x76\xb9\xd7\x23\x6f\xc8\xdd\x50\x40\x89\x9d" "\x06\x76\x29\x14\x07\xce\x9a\xc8\x10\x1d\xd3\x51\x2f\x5b\x3a\xc8\xcf\x81" "\x79\xd1\x74\x9d\xe3\x24\x00\x00\x30\xd0\xf9\x42\xec\x46\x04\xc2\x8d\x5c" "\x28\x7d\x14\x35\x95\x67\x84\x00\x3a\x53\xeb\x5f\xe5\x35\xea\xd8\x85\x7a" "\xcf\x01\x66\xdb\xd9\xf3\x0a\x9b\x9c\x8a\x9b\x9f\xaf\x13\x56\xfa\xf2\x69" "\xcd\xed\x93\x5b\x07\x86\x3e\x4f\xda\xd8\xaa\xb5\x26\x86\xc8\x1b\xab\xd1" "\xc0\x8f\x67\x00\xa2\xfa\xdd\x41\x34\x43\x02\x2e\xa5\xc7\x74\xff\xef\xdd" "\x42\x6a\xbe\xd0\x8d\x43\x7a\x4d\xb4\x86\x11\xfc\x82\xa1\x8a\xb9\xf5\x47" "\x58\xa1\xaa\xd8\x6d\x95\xcd\x18\x6c\xeb\x55\xfa\xfa\x39\x30\x09\x04\x67" "\xb8\xb7\xbb\x8a\xe7\xe1\xc8\xb4\xb4\x10\x6a\x38\x1c\xb6\x7f\xdb\x86\xde" "\xf4\xde\x20\x76\xdc\x53\x8b\xb9\x75\x02\xb4\xb4\x35\x0e\x63\x3d\xc0\xa5" "\x3d\x2f\x64\xec\x52\x1f\x6f\xa1\xcd\x02\x84\x3a\x5e\x16\x07\x4d\x86\xc9" "\xa0\x1b\xc5\xcf\xae\x02\x45\xf1\xfa\xb8\x43\xc6\x33\x44\x6f\x5f\x3a\x43" "\x22\x61\x09\xb7\xda\xfe\x78\x15\x77\x3b\xd6\x96\x9f\x04\xcb\xe1\x52\x36" "\xb9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x07\x79\xb9\xc0\x05\xda\x21\x07" "\x3c\x6d\x96\x80\xd4\xe5\x47\xcb\x72\x7a\xdd\xb2\xef\xe1\x1b\x8b\x3a\x70" "\x65\x69\xf1\x52\x2b\x57\xd7\x1b\xb0\xbe\xcc\xab\x7c\x8f\xe9\xe1\x33\x0b" "\x2f\x50\x1b\x2a\xc3\xcf\x4e\xba\x7c\xed\xa6\xff\x8a\x0c\x8b\x18\xc5\xe9" "\xe2\xf5\x05\xe8\x33\x21\x75\x57\xab\xb2\x57\xd6\x1a\xf8\xe8\xc4\x73\xa7" "\x58\x54\x36\x73\x0d\xb7\x5d\xa1\x67\x48\x1a\xb8\x92\x1f\xe0\x51\xb2\x50" "\xf8\xd8\xef\x9c\x84\x81\xbb\x28\xa1\x37\xd1\x50\x40\xb0\x18\x1c\x28\xdf" "\xad\x7c\x17\xb3\x0c\x45\x2a\x64\xc4\x3a\x11\x67\xb9\x48\x24\x7c\x33\xab" "\xc7\x65\xa6\xba\x69\x5c\x3c\xea\x5e\x32\xa4\xd1\xae\x2d\xcb\xec\x2f\xf4" "\x26\x8e\x03\xaa\xd1\x5e\xfc\x60\x04\xe6\xb3\xd7\xf0\xed\xf8\xb5\xd4\xae" "\x78\x46\xa6\xd4\x3c\x16\xc9\x0b\x7c\x5d\xc1\x3a\xc2\xff\x04\x39\xab\x69" "\x34\x98\x96\x4c\xad\x2b\xb5\x33\xbc\xd2\x40\x77\x8b\x7e\x49\x14\x5c\x48" "\xef\xde\x42\xb4\x4c\x01\x51\x7f\x1a\x7c\x77\x07\xb4\xc4\xfc\x09\x00\xe7" "\x08\x6e\xc4\x03\x54\x50\x45\x90\x69\x62\x82\x28\x6d\xb9\x03\x0f\x03\x20" "\xe2\xfc\xba\x87\x23\x93\x90\x05\x34\x7b\x3f\x74\x4f\xf1\x97\x34\x31\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x34\x95\xd6\x9a\xaf\x9a\x1d\x83\xe8\x35\x11\xa3\xbf\x44\xfe\x75\x3b\x8a" "\xd8\x3b\xc3\x4e\xa4\xd4\x6b\x39\x7e\x00\x0f\xf2\x67\xc5\x01\x22\xaa\x5a" "\xaf\x84\x74\xec\x2e\x57\xd9\x60\xd9\x63\x90\x0b\xef\x84\xa4\xb3\xc7\xdd" "\x01\xae\x4d\x6b\x55\x22\xaa\x8a\x35\xae\x79\x96\xe2\x98\xbc\xfe\xa4\xd3" "\x67\x7a\x67\xb5\x20\x41\xec\x21\xae\x80\x03\xaa\x1c\x99\x69\x17\x8b\x1b" "\x00\xe4\xd1\x2a\xc9\x74\x1f\xd7\x88\xfb\x62\x60\xec\x04\x3c\x01\x39\x07" "\x52\x3c\x77\xf8\xac\xc2\x0b\x9e\x2f\xd2\x24\xca\x8f\x00\x00\xb2\xb1\x09" "\x91\x88\x1e\x0a\x12\xf4\xe1\xc4\xf5\x4b\x9c\xa7\xc9\xa0\xc8\x29\x8d\x60" "\xb8\xb6\xea\xa0\x23\x41\x89\x92\xd6\xd6\x2b\x0e\x9f\xac\xa4\xa3\xb3\xa8" "\x05\xe8\x59\x13\x7c\xd9\x33\xef\x5e\xb8\xdb\x16\xf1\x59\xf3\x25\x05\x72" "\x5d\xa5\x14\x14\x56\x2d\x06\x4b\x55\x12\x46\xda\xcd\x58\x6f\x42\xd0\x4d" "\x3f\xed\x3c\x08\x7b\xb5\x2a\xe4\xbc\x09\xf3\x84\x6c\x78\x5d\x1b\x27\x8e" "\x66\x1e\xd0\x1f\xbc\x24\x15\x28\x8b\xc9\xc8\x08\xc4\xae\xf6\x48\xd4\x31" "\xb3\x02\x9d\xa0\xde\xc8\x88\x6c\x3e\xe9\xca\xd9\x96\x84\x3d\x00\xa3\xb5" "\xeb\x54\xe2\x70\xdd\x2e\x96\xc8\xf2\xfd\xb4\xc2\x7c\x2d\x1b\xd4\x67\xf2" "\xa1\x48\x67\xde\xc6\x77\x30\xd8\xa6\x83\x29\x83\x9d\x9f\xef\xf6\x88\xdf" "\xbe\x25\xc7\x3f\x93\x63\x38\xe7\xb0\x57\x98\x0d\xa5\x8a\x63\x03\xd9\x5f" "\x17\x71\x2d\x01\x00\x5a\x10\x66\xae\x45\x7a\xe3\x29\x25\xce\x65\x8b\x55" "\x9c\x11\x82\xa7\x4e\x26\x7d\xa5\x7f\xe2\x5b\x19\x15\x3f\x1c\xde\xba\xdd" "\xf3\xf7\xa3\x47\x9c\x09\xf2\x30\x3d\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xb1\x7f\xed\xd6\xb6\x50\x1a\x47\xd0\xe5\xb5\x10" "\xf4\xa4\xfa\xb5\xa6\x2d\x5f\xa7\xe8\xea\xd8\x51\xb0\x1d\xbf\xdf\xe5\x82" "\x3c\x26\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 3432)); NONFAILING(*(uint64_t*)0x200000000210 = 0); NONFAILING(*(uint32_t*)0x200000000218 = 0); NONFAILING(*(uint32_t*)0x20000000021c = 0); NONFAILING(*(uint64_t*)0x200000000220 = 0); NONFAILING(*(uint32_t*)0x200000000228 = 0); NONFAILING(*(uint32_t*)0x20000000022c = 0); NONFAILING(memset((void*)0x200000000230, 0, 16)); NONFAILING(*(uint32_t*)0x200000000240 = 0); NONFAILING(*(uint32_t*)0x200000000244 = 0); NONFAILING(*(uint32_t*)0x200000000248 = -1); NONFAILING(*(uint32_t*)0x20000000024c = 8); NONFAILING(*(uint64_t*)0x200000000250 = 0); NONFAILING(*(uint32_t*)0x200000000258 = 0); NONFAILING(*(uint32_t*)0x20000000025c = 0x10); NONFAILING(*(uint64_t*)0x200000000260 = 0); NONFAILING(*(uint32_t*)0x200000000268 = 0); NONFAILING(*(uint32_t*)0x20000000026c = 0); NONFAILING(*(uint32_t*)0x200000000270 = -1); NONFAILING(*(uint32_t*)0x200000000274 = 0); NONFAILING(*(uint64_t*)0x200000000278 = 0); NONFAILING(*(uint64_t*)0x200000000280 = 0); NONFAILING(*(uint32_t*)0x200000000288 = 0x10); NONFAILING(*(uint32_t*)0x20000000028c = 0); NONFAILING(*(uint32_t*)0x200000000290 = 0); syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x200000000200ul, /*size=*/0x94ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-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=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); const char* reason; (void)reason; install_segv_handler(); for (procid = 0; procid < 5; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }