// https://syzkaller.appspot.com/bug?id=0e77b741e3a1b835114f0f7f0f3e53e12c9a73bc // 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 #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) { errno = EMSGSIZE; return -1; } 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, 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 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, loopfd = -1, 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) { memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; 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) { if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0) 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) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } errno = err; return res; } int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); memcpy((void*)0x20000600, "hfsplus\000", 8); memcpy((void*)0x20000100, "./file0\000", 8); memcpy( (void*)0x20000640, "\x78\x9c\xec\xdd\xcd\x6f\x1c\x67\x1d\x07\xf0\xef\xac\xd7\x8e\x1d\x24\xd7" "\x6d\x93\x36\xa0\x4a\x58\x8d\x54\x10\x16\x89\x5f\xe4\x82\xb9\x10\x10\x42" "\x3e\x54\xa8\x2a\x12\x9c\xad\xc4\x69\xac\x6c\xd2\xca\x76\x91\x5b\x21\x94" "\xf0\x7a\xe5\xd0\x3f\xa0\x1c\x7c\xe3\x84\xc4\x3d\x12\x70\x85\x5b\xaf\x7b" "\xac\x84\xc4\xa5\x27\xdf\x82\x66\x76\xd6\xde\xd8\x8e\xb3\x36\x8e\x77\x4d" "\x3e\x9f\x68\xf6\x79\x9e\x79\xe6\x79\xe6\x37\xbf\x9d\x99\x7d\xb1\xa2\x0d" "\xf0\xc2\x5a\x9e\x49\xf3\x51\x8a\x2c\xcf\xbc\xb3\x55\xb6\xdb\xdb\x0b\xad" "\xf6\xf6\xc2\x85\xba\xbb\x95\xa4\xac\x37\x92\x66\xa7\x48\x71\x3f\x29\xfe" "\x96\xdc\x48\x67\xc9\x57\xcb\x95\xf5\xf6\xc5\xd3\xf6\xf3\xe9\xda\xd2\x7b" "\x9f\x7f\xd9\xfe\xa2\xd3\x6a\xd6\x4b\xb5\x7d\xe3\xa8\x71\xfd\x79\x50\x2f" "\x99\x4e\x32\x52\x97\x07\x8d\x9e\x68\xbe\x9b\x4f\x9d\xaf\x5f\xc5\xee\x11" "\x96\x09\xbb\xda\x4d\x1c\x0c\xda\xe3\x03\x1e\x1c\x67\xf8\xff\x78\xdd\x02" "\xc3\xa0\xe8\xbc\x6e\xee\x5b\x95\x4c\x25\x17\x93\x8c\xd7\xef\x03\x52\xdf" "\x1d\x1a\x67\x1f\xe1\xe9\x3a\xd6\x5d\x0e\x00\x00\x00\xce\x99\xeb\x3f\xbb" "\x3a\x55\x96\x2f\xed\x64\x27\x5b\x99\x1c\x74\x3c\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x70\x9e\xd4\xbf\xff\x5f\xd4\x4b\xa3\x5b\x9f\x4e\xd1\xfd\xfd" "\xff\xb1\x7a\x5d\xea\xfa\xf9\x34\x32\xe8\x00\x00\x00\x00\x00\x00\x00\x00" "\xe0\xf4\x7c\x7d\x27\x3b\xd9\xca\x64\xb7\xfd\xb8\xa8\xfe\xe6\xff\x66\xd5" "\xb8\x54\x3d\x7e\x25\x1f\x65\x23\xab\x59\xcf\xb5\x6c\x65\x25\x9b\xd9\xcc" "\x7a\xe6\x92\x4c\xf5\x4c\x34\xb6\xb5\xb2\xb9\xb9\x3e\xd7\xc7\xc8\xf9\x43" "\x47\xce\x9f\xcd\xf1\x02\x00\x00\x00\x00\x00\x00\xc0\xff\xa9\x5f\x67\x79" "\xef\xef\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x0c\x8a\x64" "\xa4\x53\x54\xcb\xa5\x6e\x7d\x2a\x8d\x66\x92\xf1\x24\x63\xe5\x76\x0f\x92" "\x7f\x75\xeb\xe7\xd9\xa3\x41\x07\x00\x00\x00\x00\x67\xe0\xa5\x9d\xec\x64" "\x2b\x93\xdd\xf6\xe3\xa2\xfa\xcc\xff\x5a\xf5\xb9\x7f\x3c\x1f\xe5\x7e\x36" "\xb3\x96\xcd\xb4\xb2\x9a\x5b\xd5\x77\x01\x9d\x4f\xfd\x8d\xf6\xf6\x42\xab" "\xbd\xbd\x70\xaf\x5c\x0e\xce\xfb\x83\xff\x1c\x2b\x8c\x6a\xc6\x74\xbe\x7b" "\x38\x7c\xcf\x57\xaa\x2d\x26\x72\x3b\x6b\xd5\x9a\x6b\xb9\x99\x0f\xd2\xca" "\xad\x34\xaa\x91\xa5\x2b\xdd\x78\x0e\x8f\xeb\x61\x19\x53\xf1\xfd\x5a\x9f" "\x91\xdd\xaa\xcb\xf2\xc8\xff\x58\x97\xc3\x61\xaa\xca\xc8\xe8\x6e\x46\x66" "\xeb\xd8\xca\x6c\xbc\x7c\x74\x26\x8e\xf9\xec\xec\xdf\xd3\x5c\x1a\xbb\xdf" "\xfc\x5c\x7a\x0e\x39\xbf\x58\x97\xe5\xf1\xfc\x7e\x20\x39\x7f\xda\xf7\x5a" "\xfb\x33\x31\xdf\x73\xf6\xbd\x76\x74\x26\x92\x6f\xfc\xf5\xcf\x3f\xbf\xd3" "\xba\x7f\xf7\xce\xed\x8d\x99\xe1\x39\x8d\x4e\x68\x5f\x26\xaa\x24\x74\x33" "\xf1\xfa\x0b\x95\x89\xd9\xea\xc8\x2f\xef\xb6\x97\xf3\xe3\xfc\x34\x33\x99" "\xce\xbb\x59\xcf\x5a\x7e\x91\x95\x6c\x66\x35\xd3\xf9\x51\x55\x5b\xa9\xcf" "\xe7\xf2\x71\xea\xe8\x4c\xdd\x78\xa2\xf5\xee\xb3\x22\x19\xab\x9f\x97\xce" "\x5d\xf4\x78\x31\xbd\x59\x8d\x9d\xcc\x5a\x7e\x92\x0f\x72\x2b\xab\x79\xbb" "\xfa\x37\x9f\xb9\x7c\x27\x8b\x59\xcc\x52\xcf\xb9\x7e\xb9\x8f\xab\xbe\x71" "\xbc\xab\xfe\xea\x37\xeb\xca\x44\x92\x3f\xd4\xe5\xa1\xc6\xfb\x9b\xf0\xf4" "\xec\xcf\x6b\xef\x3d\xb7\x5c\xff\xf2\x13\x6b\x1a\x0f\xbb\x59\x7a\xa5\xbd" "\xfd\x30\xc9\x69\xde\x1b\x9b\x5f\xab\x2b\xe5\x3e\x7e\xd3\x73\xcd\x0d\xde" "\xfe\x4c\xcc\xf5\x9c\x2f\xaf\x1e\x7d\xbe\xfc\xe9\x71\xf9\xb8\xd1\x2a\xee" "\xae\xdf\x59\xf9\xb0\xcf\xfd\xbd\x55\x97\xe5\x75\xf4\xbb\xa1\x7a\x65\x2e" "\xcf\x97\x57\xca\x27\xab\x6a\x3d\x79\x76\x94\x7d\xaf\x1e\xda\x37\x57\xf5" "\x5d\xda\xed\x6b\x1c\xe8\xbb\xbc\xdb\xf7\xac\x2b\x75\xac\x7e\x0f\x77\x70" "\xa6\xf9\xaa\xef\xf5\x43\xfb\x16\xaa\xbe\x2b\x3d\x7d\x87\xbd\xdf\x02\x60" "\xe8\x5d\xfc\xd6\xc5\xb1\x89\x7f\x4f\xfc\x73\xe2\xb3\x89\xdf\x4e\xdc\x99" "\x78\x67\xfc\x87\x17\xbe\x7b\xe1\x8d\xb1\x8c\xfe\x7d\xf4\x7b\xcd\xd9\x91" "\xb7\x1a\x6f\x14\x7f\xc9\x67\xf9\xd5\xde\xe7\x7f\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0" "\xe4\x36\x3e\xfe\xe4\xee\x4a\xab\xb5\xba\x3e\xe0\x4a\x51\xff\x90\xcf\xb0" "\xc4\x33\xf8\xca\x48\x86\x22\x8c\xc1\x57\xc6\x33\x14\x61\xbc\x30\x95\x33" "\xff\x99\x35\x60\x30\xae\x6f\xde\xfb\xf0\xfa\xc6\xc7\x9f\x7c\x7b\xed\xde" "\xca\xfb\xab\xef\xaf\xde\x1f\x5d\x5c\x5c\x9a\x5d\x5a\x7c\x7b\xe1\xfa\xed" "\xb5\xd6\xea\x6c\xe7\x71\xd0\x51\x02\xcf\xc3\xde\xab\xff\x31\x07\x4e\x3d" "\xa7\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x67\x3a\x8b\xff\x57\x30" "\xe8\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\xce\xb7\xe5\x99\x34\x1f\xa5\xc8\xdc\xec\xb5\xd9" "\xb2\xdd\xde\x5e\x68\x95\x4b\xb7\xbe\xb7\x65\x33\x49\x23\x49\xf1\xcb\x4e" "\xbd\x74\xa3\x7c\x98\xea\x99\xae\x78\xda\x7e\x3e\x5d\x5b\x7a\xef\xf3\x2f" "\xdb\x5f\xec\xcd\xd5\xec\x6e\xdf\x38\x6a\x5c\x7f\x1e\xd4\x4b\xa6\x93\x8c" "\xd4\xe5\x69\xcd\x77\x33\xc9\x3f\x26\x3b\x1d\x27\x8b\xb3\xd8\x1d\x59\x26" "\xec\x6a\x37\x71\x30\x68\xff\x0d\x00\x00\xff\xff\xca\x96\x03\x3e", 1546); syz_mount_image(0x20000600, 0x20000100, 0xa00010, 0x20000040, 3, 0x60a, 0x20000640); memcpy((void*)0x20000000, "./file1\000", 8); syscall(__NR_unlink, 0x20000000ul); memcpy((void*)0x20000300, "./bus\000", 6); syscall(__NR_creat, 0x20000300ul, 0ul); return 0; }