// https://syzkaller.appspot.com/bug?id=dacdd83da50d42f90f00ea4b3c264efb31070b26 // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; //% 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; } uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; memcpy((void*)0x20000300, "hfsplus\000", 8); memcpy((void*)0x20000040, "./file0\000", 8); memcpy( (void*)0x20000900, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\xae\x1d\xc7\xeb\x96\xd4" "\x6d\x93\x36\x45\x95\x62\x35\x12\x20\x2c\x12\x3b\x96\x4b\xcd\x85\x80\x10" "\xf2\xa1\x42\x55\x39\x70\xb6\x12\xa7\xb1\xb2\x71\x8b\xed\x22\xb7\x42\xd4" "\xbc\x95\x03\x97\x1e\xfa\x07\x94\x83\x6f\x9c\x90\xb8\x47\x2a\x17\x2e\x70" "\x40\xea\xd5\x17\xa4\x4a\x48\x5c\xca\x01\x73\x40\x8b\x66\x76\xd6\x5e\xbf" "\xc6\x4e\x6c\xef\xb6\x7c\x3e\xd1\xec\xf3\xcc\x3c\x33\xcf\xfc\x9e\xdf\xec" "\xec\xec\x6c\x64\x4d\x80\xff\x5b\xb3\xe3\x19\x7c\x90\x5a\x66\xc7\x5f\x5d" "\x2d\xe6\x37\xd6\xa7\x9a\x1b\xeb\x53\xf7\x3b\xf5\x24\xe7\x93\xd4\x93\xc1" "\x76\x91\xda\xbf\x5b\xad\xd6\xc7\xc9\xcd\xb4\xa7\xbc\x50\x2c\xac\xba\xab" "\x1d\xb4\x9f\x0f\x17\x66\x5e\xff\xe4\xb3\x8d\x4f\xdb\x73\x83\xd5\x54\xae" "\x5f\x3f\x6c\xbb\xa3\x59\xab\xa6\x8c\x25\x19\xa8\xca\x93\xea\xef\xd6\x63" "\xf7\x57\xdb\x1a\x61\x91\xb0\xab\x9d\xc4\x41\xaf\x9d\x4b\xd2\xda\xe1\xc7" "\x7f\x7e\x72\xab\xa5\x4b\x63\xbf\xad\x87\xcf\x24\x46\xe0\x74\xd5\xca\xeb" "\xe6\xde\xcb\xf0\x68\x32\x52\x9d\xe8\xc5\xf7\x80\xf6\x55\xb1\x7d\xcd\xee" "\x7b\x87\x7d\xa9\x58\x3b\xc3\x38\x00\x00\x00\xa0\x57\x9e\xda\xcc\x66\x56" "\x73\xa1\xd7\x71\x00\x00\x00\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\xe7\x49\xfb\xf9" "\xff\xe5\x23\xf3\x6b\xc9\x70\xea\x55\x7d\x2c\xb5\xce\xf3\xff\x87\xba\x1e" "\xa9\x3f\xd4\xe3\x70\xf7\xba\x72\xbc\xd5\x1f\x9c\x56\x1c\x00\x00\x00\x00" "\x00\x00\x00\x70\x86\xae\x6c\x66\x33\xab\xb9\xd0\x99\x6f\xfd\xb7\xd5\x6a" "\x25\x2f\x95\x33\x17\xcb\xd7\x27\xf2\x76\x96\x33\x9f\xa5\x5c\xcb\x6a\xe6" "\xb2\x92\x95\x2c\x65\x32\xc9\x68\x57\x47\x43\xab\x73\x2b\x2b\x4b\x93\x47" "\xd8\xf2\xc6\x7e\x5b\x66\xed\x21\x81\x9e\xaf\xca\x46\xd6\x46\x4e\x66\xe8" "\x00\x00\x00\x00\x00\x00\x00\xf0\x45\xf2\x8b\xcc\x6e\xff\xff\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\xf4\x83\x5a\x32\xd0\x2e\xca\xe9\x62" "\xa7\x3e\x9a\xfa\x60\x92\xe1\x24\x43\xc5\x7a\x6b\xc9\x5f\x3b\xf5\xbe\x50" "\x7b\xb4\xcd\x1e\x9c\x74\x1c\x00\x00\x00\xd0\x87\x9e\xda\xcc\x66\x56\x73" "\xa1\x33\xdf\xaa\x95\xf7\xfc\xcf\x95\x77\xd4\xc3\x79\x3b\x8b\x59\xc9\x42" "\x56\xd2\xcc\x7c\x6e\x57\x77\xd9\xc5\x5d\x7f\x7d\x63\x7d\xaa\xb9\xb1\x3e" "\x75\xbf\x98\xf6\xf6\xfb\x9d\x7f\x1e\x2b\x8c\xb2\xc7\xb4\x7f\x7b\xd8\x7f" "\xcf\x97\xcb\x35\x1a\xb9\x93\x85\x72\xc9\xb5\xdc\xca\x9b\x69\xe6\x76\xea" "\xe5\x96\x85\xcb\x9d\x78\xf6\x8f\xeb\xe7\x45\x4c\xb5\x6f\x57\x8e\x18\xd9" "\xed\xaa\x2c\x46\xfe\xc1\xae\xdf\x19\xfe\xfe\xdb\xaa\xf2\xde\xb1\x06\x7b" "\x90\x63\xfe\x98\x32\x5a\x66\xe4\xdc\x56\x46\x26\xaa\xd8\x8a\x6c\x3c\x7d" "\x78\x26\xae\x1c\xef\xe8\xec\xde\xd3\x64\xea\x5b\xc1\x5e\xdc\xb5\xa7\x72" "\xf9\xdf\x9e\xe8\x6c\xfa\x48\x39\x1f\xa9\xca\x62\x3c\xef\x3f\xfa\x6f\x3b" "\xa7\x60\x77\x26\x6e\x74\xbd\xfb\x9e\x3b\x3c\xe7\xc9\x57\xff\xf8\xfb\x1f" "\xdd\x6d\x2e\xde\xbb\x7b\x67\x79\xbc\x7f\x86\x74\x34\x03\x55\xd9\xea\x2c" "\xd8\x9d\x89\xa9\xae\x4c\x3c\xff\x45\xc9\xc4\x41\x67\xe4\x8e\xf3\x7d\xa2" "\xcc\xc4\xa5\xad\xf9\xd9\x7c\x3f\x3f\xcc\x78\xc6\xf2\x5a\xc6\xaa\x65\x2b" "\x99\xcf\x58\xbe\x97\xb9\xac\x64\xae\x7a\x3f\xd7\xba\x76\x70\x40\xa6\x6e" "\xee\x98\x7b\xed\x28\xe1\x8e\x6e\x1d\xac\x83\x62\x5a\xca\x42\x7e\x52\x46" "\xd2\x1d\xd3\x4b\xe5\xb6\x17\xb2\x90\x1f\xe4\xcd\xdc\xce\x7c\x5e\x2e\xff" "\xdd\xc8\x64\xbe\x99\xe9\x4c\x67\xa6\xeb\x08\x5f\x3a\xfc\x08\xbf\x5f\xee" "\xff\x80\xb3\xbe\xf5\xa5\x7d\x83\xbf\xfa\xb5\xaa\xd2\x48\xf2\x9b\xaa\xec" "\x0f\x45\x5e\x9f\xee\xca\x6b\xf7\x67\xee\x68\xd9\xd6\xbd\x64\x3b\x4b\xcf" "\x9c\xfc\xf5\x68\xf0\xcb\x55\xa5\xd8\xc7\x2f\xab\xb2\x3f\x8c\x96\xaf\x3b" "\xaf\x12\x9d\xe8\x9e\x3d\x3c\x13\xbf\x2b\x3f\x56\x96\x9b\x8b\xf7\x96\xee" "\xce\xbd\x55\xf6\xf2\x50\xcf\x7c\x90\xfc\x6b\xb1\x9a\xf9\x75\xdf\x5c\x25" "\xea\xd5\xfb\xe5\x99\xe2\x60\x95\x4b\x76\xbe\x3b\x8a\xb6\x67\xf7\x6d\x9b" "\x2c\xdb\x2e\x6e\xb5\xd5\xf7\xb4\x5d\xda\x6a\x6b\x9f\xa9\x6b\x07\x9e\xa9" "\x43\xd5\x77\xb8\xbd\x3d\xdd\x28\xdb\x9e\xdf\xb7\x6d\xaa\x6c\xbb\xdc\xd5" "\xb6\xdf\xf7\x2d\x00\xfa\xde\xc8\xd7\x47\x86\x1a\xff\x68\xfc\xa5\xf1\x51" "\xe3\x57\x8d\xbb\x8d\x57\x87\xbf\x7b\xfe\x95\xf3\x2f\x0e\xe5\xdc\x9f\xce" "\x7d\x6b\x70\x62\xe0\x2b\xf5\x17\x6b\x7f\xc8\x47\xf9\xd9\xf6\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\xf0\xe8\x96\xdf\x79\xf7\xde\x5c\xb3\x39\xbf\xb4\xab\xd2" "\x6a\xb5\xde\x3b\xa0\xa9\x17\x95\xce\x73\x81\x1e\xb7\x9f\x81\x13\xea\xe7" "\x18\x95\x17\x9e\x4c\xfa\x22\x87\x47\xad\xbc\x72\x1a\x3d\xff\xa7\xd5\x6a" "\x55\x4b\x6a\xbd\x1e\xe0\xc3\x2b\xad\x4a\xbf\xc4\xd3\x8b\x4a\x0f\x3f\x94" "\x80\x33\x71\x7d\xe5\xfe\x5b\xd7\x97\xdf\x79\xf7\x1b\x0b\xf7\xe7\xde\x98" "\x7f\x63\x7e\x71\x66\x7a\x7a\x66\x62\x66\xfa\xe5\xa9\xeb\x77\x16\x9a\xf3" "\x13\xed\xd7\x5e\x47\x09\x9c\x86\xed\x8b\x7e\xaf\x23\x01\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x8e\xea\x2c\xfe\x9c\xa0\xd7\x63\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\x3e" "\xdf\x66\xc7\x33\xf8\x20\xb5\x4c\x4e\x5c\x9b\x28\xe6\x37\xd6\xa7\x9a\xc5" "\xd4\xa9\x6f\xaf\x39\x98\xa4\x9e\xa4\xf6\xd3\xa4\xf6\x71\x72\x33\xed\x29" "\xa3\x5d\xdd\xd5\x0e\xda\xcf\x87\x0b\x33\xaf\x7f\xf2\xd9\xc6\xa7\xdb\x7d" "\x0d\x76\xd6\xaf\x1f\xb6\xdd\xd1\xac\x55\x53\xc6\x92\x0c\x54\xe5\x49\xf5" "\x77\xeb\xb1\xfb\xab\x6d\x8d\xb0\x48\xd8\xd5\x4e\xe2\xa0\xd7\xfe\x17\x00" "\x00\xff\xff\xf0\xd8\x14\xb1", 1645); syz_mount_image(/*fs=*/0x20000300, /*dir=*/0x20000040, /*flags=MS_POSIXACL|MS_SYNCHRONOUS|MS_NOATIME*/ 0x10410, /*opts=*/0x20000140, /*chdir=*/1, /*size=*/0x66d, /*img=*/0x20000900); memcpy((void*)0x20000180, "cgroup.controllers\000", 19); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000180ul, /*flags=*/0x275aul, /*mode=*/0ul); if (res != -1) r[0] = res; sprintf((char*)0x20000040, "0x%016llx", (long long)0); syscall(__NR_write, /*fd=*/r[0], /*buf=*/0x20000040ul, /*len=*/0xfea0ul); memcpy((void*)0x20000000, "./file1\000", 8); syscall(__NR_creat, /*file=*/0x20000000ul, /*mode=S_IWUSR|S_IRUSR*/ 0x180ul); return 0; }