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