// https://syzkaller.appspot.com/bug?id=0e77b741e3a1b835114f0f7f0f3e53e12c9a73bc
// 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 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;
}

int main(void)
{
  syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul,
          /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul);
  syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul,
          /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul);
  syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul,
          /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul);

  memcpy((void*)0x20000000, "hfsplus\000", 8);
  memcpy((void*)0x20000040, "./bus\000", 6);
  memcpy((void*)0x20000440,
         "\x00\x43\xe3\x5b\xb1\x11\xb8\xf6\x30\xfc\xdb\xa0\x68\x3a\x74\x73\xfe"
         "\xff\x00\x8e\x13\xad\xa0\x0a\xef\xba\x72\x84\x65\xb3\x5b\x50\x72\x07"
         "\x0b\xad\x8f\x99\x2e\xdb\xd4\x6c\x05\x8d\xc8\x90\xab\x52\x8f\x26\xfe"
         "\x3f\x00\xa4\x9c\x07\xbc\xd1\x49\x13\x6c\x40\xaa\x13\xd4\xe0\x7a\xdd"
         "\xd6\xfe\x05\x4f\xec\x74\x9e\x05\xfb\x0d\x35\xa0\x1d\x9e\xab\x5c\xb6"
         "\xb3\xbc\xdf\x6b\xe9\x5a\xe7\xfe\x3a\x8d\xa4\xd9\x9c\xbc\xe4\x06\xe5"
         "\xbc\x35\x37\x3c\x6d\x1c\x3b\x2f\xd9\xc6\xeb\xa8\xe9\xa4\x6a\xbc\xc5"
         "\xda\x67\x18\xf4\x53\x1c\x12\xf9\xc5\x30\xf4\x20\xe5\x52\x41\xe9\xe8"
         "\x66\x1b\xfc\xc3\x91\xc5\x82\xec\x9b\x0f\x37\x18\xa1\x03\x98\xac\x95"
         "\xe2\x5a\x0c\x4e\x8a\xc4\xa7\x7c\x40\x0a\x1d\x44\x48\xa3\x69\xad\x10"
         "\x9e\xaa\x97\xbc\xee\x53\xbf\xfe\xca\xd4\x2b\x35\x28\xb5\x00\xea\x40"
         "\x46\x32\xa7\x25\xde\x2b\xdd\x50\xeb\xb9\x9a\x33\x00\xe0\x9b\x40\x09"
         "\x9f\x15\x6f\xce\x3c\xb6\xab\x25\x8f\x4b\x23\xd0\x84",
         217);
  sprintf((char*)0x20000519, "0x%016llx", (long long)0);
  memcpy(
      (void*)0x2000052b,
      "\x00\xd5\xf4\x27\x36\x45\xa1\x92\xae\x36\x2c\x6e\x7b\x62\x61\x72\x72\x65"
      "\x72\x01\x77\xf6\xd7\x0a\x69\xa5\x70\x98\x65\x63\x7a\x6d\x70\x6f\x73\x65"
      "\x2c\x62\x61\x72\xba\x4c\xdc\x48\x6d\x1e\x00\xc2\x31\xea\x49\x6c\xc7\x69"
      "\x68\x66\x6e\x08\x8a\x22\xd1\xd7\x7b\x34\xf1\x66\xe5\x64\x03\x09\x9a\x48"
      "\x34\x90\x6c\x20\x71\xa7\x16\x37\xf4\xdb\x96\x5e\xda\xc6\xa3\x51\xbb\x35"
      "\x8f\x3b\xc0\x87\xae\x8b\x0c\x40\x3d\xc7\x65\x4f\x04\x53\x4c\xba\xc2\xa0"
      "\xd4\xad\x59\x61\x17\x17\x01\xd5\x80\x07\x5a\x15\xc9\xdf\xc0\x2d\x87\x7b"
      "\x21\x3c\x5c\x29\x74\xa4\x89\x03\xb7\xe2\x15\x60\x85\xd7\xee\xb6\x91\x95"
      "\xa0\x7c\x78\x80\x46\x46\x81\x38\x35\xd2\xc4\x81\x55\x25\xa8\xd9\x5f\xa7"
      "\x63\x11\x15\x6e\x29\xf8\x59\x18\x95\x82\x23\x6c\x0c\x4c\x09\x0c\x1b\xc4"
      "\x19\x5e\x11\x91\xe4\x01\xf5\x75\x18\x2a\xa0\x41\x0e\x9e\xf9\xb6\x25\xb4"
      "\x51\x43\x80\x32\x22\xa8\x87\xa9\xc5\xab\x59\x74\x1e\x34\x10\x22\x5d\x6d"
      "\x6e\x08\xbc\x37\x40\x1f\xd7\x3f\x59\x16\x67\x4d\xa0\x3f\x5a\x53\x8d\x4b"
      "\x09\x61\xb6\x79\x4b\xa1\x0d\x0f\x31\xf2\x81\xba\xeb\x58\x45\xd1\xe0\x78"
      "\xc2\xd9\x0a\x89\x9d\x67\xa2\xe2\x04\x00\x00\x00\x00\x00\x00\x00\x07\xa0"
      "\xd2\xdb\x38\xbc\x72\x45\x04\xf2\x6e\x4f\xcb\x3e\xf3\x45\xd1\x3e\x42\x20"
      "\xcb\x9f\x0c\x36\xec\x62\x48\x24\xcd\xbf\xa4\x5a\x3c\x37\x00\x00\x5a\x69"
      "\x27\x99\xe1\xbf\x34\xaf\x5c\x58\x8f\x40\x70\x6c\xc6\x9b\x02\x40\x82\xe7"
      "\x84\xa2\xdc\x1d\x2b\x84\x94\x9f\x9f\xcf\xde\x3a\x05\x34\x76\x5a\x44\x0d"
      "\x3b\xf0\x8f\x9e\xd6\x56\x3a\x28\x60\xbf\xcf\xf7\x1e\x8a\xf8\x87\xd7\x3c"
      "\xb9\xc7\x0f\x23\x50\xb6\x04\xee\x54\x7c\xe6\x98\xbe\xb0\x7a\x38\x42\xa8"
      "\x4e\x08\x50\x46\x67\x10\xc9\x51\xbb\x5a\x8a\x52\xfe\x61\xab\x48\x9b\xb2"
      "\xa5\x46\x14\xee\xad\x17\x09\xe2\x5b\xaa\x7a\xe3\xad\xd9\xb9\xb4\xd5\xd7"
      "\x3d\x63\x4e\x20\xb4\x7d\x31\xf7\x75\xc5\x26\x30\x37\x6e\x79\x70\x4c\xd2"
      "\x3a\x30\x4f\x93\x26\x9f\xbc\x7b\xa1\x6f\xfc\xd7\x92\x2a\x99\x7a\xca\xb6"
      "\xcb\x93\xcd\x1c\x3e\xff\xbd\x60\x2d\xd6\x9d\xa0\x3e\xbc\x68\x81\xcd\xc2"
      "\x76\x11\x44\xbc\x82\xa2\xa1\x0f\x57\xde\xc6\x08\x24\x67\x96\x42\xc5\xf8"
      "\x84\xb0\xa2\x4d\xac\x02\x08\x04\x78\x14\xa0\x36\x0f\xd3\x22\x60\x46\x14"
      "\x67\x39\x41\x07\xa2\x95\x50\xb4",
      512);
  memcpy(
      (void*)0x200009c0,
      "\x78\x9c\xec\xdd\xcd\x6b\x1c\xe7\x1d\x07\xf0\xef\xac\x56\x6b\xc9\x0d\xae"
      "\x92\xd8\x89\x29\x81\x0a\x1b\xd2\x82\xa8\xad\x17\x94\x56\xbd\xd4\x2d\xa5"
      "\xe8\x10\x4a\x48\x0f\x3d\x0b\x5b\x8e\x85\xd7\x72\x90\x94\xa2\x84\x52\xd4"
      "\xf7\x53\xa1\x87\xfc\x01\x69\x41\xb7\x9e\x0a\xbd\xbb\xb8\xe7\xf4\x96\xab"
      "\x8e\x81\x42\x2f\xa1\x07\xdf\x5c\x66\x76\xd6\x5a\x49\x2b\x47\xd6\xdb\x4a"
      "\xed\xe7\x63\x66\x9f\xe7\xd9\x67\xe6\x99\xdf\xfc\x76\x66\x76\x67\xd6\x62"
      "\x03\xfc\xdf\x9a\x9f\x48\xf3\x51\x8a\xcc\x4f\xbc\xbd\x5e\xb6\xb7\x36\x67"
      "\xda\x5b\x9b\x33\x17\xea\xee\x76\x92\xb2\xde\x48\x9a\x9d\x22\xc5\x72\x52"
      "\x3c\x4e\x6e\x95\xfd\x45\xcf\x94\x9e\x72\x8f\x8f\x97\xe6\xde\xfd\xec\x8b"
      "\xad\xcf\x3b\xad\x66\x3d\x55\xf3\x37\x9e\xb7\xdc\xc1\x6c\xd4\x53\xc6\x93"
      "\x0c\xd5\xe5\x5e\xc3\x87\x1a\xef\x76\x92\x97\xf6\xcc\xd2\x3a\xe8\x58\x3b"
      "\x66\x2c\x93\x76\xbd\x2e\x61\xe0\x9e\xee\xb1\xf1\x22\x8b\x1f\xf1\xb8\x05"
      "\x06\xa9\xfb\xee\x54\x74\xde\x37\xf7\x18\x4b\x2e\x26\x19\xa9\x3f\x07\xa4"
      "\x3e\x3b\x34\x4e\x2f\xc2\x93\xf1\x42\x67\x39\x00\x00\x00\x38\xa7\x3e\x7d"
      "\x38\xe8\x08\x00\x00\x00\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\xfc\xa9\x7f\xff\xbf"
      "\xa8\xa7\x46\x5d\x66\x3c\x45\xf7\xf7\xff\x5b\xdd\xe7\xea\xfa\xb9\xf6\x68"
      "\xd0\x01\x00\x00\x00\x00\x00\x00\x00\xc0\x31\xf8\xfa\x93\x3c\xc9\x7a\x2e"
      "\x75\xdb\x4f\x8b\xea\x3b\xff\x6b\x55\xe3\x72\xf5\xf8\x95\x7c\x90\xd5\x2c"
      "\x66\x25\x37\xb2\x9e\x85\xac\x65\x2d\x2b\x99\x4a\x32\xd6\x33\x50\x6b\x7d"
      "\x61\x6d\x6d\x65\xea\x00\x4b\x4e\xf7\x5d\x72\xfa\x74\xb6\x17\x00\x00\x00"
      "\x00\x00\x00\x00\xfe\x47\xfd\x2a\xf3\xdb\xdf\xff\x03\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x59\x50\x24\x43\x9d\xa2\x9a\x2e\x77\xeb\x63\x69"
      "\x34\xd3\xe9\x6b\x95\xf3\x6d\x24\xff\xec\xd6\xcf\x89\xa2\xef\xb3\xcd\x53"
      "\x8f\x03\x00\x00\x00\x8e\x64\xe4\x10\xcb\x7c\xf5\x49\x9e\x64\x3d\x97\xba"
      "\xed\xa7\x45\x75\xcd\xff\x5a\x75\xbd\x3c\x92\x0f\xb2\x9c\xb5\x2c\x65\x2d"
      "\xed\x2c\xe6\x4e\x7d\x0d\x5d\x5e\xf5\x37\xb6\x36\x67\xda\x5b\x9b\x33\x0f"
      "\xca\x69\xef\xb8\xdf\xff\xf7\x0b\x85\x51\x8d\x58\xdf\x5f\xe8\xbf\xe6\xab"
      "\xd5\x1c\xa3\xb9\x9b\xa5\xea\x99\x1b\xb9\x5d\x05\x73\x27\x8d\x6a\xc9\xd2"
      "\xd5\x6e\x3c\xfd\xe3\xfa\x65\x19\x53\xf1\xbd\xda\x01\x23\xeb\xde\x1f\x28"
      "\x57\xf6\xc7\x7d\xef\x22\x0c\xc2\x58\x1d\x5c\x37\x23\x93\x75\x6c\x65\x36"
      "\x5e\xee\x64\xa0\xa8\x6e\xd4\x24\xbb\x33\xf1\xa5\xaf\x4e\x73\xf7\x9a\xd2"
      "\xc8\xf0\xb3\x35\x4d\xa5\xf1\xec\xce\xcf\xe5\x13\xc8\xf9\xc5\xba\x2c\xb7"
      "\xe7\x77\x67\x2d\xe7\x9d\x4c\x34\x52\x65\x62\xba\x67\xef\x7b\xed\xf9\x99"
      "\x48\xbe\xf1\xb7\xbf\xfc\xf4\x5e\x7b\xf9\xfe\xbd\xbb\xab\x13\x67\x67\x93"
      "\x0e\x69\xf7\x3e\x31\xd3\x93\x89\xd7\xcf\x75\x26\x5e\xf4\x8e\xe0\x64\x95"
      "\x89\x2b\xcf\xda\xf3\xf9\x51\x7e\x92\x89\x8c\xe7\x9d\xac\x64\x29\x3f\xcb"
      "\x42\xd6\xb2\x98\xa7\x75\xff\x42\xbd\x3f\x97\x8f\x63\xcf\xcf\xd4\xad\x1d"
      "\xad\x77\xbe\x2c\x92\x56\xfd\xba\x74\xce\xa2\x07\x89\x69\x3c\x3f\xac\x6a"
      "\x0b\xb9\x56\x2d\x7b\x29\x4b\x29\xf2\x30\x77\xb2\x98\xb7\xaa\x7f\xd3\x99"
      "\xca\xb7\x33\x9b\xd9\xcc\xf5\xbc\xc2\x57\xf6\x8d\xbb\xda\xb6\xea\xa8\x6f"
      "\xec\x77\xd4\xff\xbd\x6f\xf0\xd7\xbf\x59\x57\x46\x93\xfc\xbe\x2e\x07\xad"
      "\xf3\x96\x5a\xe6\xf5\xe5\x9e\xbc\x0e\xf7\x9c\x73\xc7\xaa\xbe\xde\x67\xb6"
      "\xb3\xf4\x4a\x37\x3b\xc3\x7d\x07\x3f\xcc\xb9\xb1\xf9\xb5\xba\x52\xae\xe3"
      "\xd7\x75\x79\x36\xec\xce\xc4\x54\x4f\x26\x5e\x7d\xfe\x7e\xfe\xa7\xea\xd8"
      "\x58\x6d\x2f\xdf\x5f\xb9\xb7\xf0\xfe\x3e\xe3\x6f\xec\x6a\xbf\x59\x97\xe5"
      "\x1e\xf7\xdb\x03\xbf\x4b\xf4\x7f\x29\x8e\x57\xb9\xbf\xbc\x92\x91\xfa\x4c"
      "\xb2\x73\xef\x28\xfb\x5e\x7d\x76\x96\xd9\x99\xaf\x56\xfd\x8d\x4b\xa7\xaf"
      "\xb1\xa7\xef\x4a\xd5\x57\x14\xdd\x23\xf5\xc7\xfb\x1e\xa9\xad\xfa\x33\xdc"
      "\xde\x91\xa6\xab\xbe\xd7\xfb\xf6\xcd\x54\x7d\x57\x7b\xfa\x76\x7c\xde\xca"
      "\xc3\xb4\x73\xe7\x14\xf2\x07\xc0\x11\x8d\xe5\x62\x6b\xf4\x5f\xa3\x9f\x8e"
      "\x7e\x32\xfa\x9b\xd1\x7b\xa3\x6f\x8f\xfc\xe0\xc2\x77\x2e\xbc\xd1\xca\xf0"
      "\x3f\x86\xbf\xdb\x9c\x1c\x7a\xb3\xf1\x46\xf1\xd7\x7c\x92\x5f\x6c\x5f\xff"
      "\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x87\xb7\xfa\xe1\x47\xf7\x17\xda\xed\xc5\x95\xfe"
      "\x95\xc6\xfe\x5d\xc7\x5b\x29\xea\x1f\xf2\x39\x8d\x75\x9d\x46\x65\x24\xc9"
      "\x19\x08\xe3\x8c\x56\xba\x3f\x22\xd8\x7f\x9e\x3f\x1c\x7c\xc0\x5b\x67\x62"
      "\x73\xce\x75\x65\x28\x49\xbf\xae\x01\x9f\x98\x80\x13\x77\x73\xed\xc1\xfb"
      "\x37\x57\x3f\xfc\xe8\x5b\x4b\x0f\x16\xde\x5b\x7c\x6f\x71\x79\x78\x76\x76"
      "\x6e\x72\x6e\xf6\xad\x99\x9b\x77\x97\xda\x8b\x93\x9d\xc7\x41\x47\x09\x9c"
      "\x84\xed\x37\xfd\x41\x47\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x54"
      "\xbf\x3f\x0c\xb8\xf6\xd2\x71\xfc\xed\x4a\xcb\xff\x2c\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\x8e"
      "\xc5\xfc\x44\x9a\x8f\x52\x64\x6a\xf2\xc6\x64\xd9\xde\xda\x9c\x69\x97\x53"
      "\xb7\xbe\x3d\x67\x33\x49\xa3\x91\x14\x3f\x4f\x8a\xc7\xc9\xad\x74\xa6\x8c"
      "\xf5\x0c\x57\xe4\xcf\x8f\xfb\xae\xe7\xe3\xa5\xb9\x77\x3f\xfb\x62\xeb\xf3"
      "\xed\xb1\x9a\x9d\xf9\x93\x46\x5d\x1e\xc1\x46\x3d\x65\x3c\xc9\x50\x5d\x1e"
      "\xd7\x78\xb7\x8f\x3c\x5e\xf1\x9f\xee\x16\x96\x09\xbb\xde\x4d\x1c\x0c\xda"
      "\x7f\x03\x00\x00\xff\xff\x06\x3b\xf7\xa4",
      1612);
  syz_mount_image(/*fs=*/0x20000000, /*dir=*/0x20000040, /*flags=*/0x2000010,
                  /*opts=*/0x20000440, /*chdir=*/7, /*size=*/0x64b,
                  /*img=*/0x200009c0);
  return 0;
}