// https://syzkaller.appspot.com/bug?id=da7fcbd38e8a38be1f09949ab54ba23e1249dd8a // 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 #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 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 void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } 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, unsigned long extra_space, 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; } if (extra_space) { off_t cur = lseek(memfd, 0, SEEK_END); if (cur >= 0 && ftruncate(memfd, cur + extra_space)) { } } 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_RDONLY); 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); unsigned long extra_space = strncmp(fs, "ext", 3) == 0 ? (16 << 20) : 0; if (setup_loop_device(data, size, extra_space, 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) { if (chdir(target) == -1) { err = errno; close(res); res = -1; } } 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_RDONLY); 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")) { } } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void execute_one(void) { if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } int i, call, thread; for (call = 0; call < 5; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); if (call == 2 || call == 4) break; event_timedwait(&th->done, 50 + (call == 0 ? 4000 : 0) + (call == 4 ? 4000 : 0)); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); } 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_call(int call) { intptr_t res = 0; switch (call) { case 0: // 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 = 0x400 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0x2 (1 bytes) // size: len = 0x790 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x790) // } // ] // returns fd_ext4_mnt memcpy((void*)0x2000000000c0, "ext4\000", 5); memcpy((void*)0x200000000100, "./file1\000", 8); *(uint8_t*)0x200000000b00 = 0; memcpy( (void*)0x200000000180, "\x78\x9c\xec\xdd\xcd\x6b\x1c\xe5\x1f\x00\xf0\xef\x6c\xf3\xd2\x5f\xda" "\x9f\x8d\x20\x68\x3d\x05\x04\x0d\x94\x6e\x4c\x8d\xad\x82\x87\x8a\x07" "\x11\x2c\x14\xf4\x6c\x1b\x36\xdb\x50\xb3\xc9\x86\xec\xa6\x34\x21\xa0" "\x45\x04\x2f\x82\x8a\x07\x41\x2f\x3d\x5b\xad\x37\xaf\xbe\x5c\xf5\x0f" "\xf0\xee\x41\x5a\xaa\xa6\xc5\x88\x07\x89\xcc\xbe\xa4\xdb\x66\x37\xdd" "\xa4\xd9\x6c\xcb\x7e\x3e\x30\xc9\xf3\xcc\xcc\xe6\x3b\xdf\x79\x66\xe6" "\x79\xb2\x33\xec\x06\xd0\xb3\x46\xd2\x1f\x99\x88\xc3\x11\xf1\x51\x12" "\x71\xa8\x36\x3f\x89\x88\xfe\x4a\xa9\x2f\xe2\x64\x75\xbd\xb5\xd5\x95" "\x5c\x3a\x25\xb1\xbe\xfe\xc6\x1f\x49\x65\x9d\x5b\xab\x2b\xb9\x68\x78" "\x4d\xea\x40\xad\xf2\x44\x44\xfc\xf0\x7e\xc4\x91\xcc\xe6\xb8\xa5\xa5" "\xe5\x99\xc9\x42\x21\xbf\x50\xab\x8f\x95\x67\xe7\xc7\x4a\x4b\xcb\x47" "\xcf\xcf\x4e\x4e\xe7\xa7\xf3\x73\xc7\xc7\x27\x26\x8e\x9d\x78\xfe\xc4" "\xf1\xdd\xcb\xf5\xaf\x9f\x97\x0f\x5e\xff\xf8\xd5\x67\xbe\x3e\xf9\xcf" "\x7b\x8f\x5f\xfd\xf0\xc7\x24\x4e\xc6\xc1\xda\xb2\xc6\x3c\x76\xcb\x48" "\x8c\xd4\xf6\x49\x7f\xba\x0b\xef\xf0\x4a\xbc\xb3\xdb\xe1\xba\x2a\xe9" "\xf6\x06\xb0\x23\xe9\xa9\xb9\xaf\x7a\x96\xc7\xe1\x24\x2d\xf7\x75\x7b" "\x93\x00\x80\x0e\x4b\x47\xa1\xeb\x00\x40\x8f\x49\xf4\xff\x00\xd0\x63" "\xea\xef\x03\xdc\x5a\x5d\xc9\xd5\xa7\xee\xbe\x23\xb1\xb7\x6e\xbc\x1c" "\x11\xfb\xab\xf9\xd7\xef\x6f\x56\x97\xf4\xd5\xee\xd9\xed\xaf\xdc\x07" "\x1d\xba\x95\xdc\x71\x67\x24\x89\x88\xe1\x5d\x88\x3f\x12\x11\x5f\x7c" "\xfb\xd6\x95\x74\x8a\x0e\xdd\x87\x04\x68\xe6\xdd\x4b\x11\x71\x76\x78" "\x64\xf3\xf5\x3f\xd9\xf4\xcc\xc2\x76\x3d\xdb\xc6\x3a\x23\x77\xd5\x37" "\xe2\xff\xd2\x7f\x9f\xd1\x81\x7b\xf9\x2e\x1d\xff\xbc\xd0\x6c\xfc\x97" "\xd9\x18\xff\x44\x93\xf1\xcf\x60\x93\x73\x77\x27\x5a\x9e\xff\x1b\x32" "\xd7\x76\x21\x4c\x4b\xe9\xf8\xef\xa5\x86\x67\xdb\xd6\x1a\xf2\xaf\x19" "\xde\x57\xab\xfd\xbf\x32\xe6\xeb\x4f\xce\x9d\x2f\xe4\xd3\x6b\xdb\x23" "\x11\x31\x1a\xfd\x83\x69\x7d\x7c\x8b\x18\xa3\x37\xff\xbd\xd9\x6a\x59" "\xe3\xf8\xef\xcf\x4f\xde\xfe\x32\x8d\x9f\xfe\xbe\xbd\x46\xe6\x5a\xdf" "\xe0\x9d\xaf\x99\x9a\x2c\x4f\xde\x4f\xce\x8d\x6e\x5c\x8a\x78\xb2\xaf" "\x9e\xff\xa5\x86\x25\xc9\x46\xfb\x27\x2d\xc6\xbf\xa7\xdb\x8c\xf1\xda" "\x8b\x1f\x7c\xde\x6a\x59\x9a\x7f\x9a\x6f\x7d\xda\x9c\x7f\x67\xad\x5f" "\x8e\x78\xba\x69\xfb\xdf\x7e\xa2\x2d\xd9\xf2\xf9\xc4\xb1\xca\xe1\x30" "\x56\x3f\x28\x9a\xf8\xe6\xd7\xcf\x86\x5a\xc5\x6f\x6c\xff\x74\x5a\x5b" "\x5d\x59\x4f\x22\xae\xec\x7e\xa6\xcd\xa5\xed\x3f\xb4\x75\xfe\xc3\x49" "\xe3\xf3\x9a\xa5\xed\xc7\xf8\xe9\xf2\xa1\xef\x5b\x2d\x6b\x92\x7f\xae" "\xfe\xbf\x50\x55\xf3\xe3\x7f\x20\x79\xb3\x52\x1e\xa8\xcd\xbb\x38\x59" "\x2e\x2f\x8c\x47\x0c\x24\xaf\x6f\x9e\x7f\xec\xf6\x6b\xeb\xf5\xfa\xfa" "\x69\xfe\xa3\x4f\x35\x3f\xff\xb7\x3a\xfe\xd3\xd1\xc9\xd9\x36\xf3\xef" "\xbb\xfe\xfb\x57\x3b\xcf\xbf\xb3\xd2\xfc\xa7\xb6\xd5\xfe\xdb\x2f\x5c" "\x5d\x9b\xd9\xd7\x2a\x7e\x7b\xed\x3f\x51\x29\x8d\xd6\xe6\x6c\x7d\xfd" "\xab\x5e\xb7\xdb\xdd\xc0\xfb\xdd\x7f\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\x8e\x4c\x44\x1c\x8c" "\x24\x93\xdd\x28\x67\x32\xd9\x6c\xf5\x3b\xbc\x1f\x8b\xa1\x4c\xa1\x58" "\x2a\x1f\x39\x57\x5c\x9c\x9b\x8a\xca\x77\x65\x0f\x47\x7f\xa6\xfe\x51" "\x97\x87\x1a\x3e\x0f\x75\xbc\xf6\x79\xf8\xf5\xfa\xb1\xbb\xea\xcf\x45" "\xc4\xa3\x11\xf1\xe9\xe0\xff\x2a\xf5\x6c\xae\x58\x98\xea\x76\xf2\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x73\xa0\xc5" "\xf7\xff\xa7\x7e\x1b\xec\xf6\xd6\x01\x00\x1d\xb3\xbf\xdb\x1b\x00\x00" "\xec\x39\xfd\x3f\x00\xf4\x1e\xfd\x3f\x00\xf4\x1e\xfd\x3f\x00\xf4\x1e" "\xfd\x3f\x00\xf4\x1e\xfd\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x1d\x76\xfa\xd4\xa9\x74\x5a\xff\x7b\x75" "\x25\x97\xd6\xa7\x2e\x2c\x2d\xce\x14\x2f\x1c\x9d\xca\x97\x66\xb2\xb3" "\x8b\xb9\x6c\xae\xb8\x30\x9f\x9d\x2e\x16\xa7\x0b\xf9\x6c\xae\x38\x7b" "\xaf\xbf\x57\x28\x16\xe7\x27\x62\x6e\xf1\xe2\x58\x39\x5f\x2a\x8f\x95" "\x96\x96\xcf\xcc\x16\x17\xe7\xca\x67\xce\xcf\x4e\x4e\xe7\xcf\xe4\xfb" "\xf7\x24\x2b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xd8\x9e\xd2\xd2\xf2\xcc\x64\xa1\x90\x5f\x50\x78\x08\x0a\x7d\xb5\x56" "\x7b\x50\xb6\x67\x47\x85\x4c\x3d\x89\xbd\x0a\x3a\xd0\xc6\x3a\xeb\xf3" "\x37\x4f\x6d\x3b\x8b\x07\x60\x67\x76\xae\xd0\xc5\x8b\x12\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xc0\x43\xe4\xbf\x00\x00\x00\xff\xff\xbc\x8f\x1f\x38", 1936); syz_mount_image(/*fs=*/0x2000000000c0, /*dir=*/0x200000000100, /*flags=MS_NOATIME*/ 0x400, /*opts=*/0x200000000b00, /*chdir=*/2, /*size=*/0x790, /*img=*/0x200000000180); break; case 1: // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: open_flags = 0x101042 (4 bytes) // mode: open_mode = 0x15 (2 bytes) // ] // returns fd memcpy((void*)0x200000000940, "./file1\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x200000000940ul, /*flags=O_SYNC|O_CREAT|O_RDWR*/ 0x101042, /*mode=S_IXOTH|S_IROTH|S_IWGRP*/ 0x15); if (res != -1) r[0] = res; break; case 2: // bpf$PROG_LOAD arguments: [ // cmd: const = 0x5 (8 bytes) // arg: ptr[in, bpf_prog_t[flags[bpf_prog_type, int32], // bpf_prog_attach_types, bpf_btf_id[opt], fd_bpf_prog[opt]]] { // bpf_prog_t[flags[bpf_prog_type, int32], bpf_prog_attach_types, // bpf_btf_id[opt], fd_bpf_prog[opt]] { // type: bpf_prog_type = 0x13 (4 bytes) // ninsn: bytesize8 = 0x4 (4 bytes) // insns: ptr[in, bpf_instructions] { // union bpf_instructions { // framed: bpf_framed_program { // initr0: bpf_insn_init_r0 { // code: const = 0xffffff85 (1 bytes) // dst: const = 0x0 (0 bytes) // src: const = 0x0 (1 bytes) // off: const = 0x0 (2 bytes) // imm: int32 = 0x18 (4 bytes) // code2: const = 0x55 (1 bytes) // regs2: const = 0x0 (1 bytes) // off2: const = 0x0 (2 bytes) // imm2: int32 = 0x20 (4 bytes) // } // body: array[bpf_insn] { // union bpf_insn { // call: bpf_insn_call_helper_t[int32[0:__BPF_FUNC_MAX_ID]] // { // code: const = 0x6f (1 bytes) // regs: const = 0x0 (1 bytes) // off: const = 0x0 (2 bytes) // func: int32 = 0x0 (4 bytes) // } // } // } // exit: bpf_insn_exit { // code: const = 0x95 (1 bytes) // regs: const = 0x0 (1 bytes) // off: const = 0xa (2 bytes) // imm: const = 0x0 (4 bytes) // } // } // } // } // license: ptr[in, buffer] { // buffer: {73 79 7a 6b 61 6c 6c 65 72 00} (length 0xa) // } // loglev: int32 = 0x4 (4 bytes) // logsize: len = 0x99 (4 bytes) // log: ptr[out, buffer] { // buffer: (DirOut) // } // kern_version: bpf_kern_version = 0x0 (4 bytes) // flags: bpf_prog_load_flags = 0x0 (4 bytes) // prog_name: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // 00} (length 0x10) prog_ifindex: ifindex (resource) // expected_attach_type: union bpf_prog_attach_types { // fallback: bpf_attach_types = 0x0 (4 bytes) // } // btf_fd: fd_btf (resource) // func_info_rec_size: const = 0x8 (4 bytes) // func_info: nil // func_info_cnt: len = 0x46 (4 bytes) // line_info_rec_size: const = 0x10 (4 bytes) // line_info: nil // line_info_cnt: len = 0xfffffffffffffed8 (4 bytes) // attach_btf_id: bpf_btf_id (resource) // attach_prog_fd: fd_bpf_prog (resource) // core_relo_cnt: len = 0x0 (4 bytes) // fd_array: nil // core_relos: nil // core_relo_rec_size: const = 0x10 (4 bytes) // log_true_size: int32 = 0x0 (4 bytes) // prog_token_fd: union _bpf_prog_t[flags[bpf_prog_type, int32], // bpf_prog_attach_types, bpf_btf_id[opt], // fd_bpf_prog[opt]]_prog_token_fd_wrapper { // void: buffer: {} (length 0x0) // } // pad: union _bpf_prog_t[flags[bpf_prog_type, int32], // bpf_prog_attach_types, bpf_btf_id[opt], // fd_bpf_prog[opt]]_pad_wrapper { // value: const = 0x0 (4 bytes) // } // } // } // size: len = 0x3f (8 bytes) // ] // returns fd_bpf_prog *(uint32_t*)0x200000000000 = 0x13; *(uint32_t*)0x200000000004 = 4; *(uint64_t*)0x200000000008 = 0x2000000009c0; *(uint8_t*)0x2000000009c0 = 0x85; STORE_BY_BITMASK(uint8_t, , 0x2000000009c1, 0, 0, 4); STORE_BY_BITMASK(uint8_t, , 0x2000000009c1, 0, 4, 4); *(uint16_t*)0x2000000009c2 = 0; *(uint32_t*)0x2000000009c4 = 0x18; *(uint8_t*)0x2000000009c8 = 0x55; *(uint8_t*)0x2000000009c9 = 0; *(uint16_t*)0x2000000009ca = 0; *(uint32_t*)0x2000000009cc = 0x20; *(uint8_t*)0x2000000009d0 = 0x6f; *(uint8_t*)0x2000000009d1 = 0; *(uint16_t*)0x2000000009d2 = 0; *(uint32_t*)0x2000000009d4 = 0; *(uint8_t*)0x2000000009d8 = 0x95; *(uint8_t*)0x2000000009d9 = 0; *(uint16_t*)0x2000000009da = 0xa; *(uint32_t*)0x2000000009dc = 0; *(uint64_t*)0x200000000010 = 0x200000000a00; memcpy((void*)0x200000000a00, "syzkaller\000", 10); *(uint32_t*)0x200000000018 = 4; *(uint32_t*)0x20000000001c = 0x99; *(uint64_t*)0x200000000020 = 0x200000000a40; *(uint32_t*)0x200000000028 = 0; *(uint32_t*)0x20000000002c = 0; memset((void*)0x200000000030, 0, 16); *(uint32_t*)0x200000000040 = 0; *(uint32_t*)0x200000000044 = 0; *(uint32_t*)0x200000000048 = -1; *(uint32_t*)0x20000000004c = 8; *(uint64_t*)0x200000000050 = 0; *(uint32_t*)0x200000000058 = 0x46; *(uint32_t*)0x20000000005c = 0x10; *(uint64_t*)0x200000000060 = 0; *(uint32_t*)0x200000000068 = 0xfffffed8; *(uint32_t*)0x20000000006c = 0; *(uint32_t*)0x200000000070 = -1; *(uint32_t*)0x200000000074 = 0; *(uint64_t*)0x200000000078 = 0; *(uint64_t*)0x200000000080 = 0; *(uint32_t*)0x200000000088 = 0x10; *(uint32_t*)0x20000000008c = 0; *(uint32_t*)0x200000000090 = 0; syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x200000000000ul, /*size=*/0x3ful); break; case 3: // mmap arguments: [ // addr: VMA[0xb36000] // len: len = 0xb36000 (4 bytes) // prot: mmap_prot = 0xb (8 bytes) // flags: mmap_flags = 0x28011 (8 bytes) // fd: fd (resource) // offset: intptr = 0x0 (8 bytes) // ] syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0xb36000, /*prot=PROT_SEM|PROT_WRITE|PROT_READ*/ 0xbul, /*flags=MAP_STACK|MAP_POPULATE|MAP_FIXED|MAP_SHARED*/ 0x28011ul, /*fd=*/r[0], /*offset=*/0ul); break; case 4: // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 32 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x808082 (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 = 0xfe (1 bytes) // size: len = 0x4af (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x4af) // } // ] // returns fd_ext4_mnt memcpy((void*)0x200000000c40, "ext2\000", 5); memcpy((void*)0x200000000c80, "./file0\000", 8); *(uint8_t*)0x200000000cc0 = 0; memcpy( (void*)0x200000000d00, "\x78\x9c\xec\xdc\xcb\x6f\x1b\xc5\x1f\x00\xf0\xef\xda\xb1\x93\xf4\xf1" "\x4b\x7e\xa5\x3c\x5a\x5a\x08\x14\x44\xc5\x23\x69\xd2\x07\x3d\x70\x29" "\x02\x89\x03\x48\x48\x70\x28\xe2\x14\x92\xb4\x2a\x4d\x1b\x68\x82\x44" "\xab\x0a\x0a\x87\x72\x44\x95\xb8\x23\x8e\x48\xfc\x01\x88\x0b\xed\x05" "\x01\x27\x24\xae\x70\x44\x42\x48\x15\xea\xa5\xa5\x42\xc2\x68\xed\x5d" "\xd7\x4d\x6c\x37\x4f\xbb\xc8\x9f\x8f\xe4\x7a\xc6\x33\xde\x9d\xef\xce" "\x4e\x3c\x3b\x6b\x37\x80\x9e\x35\x92\xfe\x93\x44\x6c\x89\x88\x5f\x22" "\x62\xa8\x96\xbd\xbd\xc2\x48\xed\xe9\xc6\xb5\xf3\x53\x7f\x5d\x3b\x3f" "\x95\x44\xa5\xf2\xda\x9f\x49\xb5\xde\xf5\x6b\xe7\xa7\xf2\xaa\xf9\xfb" "\x36\x67\x99\xa4\xcd\x7e\x2f\xbe\x19\x31\x39\x3b\x3b\x73\x26\xcb\x8f" "\x2d\x9c\x7a\x67\x6c\xfe\xec\xb9\x67\x4e\x9c\x9a\x3c\x3e\x73\x7c\xe6" "\xf4\xc4\xe1\xc3\x07\xf6\xef\x2e\x1f\x9a\x38\xb8\xa6\xf8\xf2\x36\xa4" "\x71\x5d\xdf\xf9\xc1\xdc\xae\x1d\x2f\xbd\x71\xe9\x95\xa9\xa3\x97\xde" "\xfa\xe1\xab\xb4\x6c\x4b\x56\xde\x18\xc7\x7a\x19\xa9\x1d\xdd\xfc\x88" "\xdc\xe6\xf1\xf5\xde\x59\x97\x6d\x6d\x48\x27\x7d\x5d\x6c\x08\x2b\x32" "\x10\x11\x69\x77\x95\xaa\xe3\x7f\x28\x8a\x31\x58\x2f\x1b\x8a\x17\x3f" "\x6e\xf9\xc6\x91\x0e\x35\x10\xd8\x30\x95\x4a\xa1\xd2\xdf\xba\xf8\x42" "\xa5\xad\x4b\xed\x8b\x81\xbb\x5c\x3a\x9b\x5f\xa1\x81\x0d\x69\x08\xd0" "\x61\xf9\x07\x7d\x7a\xfd\x9b\x3f\x3a\x34\xf5\xb8\x2b\x5c\x3d\x12\xf5" "\x75\x8c\x1b\xd9\xa3\xba\x58\x10\x7d\x51\xc8\xea\x94\xb2\x6b\xa4\x8d" "\x90\x5e\x46\x1d\xbd\x70\xf3\xf3\xf4\x11\x1b\xb4\x0e\x01\x00\xd0\xe8" "\xf2\x91\x88\x78\xba\xd9\xfc\xaf\x10\xf7\x35\xd4\xfb\x5f\x76\x0f\x65" "\x38\x22\xfe\x1f\x11\xdb\xca\x11\xf7\x44\xc4\xf6\x88\xb8\x37\xa2\x5a" "\xf7\xfe\x88\x78\x60\x85\xfb\x5f\xbc\x8c\xbc\x74\xfe\x53\x19\x5a\x55" "\x60\xcb\x94\xce\xff\x9e\xcb\xee\x6d\xd5\xe7\x7f\x55\xf9\xec\x2f\x86" "\x8b\x59\x6e\x6b\x35\xfe\x52\x72\xec\xc4\xec\xcc\xbe\xec\x98\xec\x8d" "\x52\x7f\x9a\x1f\x6f\xb3\x8f\x2b\x2f\xfc\xfc\x69\xab\xb2\xc6\xf9\x5f" "\xfa\x48\xf7\x9f\xcf\x05\xb3\x76\xfc\xd1\xb7\x68\x81\x6e\x7a\x72\x61" "\x72\x2d\x31\x37\xba\xfa\x51\xc4\xce\xbe\x66\xf1\x27\xf5\x39\x6f\x3a" "\x3f\xde\x11\x11\x3b\x57\xb9\x8f\x13\x4f\x7e\xb9\x6b\xe9\xab\x37\xab" "\x57\x1f\x77\x8e\xbf\x8d\x75\x98\x94\x57\xbe\x88\x78\xa2\xd6\xff\x17" "\x62\x51\xfc\xb9\xa4\xe5\xfd\xc9\xf1\x67\x0f\x4d\x1c\x1c\x1b\x88\xd9" "\x99\x7d\x63\xf9\x59\xb1\xd4\x8f\x3f\x5d\x7c\xb5\xd5\xfe\xd7\x14\xff" "\x3a\xb8\x7a\xb9\x12\x9b\x9a\x9e\xff\x79\xfc\xc9\x3f\xc9\x40\xc4\xfc" "\xd9\x73\x27\xab\xf7\x6b\xe7\x97\xb1\xd1\xfc\x7c\xcd\x6e\x25\x5d\xfc" "\xf5\x93\x7c\x4c\xbf\xfb\x5b\x63\xbd\x52\xed\xa9\x1e\x7f\x7f\x9b\xf3" "\xff\xca\x96\xfa\x2b\xe9\xf9\x5f\x4e\x5e\x2f\x35\x6e\xea\xfd\xc9\x85" "\x85\x33\xe3\x11\xe5\xe4\xe5\x6a\xbe\xdc\xf8\xfa\xc4\xa2\x7a\x13\xb7" "\xea\xa7\xe7\xff\xde\x3d\xcd\xc7\xff\xb6\xec\x39\x3d\x12\x0f\x46\x44" "\x7a\x12\xef\x1e\x8c\x78\x28\x22\x1e\xce\xfa\xee\x91\x88\x78\x34\x22" "\xf6\xb4\x39\x1c\xdf\x3f\xff\xd8\xdb\xad\xca\x5a\xf7\x7f\x9b\x55\xf9" "\x75\x94\xc6\x3f\xdd\xb6\xff\x63\x38\x4d\xdd\xea\xff\x34\x11\x85\x2c" "\x51\x7f\xa5\x5d\xa2\x78\xf2\xbb\x6f\x96\x15\x7f\x3e\x9e\x97\xf4\xff" "\x81\x6a\x6a\x6f\x2d\xbf\xac\xbf\x7f\xb7\x5a\x91\x44\xbb\x06\xae\xfe" "\xc8\x01\x00\x00\xc0\x7f\x47\xa1\xfa\x1d\xf8\xa4\x30\x5a\x4f\x17\x0a" "\xa3\xa3\xb5\x6f\xac\x6f\x8f\x4d\x85\xd9\xb9\xf9\x85\xa7\x8e\xcd\xbd" "\x77\x7a\xba\xf6\x5d\xf9\xe1\x28\x15\xf2\x95\xae\xa1\x38\xfe\x75\x64" "\xeb\xa1\xe3\xd9\xda\x70\xbe\x3e\x3a\xb1\x28\xbf\x3f\x5b\x37\xfe\xac" "\x38\x58\xcd\x8f\x4e\xcd\xcd\x4e\x77\x3b\x78\xe8\x71\x9b\x5b\x8c\xff" "\xd4\xef\xc5\x6e\xb7\x0e\xd8\x70\x7e\xaf\x05\xbd\xcb\xf8\x87\xde\x65" "\xfc\x43\xef\x32\xfe\xa1\x77\x19\xff\xd0\xbb\x9a\x8d\xff\x0f\xbb\xd0" "\x0e\xa0\xf3\xee\xf0\xf9\x3f\xd8\xa9\x76\x00\x9d\xd7\x7c\xfc\xff\xdd" "\xf1\x76\x00\x9d\xe7\xfa\x1f\x7a\x97\xf1\x0f\x3d\xa9\xe5\x6f\xe3\x0b" "\x6d\x7f\x36\xdf\x32\x51\x2c\x46\xf6\x1f\xfb\xaf\xea\xed\x12\x6b\x4c" "\x7c\x5b\x6e\xd3\xa7\x77\x4e\x94\x97\x5f\x39\x0a\x77\x49\xc8\x5d\x4e" "\x14\x63\xbd\x36\x58\x8a\x26\x45\xe5\xe8\x8b\x15\x6f\x70\x70\x45\x7b" "\xef\x6f\x5a\xd4\xed\xbf\x4c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xeb\xe3\xdf" "\x00\x00\x00\xff\xff\xbf\x04\xdc\xf5", 1199); syz_mount_image( /*fs=*/0x200000000c40, /*dir=*/0x200000000c80, /*flags=MS_I_VERSION|MS_SILENT|MS_NOSUID|MS_DIRSYNC*/ 0x808082, /*opts=*/0x200000000cc0, /*chdir=*/0xfe, /*size=*/0x4af, /*img=*/0x200000000d00); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; use_temporary_dir(); loop(); return 0; }