// https://syzkaller.appspot.com/bug?id=c0cd29a3ebe1b3cb0de123bd4a42dc23d8270ebf
// autogenerated by syzkaller (https://github.com/google/syzkaller)

#define _GNU_SOURCE

#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <setjmp.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

#include <linux/loop.h>

#ifndef __NR_memfd_create
#define __NR_memfd_create 279
#endif
#ifndef __NR_mmap
#define __NR_mmap 222
#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, 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) {
    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) {
    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*)0x20000100, "ext2\000", 5);
  memcpy((void*)0x20000080,
         "./"
         "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000",
         106);
  memcpy((void*)0x20000000, "resuid", 6);
  *(uint8_t*)0x20000006 = 0x3d;
  sprintf((char*)0x20000007, "0x%016llx", (long long)0xee00);
  *(uint8_t*)0x20000019 = 0x2c;
  memcpy((void*)0x2000001a, "nouser_xattr", 12);
  *(uint8_t*)0x20000026 = 0x2c;
  *(uint8_t*)0x20000027 = 0;
  memcpy(
      (void*)0x20000c40,
      "\x78\x9c\xec\xdd\x41\x6f\x23\x57\x1d\x00\xf0\xff\x38\xf1\x36\xdb\x4d\xe5"
      "\x14\x38\x94\x4a\xb4\x0b\x2d\xda\xad\x60\xed\x4d\x43\xdb\x88\x43\x77\x57"
      "\x42\xdc\x2a\x81\xca\x7d\x1b\x25\x4e\x14\xad\x13\x47\xb1\xd3\x26\x51\x05"
      "\xae\xf8\x00\x48\xa8\x02\x24\x4e\x9c\xb8\x20\xf1\x01\x90\xd0\x7e\x04\x84"
      "\x54\x09\xee\x08\x09\x50\x05\x5b\x7a\xe0\x00\x1a\x34\xe3\x49\x09\xa9\x9d"
      "\x38\x59\xc7\x4e\x9d\xdf\x4f\x9a\xbc\x37\x6f\x3c\xf3\x7f\xcf\x8e\x3d\xf3"
      "\xde\x8c\x66\x02\xb8\xb4\xae\x47\xc4\xdd\x88\x98\x8a\x88\x97\x22\xa2\x52"
      "\x94\x97\x22\xe2\x4e\x96\xe9\x74\xa7\xec\x75\x1f\x3d\x7a\x77\x39\x9b\x92"
      "\x48\xd3\x37\xff\x9e\x44\x52\x94\x1d\xdd\xe6\xb5\x62\xb5\xe3\xb4\xf6\x4a"
      "\xb1\xd4\x68\xd4\xb7\x8b\xf9\x5a\x7b\x63\xab\xd6\xda\xdb\xbf\xb5\xbe\xb1"
      "\xb4\x56\x5f\xab\x6f\x2e\x2c\xcc\xbf\xba\xf8\xda\xe2\x2b\x8b\xb7\x87\xd2"
      "\xce\xac\x5d\xaf\x7f\xeb\xe3\x9f\xfc\xe8\x97\xdf\x7e\xfd\xb7\x5f\x7f\xe7"
      "\x4f\xf7\xff\x76\xf3\xfb\x49\xd1\xfe\xe8\xd3\x8e\x61\x48\xf2\xbf\xe5\x98"
      "\xc9\xf2\xc5\x9b\x32\x1d\x11\xdb\xe7\x11\x6c\x0c\xa6\x8a\xf6\x94\xc7\x5d"
      "\x11\x00\x00\x06\x92\x1d\xe7\x7f\x2e\x22\xbe\x92\x1f\xff\x57\x62\x2a\x3f"
      "\x9a\x03\x00\x00\x00\x26\x49\x7a\x67\x36\xfe\x9d\x44\xa4\x00\x00\x00\xc0"
      "\xc4\x2a\x45\xc4\x6c\x24\xa5\x6a\x71\x2d\xc0\x6c\x94\x4a\xd5\x6a\xf7\x1a"
      "\xde\x2f\xc4\x93\xa5\x46\xb3\xd5\xfe\xda\x6a\x73\x67\x73\x25\x5b\x16\x31"
      "\x17\xe5\x52\x7d\xbd\x51\xbf\x5d\x5c\x53\x3b\x17\xe5\x64\x75\xbd\x51\x9f"
      "\xcf\xf3\xff\x9b\x7f\xf9\xc8\xfc\x42\x44\x3c\x1d\x11\xef\x57\xae\xe6\xf3"
      "\xd5\xe5\x66\x63\x65\xdc\x83\x1f\x00\x00\x00\x70\x49\x5c\x3b\xd2\xff\xff"
      "\xb8\xd2\xed\xff\x03\x00\x00\x00\x13\x66\xae\x48\xdd\xc4\x09\x00\x00\x00"
      "\x26\xd7\xdc\xb8\x2b\x00\x00\x00\x00\x9c\xaf\x27\xfa\xf5\xff\x5d\x0d\x00"
      "\x00\x00\x00\x13\xe2\x3b\x6f\xbc\x91\x4d\xe9\xc1\xf3\xaf\x57\xde\xde\xdb"
      "\x79\xd0\x7c\xfb\xd6\x4a\xbd\xf5\xa0\xba\xb1\xb3\x5c\x5d\x6e\x6e\x6f\x55"
      "\xd7\x9a\xcd\xb5\xfc\x9e\x7d\x1b\x27\x6d\xaf\xd1\x6c\x6e\x7d\x23\x36\x77"
      "\x76\x6b\xed\x7a\xab\x5d\x6b\xed\xed\xdf\xdf\x68\xee\x6c\xb6\xef\xe7\xcf"
      "\xf5\xbe\x5f\x37\xa8\x00\x00\x00\x00\xa3\xf7\xf4\xf3\x0f\xff\x98\x44\x44"
      "\xe7\x9b\x57\xf3\x29\x73\xa5\x58\x76\x52\x5f\x7d\xe6\xdc\x6b\x07\x9c\xa7"
      "\xd2\xe0\x2f\x4d\xa6\x8f\x14\xbc\xf5\xe5\x61\xd7\x06\x18\xa5\xa9\xd3\xae"
      "\x70\x7d\xe7\x7c\x2a\x02\x8c\xdc\xd1\x7d\x3a\x70\x79\x38\x1f\x0f\x24\x87"
      "\xf2\xbd\xc6\xf5\xfa\x8e\xf5\xfd\xee\xac\x11\x4f\x31\xf2\x00\x00\x00\x0c"
      "\x45\xf2\xc5\xb3\x9f\xff\x07\x3e\xdb\x1e\xaf\x17\x9e\x0c\xad\x1e\xc0\xe8"
      "\x9d\xe2\xfc\xbf\xa7\x02\xc3\x84\x39\xf5\xf9\x7f\xbb\x7c\x98\x18\xe5\xd3"
      "\x5f\x01\x08\x4c\x98\x93\x76\xeb\x8f\x7f\xfe\x3f\x4d\x4f\x55\x21\x00\x00"
      "\x60\xe8\x66\xbb\x49\xe7\x4a\x71\x2e\x70\x36\x4a\xa5\x6a\x35\xe2\xa9\xfc"
      "\xb1\x80\xe5\x64\x75\xbd\x51\xbf\x1d\x9d\xfc\x45\x7f\xa8\x94\x9f\xc8\xe6"
      "\xe7\xc7\x5b\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\xf8\xcc\x49\xd3\x24\xd2\xb3\x99\x39\xeb\x8a\x00\x00"
      "\x00\xc0\x68\x45\x94\xfe\x9a\x14\xcf\xff\xba\x51\x79\x71\xf6\x60\x5c\xe0"
      "\x6e\x91\x5e\x49\xfe\x55\xc9\xd3\x88\x78\xe7\xe7\x6f\xfe\x74\x77\xa9\xdd"
      "\xde\x9e\xcf\xca\xff\xf1\x49\x79\xfb\x67\x45\xf9\xcb\xa7\x1d\x7c\xf8\xc1"
      "\x30\x87\x32\x00\x00\x00\xe0\x12\x29\x1f\xbb\xf4\xa0\x9f\xbe\xbb\x74\x67"
      "\x64\x35\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\xe0\xf2\xf8\xe8\xd1\xbb\xcb\x07\xd3\x28\xe3\x7e\x78\x2f\xae"
      "\xc6\x5c\xaf\xf8\xd3\x31\x93\xa7\x33\x51\x8e\x88\x27\xff\x99\xc4\xf4\xa1"
      "\xf5\x92\x88\x98\x1a\x42\xfc\xce\x7b\x11\xf1\x4c\xaf\xf8\x49\x56\xad\x98"
      "\x2b\x6a\x71\x34\x7e\x29\x22\xae\x9e\x6b\xfc\xae\xe3\xe2\x5f\x1b\x42\x7c"
      "\xb8\xcc\x1e\xde\x8b\x88\xbb\xbd\xbe\x7f\xa5\xb8\x9e\xa7\xbd\xbf\x7f\xd3"
      "\xc5\xf4\xb8\x3e\xbc\x97\x7f\xc9\x7b\xc6\x3f\xf8\xfd\x9b\xea\xf3\xfb\xf7"
      "\xd4\x80\x31\x9e\xfd\xe0\xd7\xb5\xbe\xf1\xdf\x8b\x78\x76\xfa\xd3\xf1\x1f"
      "\x3e\x1f\x9f\xc4\x4f\xfa\xc4\x7f\x61\xc0\xf8\x6f\x7d\x6f\x7f\xbf\xdf\xb2"
      "\xf4\x17\x11\x37\x7a\xee\x7f\x92\xff\x8b\x55\x6b\x6f\x6c\xd5\x5a\x7b\xfb"
      "\xb7\xd6\x37\x96\xd6\xea\x6b\xf5\xcd\x85\x85\xf9\x57\x17\x5f\x5b\x7c\x65"
      "\xf1\x76\x6d\x75\xbd\x51\x2f\xfe\xf6\x8c\xf1\xe3\x2f\xfd\xa6\xf3\x7e\xdf"
      "\xf6\x97\xf2\xf4\x70\xfc\x34\x4d\xd3\xe8\x7e\x2c\xc7\xb6\xff\xc5\x01\xdb"
      "\xff\x9f\x0f\x76\x1f\x7d\xbe\x9b\x2d\x7f\x3a\x7e\xc4\xcd\x17\x7a\x7f\xfe"
      "\xcf\x1c\x13\x3f\xfb\x9f\xf8\x6a\xb1\x1f\xc8\x96\xdf\x38\xc8\x77\xba\xf9"
      "\xc3\x9e\xfb\xd5\xef\x9f\xeb\x57\xb7\x2c\xfe\x4a\x9f\xf7\xff\xa4\xcf\xff"
      "\xe6\x80\xed\x7f\xe9\xbb\x3f\xfc\xf3\xa1\xd9\xbf\x74\x93\xb4\x32\xe0\xea"
      "\x00\xc0\x90\xb5\xf6\xf6\x1f\x2c\x35\x1a\xf5\xed\x61\x65\x62\xd8\x1b\xec"
      "\x9d\x49\xce\x3f\xc4\x90\x33\xd9\xd1\x54\x51\x92\x16\xc7\xb6\x67\xdf\x60"
      "\xb6\x81\x0b\xd2\xae\x0b\x99\x89\xc5\x81\xde\x9f\xb8\x9b\x67\x66\x2e\x44"
      "\x9d\x2f\x58\x66\xdc\xbf\x4c\x00\x00\xc0\xb0\x1d\xea\x0b\x01\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x63\x32\x8a\xdb\x89\x1d"
      "\x8d\xd9\x19\x4f\x53\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8e\xf5\xdf\x00\x00\x00\xff\xff"
      "\x0f\x8d\xd3\x8a",
      1318);
  syz_mount_image(0x20000100, 0x20000080, 0x3814489, 0x20000000, 1, 0x523,
                  0x20000c40);
  return 0;
}