// https://syzkaller.appspot.com/bug?id=c3e62ce5011553ee9c3647b8d2227eb001ff1e21 // 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 #ifndef __NR_madvise #define __NR_madvise 233 #endif #ifndef __NR_memfd_create #define __NR_memfd_create 279 #endif #ifndef __NR_mlock #define __NR_mlock 228 #endif #ifndef __NR_mlock2 #define __NR_mlock2 284 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #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; \ }) //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*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=*/0x21000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; install_segv_handler(); intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // openat$zero arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: ptr[in, buffer] { // buffer: {2f 64 65 76 2f 7a 65 72 6f 00} (length 0xa) // } // flags: open_flags = 0x0 (4 bytes) // mode: const = 0x0 (2 bytes) // ] // returns fd NONFAILING(memcpy((void*)0x200001c0, "/dev/zero\000", 10)); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200001c0ul, /*flags=*/0, /*mode=*/0); if (res != -1) r[0] = res; // mmap$binder arguments: [ // addr: VMA[0x4000] // len: len = 0x1fffff (4 bytes) // prot: const = 0x1 (8 bytes) // flags: const = 0x11 (8 bytes) // fd: fd_binder (resource) // offset: intptr = 0x0 (8 bytes) // ] // returns binder_ptr syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1fffff, /*prot=*/1ul, /*flags=*/0x11ul, /*fd=*/r[0], /*offset=*/0ul); // madvise arguments: [ // addr: VMA[0x800000] // len: len = 0x800000 (8 bytes) // advice: madvise_flags = 0xe (8 bytes) // ] syscall(__NR_madvise, /*addr=*/0x20000000ul, /*len=*/0x800000ul, /*advice=MADV_HUGEPAGE*/ 0xeul); // syz_mount_image$ext4 arguments: [ // fs: ptr[in, buffer] { // buffer: {65 78 74 33 00} (length 0x5) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 00} (length 0x8) // } // flags: mount_flags = 0x0 (8 bytes) // opts: ptr[in, fs_options[ext4_options]] { // fs_options[ext4_options] { // elems: array[fs_opt_elem[ext4_options]] { // fs_opt_elem[ext4_options] { // elem: union ext4_options { // noload: buffer: {6e 6f 6c 6f 61 64} (length 0x6) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // max_dir_size_kb: fs_opt["max_dir_size_kb", fmt[hex, int32]] { // name: buffer: {6d 61 78 5f 64 69 72 5f 73 69 7a 65 5f 6b 62} // (length 0xf) eq: const = 0x3d (1 bytes) val: int32 = 0x7 (18 // bytes) // } // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // bsddf: buffer: {62 73 64 64 66} (length 0x5) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nomblk_io_submit: buffer: {6e 6f 6d 62 6c 6b 5f 69 6f 5f 73 75 // 62 6d 69 74} (length 0x10) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // data_err_ignore: buffer: {64 61 74 61 5f 65 72 72 3d 69 67 6e // 6f 72 65} (length 0xf) // } // comma: const = 0x2c (1 bytes) // } // fs_opt_elem[ext4_options] { // elem: union ext4_options { // nomblk_io_submit: buffer: {6e 6f 6d 62 6c 6b 5f 69 6f 5f 73 75 // 62 6d 69 74} (length 0x10) // } // comma: const = 0x2c (1 bytes) // } // } // common: array[fs_opt_elem[fs_options_common]] { // } // null: const = 0x0 (1 bytes) // } // } // chdir: int8 = 0xfe (1 bytes) // size: len = 0x47c (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0x47c) // } // ] // returns fd_dir NONFAILING(memcpy((void*)0x20000080, "ext3\000", 5)); NONFAILING(memcpy((void*)0x20000480, "./file0\000", 8)); NONFAILING(memcpy((void*)0x200000c0, "noload", 6)); NONFAILING(*(uint8_t*)0x200000c6 = 0x2c); NONFAILING(memcpy((void*)0x200000c7, "max_dir_size_kb", 15)); NONFAILING(*(uint8_t*)0x200000d6 = 0x3d); NONFAILING(sprintf((char*)0x200000d7, "0x%016llx", (long long)7)); NONFAILING(*(uint8_t*)0x200000e9 = 0x2c); NONFAILING(memcpy((void*)0x200000ea, "bsddf", 5)); NONFAILING(*(uint8_t*)0x200000ef = 0x2c); NONFAILING(memcpy((void*)0x200000f0, "nomblk_io_submit", 16)); NONFAILING(*(uint8_t*)0x20000100 = 0x2c); NONFAILING(memcpy((void*)0x20000101, "data_err=ignore", 15)); NONFAILING(*(uint8_t*)0x20000110 = 0x2c); NONFAILING(memcpy((void*)0x20000111, "nomblk_io_submit", 16)); NONFAILING(*(uint8_t*)0x20000121 = 0x2c); NONFAILING(*(uint8_t*)0x20000122 = 0); NONFAILING(memcpy( (void*)0x20000540, "\x78\x9c\xec\xdc\xcb\x6f\x54\xd5\x1f\x00\xf0\xef\xbd\x7d\xf1\x6e\x7f\x3f" "\xf1\x01\x82\x56\x31\x91\xf8\x68\x69\x79\x2e\xdc\x60\x34\x71\xa1\x89\x89" "\x2e\x30\xae\x6a\x5b\x08\x52\xa8\xd2\x9a\x08\x21\x01\x5d\xe0\xd2\x90\xb8" "\x37\x2e\x4d\xfc\x0b\x5c\xe1\xc6\xa8\x2b\x13\x13\x57\xba\x37\x24\xc4\xb0" "\x11\x4d\x4c\xc6\xdc\x3b\xf7\xce\x0c\xd3\x19\xe8\xc0\xc0\x50\xe6\xf3\x49" "\x06\xce\x99\x7b\x86\x73\xbe\x73\xce\xb9\xaf\x33\x97\x00\xfa\xd6\x78\xf6" "\x47\x12\xb1\x29\x22\x7e\x8b\x88\x75\xd5\xec\x8d\x05\xc6\xab\x7f\x5d\xbf" "\x76\x6e\xf6\xef\x6b\xe7\x66\x93\xa8\x54\xde\xfa\x33\xc9\xcb\xfd\x75\xed" "\xdc\x6c\x59\xb4\xfc\xdc\xc6\x6a\xa6\x52\x29\xf2\x23\x2d\xea\xbd\xf8\x6e" "\xc4\xcc\xc2\xc2\xfc\xe9\x22\x3f\xb9\x7c\xf2\x83\xc9\xa5\x33\x67\x5f\x3c" "\x7e\x72\xe6\xd8\xfc\xb1\xf9\x53\xd3\x87\x0e\xed\xdb\xbb\x73\xf8\xc0\xf4" "\xfe\xae\xc4\x39\x9a\xb5\x75\x24\x16\x77\x6c\x7b\xed\x9d\x4b\x6f\xcc\x1e" "\xb9\xf4\xde\x8f\xdf\x64\xed\xdd\x54\x6c\x6f\x8c\xa3\x5b\xc6\xab\xdf\xee" "\x4a\x03\xdd\xae\xa9\xf7\x36\x37\xa4\x93\xc1\x1e\x36\x84\x8e\x64\x43\x31" "\xeb\xae\xa1\x7c\xfe\x8f\xc6\x40\xac\xaf\x6d\x1b\x8d\x57\x3f\xed\x69\xe3" "\x80\xbb\xaa\x52\xa9\x54\x5a\x1d\x9f\x0b\x17\x2a\xc0\x03\x2c\x89\x5e\xb7" "\x00\xe8\x8d\xf2\x40\x9f\x5d\xff\x96\xaf\x7b\x74\xea\x71\x5f\xb8\x7a\x38" "\xe2\xc3\x83\xd5\xf8\xaf\x17\xaf\xea\x96\xc1\x48\x8b\x32\x43\x4d\xd7\xb7" "\xdd\x34\x1e\x11\x47\x2e\xfc\xf3\x65\xf6\x8a\xbb\x74\x1f\x02\x00\xa0\xd1" "\xe5\xc3\x11\xf1\x42\xab\xf3\xbf\x34\x1e\x69\x28\xb7\xa5\x58\x43\x19\x8b" "\x88\xff\x45\xc4\xff\x23\xe2\xa1\x88\xd8\x1a\x11\x0f\x47\xe4\x65\x1f\x8d" "\x88\xc7\x3a\xac\xbf\x79\x85\x64\xe5\xf9\x4f\x7a\xe5\xb6\x02\x5b\xa5\xec" "\xfc\xef\xa5\x62\x6d\xab\x76\xfe\xf7\x6f\x25\x8f\xbf\x30\x36\x50\xe4\x36" "\xe7\xf1\x0f\x25\x47\x8f\x2f\xcc\xef\x29\xbe\x93\xdd\x31\x34\x92\xe5\xa7" "\x6e\x52\xc7\x77\xaf\xfc\xf2\x79\xbb\x6d\x8d\xe7\x7f\xd9\x2b\xab\xbf\x3c" "\x17\xac\x4a\xaf\x0c\x36\xdd\xa0\x9b\x9b\x59\x9e\xb9\xc3\xb0\x6b\xae\x7e" "\x12\xb1\x7d\xb0\x29\xfe\x5c\x12\xe5\x32\x4e\x12\x11\xdb\x22\x62\x7b\x47" "\xff\x72\xfd\x0a\xe3\xf8\x73\x5f\xef\x68\x57\xaa\x1e\xff\xfa\x88\x68\x15" "\xff\x4d\x74\x61\x9d\xa9\xf2\x55\xc4\xb3\xd5\xfe\xbf\x10\x4d\xf1\x97\x92" "\xb6\xeb\x93\x53\x07\x0f\x4c\xef\x9f\x5c\x17\x0b\xf3\x7b\x26\xcb\x51\xb1" "\xd2\x4f\x3f\x5f\x7c\xb3\x5d\xfd\xb7\xee\xff\xbb\x2b\xeb\xff\x0d\xcd\xe3" "\xbf\xde\x7b\xe7\xb3\x21\x9f\xac\x8b\x58\x3a\x73\xf6\x44\xbe\x5e\xbb\xd4" "\x79\x1d\x17\x7f\xff\xac\xf9\x9a\xe6\x72\x39\x38\x6e\x77\xfc\x0f\x27\x6f" "\xe7\xe9\xe1\xe2\xbd\x8f\x67\x96\x97\x4f\x4f\x45\x0c\x27\xaf\xaf\x7c\x7f" "\xba\xfe\xd9\x32\x5f\x96\xcf\xe2\xdf\xbd\xab\xd5\xf8\x4f\xf3\x7d\x5c\x14" "\xfd\xff\x78\x44\x64\x83\x78\x67\x44\x3c\x11\x11\x4f\x16\x7d\xf7\x54\x44" "\x3c\x1d\x11\xbb\x6e\x12\xff\x0f\x2f\x3f\xf3\x7e\xbb\x6d\xcd\xf1\xd7\xf6" "\x3a\x2d\x57\xcd\xbb\x2f\x8b\x7f\xae\x45\xff\x37\x8c\xff\xb1\x2c\x55\xef" "\xff\xce\x13\x03\x27\xbe\xff\xb6\x5d\xfd\xab\xeb\xff\x7d\x79\x6a\x77\xf1" "\xce\x2d\xf6\x7f\xd9\xe5\x7a\xac\xb6\x81\x77\xfa\xfd\x01\x00\x00\xc0\x5a" "\x90\xe6\xbf\x81\x4f\xd2\x89\x5a\x3a\x4d\x27\x26\xaa\xbf\xe1\xdf\x1a\x1b" "\xd2\x85\xc5\xa5\xe5\xe7\x8f\x2e\x7e\x74\x6a\xae\xfa\x5b\xf9\xb1\x18\x4a" "\xcb\x3b\x5d\xa3\x0d\xf7\x43\xa7\x8a\x7b\xc3\x65\x7e\xba\x29\xbf\xb7\xb8" "\x6f\xfc\xc5\xc0\xfa\x3c\x3f\x31\xbb\xb8\x30\xd7\xeb\xe0\xa1\xcf\x6d\x6c" "\x33\xff\x33\x7f\x3c\x80\xcf\xa9\x00\x4d\x3c\xaf\x05\xfd\xcb\xfc\x87\xfe" "\x65\xfe\x43\xff\xaa\xcf\xff\x03\x3d\x6d\x07\x70\xef\x39\xfe\x43\xff\x6a" "\x35\xff\xcf\xf7\xa0\x1d\xc0\xbd\xe7\xf8\x0f\xfd\xcb\xfc\x87\xfe\x65\xfe" "\x43\xff\x32\xff\xa1\x2f\xdd\xf8\x48\xfc\x70\xd4\x9e\x8d\x4f\xef\xe8\x91" "\xff\x35\x9b\xf8\x75\xcb\x7d\xd1\x8c\x35\x90\x88\xb4\xf3\x4f\x0d\x46\x2f" "\xdb\x3c\xdc\xd3\xda\x6f\x3b\x31\xb8\xea\xff\xcc\xa2\xb3\xc4\x68\xb1\x0b" "\x38\x33\xd2\xb2\x4c\x8f\x77\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\x5d\xf2\x5f\x00\x00\x00\xff\xff\x07\x2e\xf0\x2b", 1148)); NONFAILING(syz_mount_image(/*fs=*/0x20000080, /*dir=*/0x20000480, /*flags=*/0, /*opts=*/0x200000c0, /*chdir=*/0xfe, /*size=*/0x47c, /*img=*/0x20000540)); // mlock2 arguments: [ // addr: VMA[0x3000] // size: len = 0x3000 (8 bytes) // flags: mlock_flags = 0x0 (8 bytes) // ] syscall(__NR_mlock2, /*addr=*/0x201e7000ul, /*size=*/0x3000ul, /*flags=*/0ul); // mlock arguments: [ // addr: VMA[0x800000] // size: len = 0x800000 (8 bytes) // ] syscall(__NR_mlock, /*addr=*/0x20000000ul, /*size=*/0x800000ul); // madvise arguments: [ // addr: VMA[0x600000] // len: len = 0x600003 (8 bytes) // advice: madvise_flags = 0x19 (8 bytes) // ] syscall(__NR_madvise, /*addr=*/0x20000000ul, /*len=*/0x600003ul, /*advice=MADV_COLLAPSE*/ 0x19ul); return 0; }