// https://syzkaller.appspot.com/bug?id=8df0dad6e7b134ca278ef19ffbe13665a83fbd14
// 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=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);
  const char* reason;
  (void)reason;
  if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {
  }
  memcpy((void*)0x200019c0, "udf\000", 4);
  memcpy((void*)0x20000f40,
         "./"
         "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000",
         253);
  memcpy(
      (void*)0x20000280,
      "\x6d\x6f\x64\x65\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30"
      "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x37\x2c\x6e\x6f\x73\x74\x72\x69\x63"
      "\x74\x2c\x75\x69\x64\x3d\x69\x67\x6e\x6f\x72\x65\x2c\x67\x69\x64\x3d\x66"
      "\x6f\x72\x67\x65\x74\x2c\x6c\x6f\x6e\x67\x61\x64\x2c\x6e\x6f\x76\x72\x73"
      "\x2c\x75\x6e\x64\x65\x6c\x65\x74\x65\x2c\x6d\x6f\x64\x65\x3d\x30\x30\x30"
      "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x33\x35\x30"
      "\x31\x36\x2c\x64\x6d\x6f\x64\x65\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30"
      "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x31\x31\x2c\x00\xe3\xcc"
      "\x6a\xba\xa5\x2e\xf1\x18\xfc\xbe\x73\x4b\x47\xa6\xbf\x66\xbd\xd3\x57\xc8"
      "\x1c\x22\xed\x4c\x07\x65\x9e\x40\xba\x6f\x24\xe5\x0f\xaf\xda\x55\xf8\xd6"
      "\xb0\x1f\x7f\xa9\x50\x59\x96\xc5\xc8\xe5\xfa\xc0\x82\x52\x3b\x41\xc6\x9e"
      "\x89\x2f\x8f\x33\x72\x22\x8d\xa8\x5b\x08\x9c\x44\x9c\x82\x43\x48\x96\x93"
      "\xfc\x72\x4d\xc3\xa3\x4a\x1c\x85\x22\x6b\x30\x6f\x86\xba\x04\x84\xaa\xd1"
      "\x78\x49\xd2\x19\x05\xbb\xe3\xdb\xc2\x0b\xf4\xc9\x87\x77\x72\x0c\x05\x63"
      "\x7d\xb4\x4e\xf1\x22\x47\x90\x22\x3b\x18\x3b\xe4\xcb\xcc\xef\x28\xb6\xdc"
      "\x77\x01\xcf\x3b\x6d\x45\xba\xbe\x7a\x01\x77\xb3\x41\x16\xf8\x03\x3c\x06"
      "\x14\xd3\x51\xa0\x15\x26\xa5\xe4\x62\x61\x59\xb2\xd7\xa3\x17\x65\x75\xb8"
      "\x7c\xe2\x3e\xfc\x23\xd6\xfc\x18\x2e\xcb\x01\xea\x4d\x18\x27\x20\xd9\x3a"
      "\xb9\xa9\x9e",
      327);
  memcpy(
      (void*)0x20002680,
      "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\x2d\xb5\x4b\xb9\xad"
      "\x99\xd8\x55\x9c\x34\x0e\x36\x6d\x91\xca\x8a\xe5\xea\x5f\x4c\xc5\x2a\xdc"
      "\x55\x4d\xb3\x2d\x20\xcb\x42\x28\xe6\x16\x80\x2b\x91\x52\x17\xa6\x48\x82"
      "\xa4\x1a\xd9\x48\x0b\xa6\x97\x1e\x7a\x08\x50\x14\x3d\xe4\x44\xa0\x35\x0a"
      "\xa4\x68\x60\x34\x45\xd0\x23\xd3\xba\x40\x72\xf1\xa1\xc8\xa9\x27\xa2\x85"
      "\x8d\xa0\xe8\x81\x2d\x02\x04\x28\x10\x30\x98\xd9\xb7\xe2\x8a\x22\x13\x5a"
      "\x14\x45\x4a\xfe\x7c\x6c\xe9\x3b\x3b\xf3\xde\xcc\x7b\x33\xeb\x19\x5a\xd0"
      "\x9b\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\xc4\xef"
      "\xbd\x7a\xe1\xe4\xa9\xb4\xc5\x86\x43\xfb\xd0\x18\x00\xe0\xa1\xb8\x34\xf6"
      "\xa5\x93\xa7\xb7\x7a\xfe\x03\x00\x8f\xad\x2b\xdb\xfd\xff\x3f\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x70\x50\xa4\x28\xe2\xa9\x48\x31\x77\x69"
      "\x2d\x4d\x54\x9f\xbb\x1a\x17\x3b\x03\xb7\x6e\x8f\x8f\x8c\x6e\x5d\x6d\x30"
      "\x55\x35\x0f\x55\xe5\xcb\x5f\x8d\x53\xa7\xcf\x9c\xfd\xc2\x8b\xc3\xe7\x7a"
      "\x79\xb1\x33\xf3\x73\xea\x3f\x68\x9f\x8a\xd7\xc7\xae\x5c\x68\xbe\x32\x7b"
      "\x73\x6e\x7e\x6a\x61\x61\x6a\xb2\x39\x3e\xd3\xb9\x36\x3b\x39\xb5\xe3\x3d"
      "\xec\xb6\xfe\x66\xc7\xab\x13\xd0\xbc\xf9\xc6\xad\xc9\xeb\xd7\x17\x9a\xa7"
      "\x5f\x38\x73\xd7\xe6\xdb\x43\x1f\xd4\x9f\x38\x3a\x74\x7e\xf8\xb9\x13\xcf"
      "\xf6\xca\x8e\x8f\x8c\x8e\x8e\x6d\x14\x69\xf4\x97\xaf\xdd\x77\x43\xba\xb6"
      "\x1b\xe1\x71\x38\x8a\x38\x11\x29\x9e\xff\xf6\x8f\x52\x3b\x22\x8a\xd8\xfd"
      "\xb9\x68\x3c\xdc\x6b\xbf\xd9\x60\xd5\x89\xe3\x55\x27\xc6\x47\x46\xab\x8e"
      "\x4c\x77\xda\x33\x8b\xe5\xc6\xcb\xbd\x13\x51\x44\x34\xfb\x2a\xb5\x7a\xe7"
      "\x68\xeb\x6b\x11\xb5\x81\x87\xda\x87\xed\xb5\x22\x96\xca\xe6\x97\x0d\x3e"
      "\x5e\x76\x6f\x6c\xae\x3d\xdf\xbe\x3a\x3d\xd5\xbc\xdc\x9e\x5f\xec\x2c\x76"
      "\x66\x67\x2e\xa7\x6e\x6b\xcb\xfe\x34\xa3\x88\x73\x29\x62\x39\x22\x56\xeb"
      "\xf7\xee\x6e\x20\x8a\xa8\x45\x8a\x6f\x3e\xb9\x96\xae\xe6\xb7\x7e\x54\xe7"
      "\xe1\xf3\xd5\xc0\xe0\xed\xdb\x51\xec\x61\x1f\x77\xa0\x6c\x67\x73\x20\x62"
      "\xb9\x78\x04\xae\xd9\x01\x56\x8f\x22\x5e\x8b\x14\x3f\x7e\xf7\x58\x5c\xcb"
      "\xf7\x99\xea\x5e\xf3\xb9\x88\xd7\xca\xfc\x6e\xc4\xdb\x65\xbe\x1c\x91\xca"
      "\x2f\xc6\xd9\x88\xf7\xb7\xf8\x1e\xf1\x68\xaa\x45\x11\x7f\x51\x5e\xff\xf3"
      "\x6b\x69\xb2\xba\x1f\xf4\xee\x2b\x17\xbf\xdc\xfc\xc3\x99\xeb\xb3\x7d\x65"
      "\x7b\xf7\x95\x0f\xf9\x7c\xb8\xe7\x4e\xb1\x4f\xcf\x87\xc1\x4d\xf9\x70\x1c"
      "\xf0\x7b\x53\x23\x8a\x68\x57\x77\xfc\xb5\x74\xff\x3f\xec\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\xa0\x0d\x46\x11\x9f\x8c\x14\xaf"
      "\xfe\xfb\x1f\x57\xe3\x8a\xa3\x1a\x97\xfe\xe4\xf9\xe1\xdf\x1f\xfa\xe5\xfe"
      "\x31\xe3\xcf\xfc\x82\xfd\x94\x65\x5f\x88\x88\xa5\x62\x67\x63\x72\x0f\xe7"
      "\x81\x81\x97\xd3\xe5\x94\xf6\x79\x2c\xf1\x47\x59\x23\x8a\xf8\x93\x3c\xfe"
      "\xef\xeb\xfb\xdd\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x80\x8f\xb4\x22\x7e\x18\x29\x5e\x7a\xef\x58\x5a\x8e\xfe\x39\xc5\x3b"
      "\x33\x37\x9a\x57\xda\x57\xa7\xbb\xb3\xc2\xf6\xe6\xfe\xed\xcd\x99\xbe\xbe"
      "\xbe\xbe\xde\x4c\xdd\x6c\xe5\x9c\xc8\xb9\x94\x73\x39\xe7\x4a\xce\xd5\x9c"
      "\x51\xe4\xfa\xf5\xee\x8e\x5a\xf9\xf3\x44\xce\xa5\x9c\xcb\x39\x57\x72\xae"
      "\xe6\x8c\x43\xb9\x7e\xce\x56\xce\x89\x9c\x4b\x39\x97\x73\xae\xe4\x5c\xcd"
      "\x19\xb5\x5c\x3f\x67\x2b\xe7\x44\xce\xa5\x9c\xcb\x39\x57\x72\xae\xe6\x8c"
      "\x03\x32\x77\x2f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\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\xe3\xa4\x88"
      "\x22\x7e\x1a\x29\xbe\xf1\xd5\xb5\x14\x29\x22\x5a\x11\x13\xd1\xcd\x95\xfa"
      "\x7e\xb7\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x28\xd5\x53\x11\xdf\x89\x14\xcd\x3f\x68\xdd\x59\x57\x8b"
      "\x88\x54\xfd\xdb\x75\xac\xfc\xed\x6c\xb4\x0e\x97\xf9\xf1\x68\x0d\x97\xf9"
      "\x72\xb4\x2e\xe4\x6c\x57\x59\x6b\x7d\x7d\x1f\xda\xcf\xee\x0c\xa4\x22\x7e"
      "\x10\x29\xea\x8d\x77\xee\x5c\xf0\x7c\xfd\x07\xba\x9f\xee\x7c\x0d\xe2\xed"
      "\xaf\x45\x0c\xe6\xe5\x4f\xd5\xba\x79\xa8\xb7\x71\xe8\x83\xfa\x13\x47\x9f"
      "\x3c\x3f\x3c\xfa\x99\x67\xb6\x5b\x4e\x5b\x35\xe0\xf8\xc5\xce\xcc\xad\xdb"
      "\xcd\xf1\x91\xd1\xd1\xb1\xbe\xd5\xb5\x7c\xf4\x8f\xf7\xad\x1b\xca\xc7\x2d"
      "\x1e\x4c\xd7\x89\x88\x85\x37\xdf\x7a\xa3\x3d\x3d\x3d\x35\x7f\x3f\x0b\x87"
      "\xab\x85\xf2\x2b\x70\x5f\xd5\x1f\xb9\x85\x54\xdb\x87\x9e\xd6\x3f\x32\xa7"
      "\xf7\xe0\x2d\x44\xed\x40\x34\x63\x7f\xfa\x7e\x97\xc6\x7e\xdd\xa0\xd8\x53"
      "\xe5\xf3\xff\xfd\x48\xf1\xdb\xef\xfd\x47\xef\x81\xdf\x7d\xfe\x37\xe2\x97"
      "\xba\x9f\xee\x3c\xe1\xe3\x27\x7f\xba\xf1\xd3\xc0\x4b\x9b\x77\xb4\xc3\xe7"
      "\x7f\x6d\x73\xbd\xfc\xfc\x2f\x9f\xe9\x5b\x3d\xff\x9f\xea\x5b\xf7\x52\xfe"
      "\x69\x64\xa0\x16\xd1\x58\xbc\x39\x37\x70\x34\xa2\xb1\xf0\xe6\x5b\x27\x3a"
      "\x37\xdb\x37\xa6\x6e\x4c\xcd\x9c\x3d\x79\xf2\x8b\xc3\xc3\x5f\x3c\x73\x72"
      "\xe0\x70\x44\xe3\x7a\x67\x7a\xaa\x6f\xe9\x81\x9c\x2e\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x80\x87\x27\x15\xf1\xbb\x91\xa2\xfd\x83\xb5"
      "\xd4\x8c\x88\xdb\xd5\x78\xad\xa1\xf3\xc3\xcf\x9d\x78\xf6\x50\x1c\xaa\xc6"
      "\x5b\xdd\x35\x6e\xfb\xf5\xb1\x2b\x17\x9a\xaf\xcc\xde\x9c\x9b\x9f\x5a\x58"
      "\x98\x9a\x6c\x8e\xcf\x74\xae\xcd\x4e\x4e\xed\xf4\x70\x8d\x6a\xb8\xd7\xf8"
      "\xc8\xe8\x9e\x74\xe6\x17\x1a\xdc\xe3\xf6\x0f\x36\x5e\x99\x9d\x7b\x73\xbe"
      "\x73\xe3\x8f\x16\xb7\xdc\x7e\xa4\x71\xe1\xea\xc2\xe2\x7c\xfb\xda\xd6\x9b"
      "\x63\x30\x8a\x88\x56\xff\x9a\xe3\x55\x83\xc7\x47\x46\xab\x46\x4f\x77\xda"
      "\x33\x55\xd5\xcb\x5b\x0e\xa6\xff\xf0\x06\x52\x11\xff\x19\x29\xae\x9d\x6d"
      "\xa6\xcf\xe6\x75\x79\xfc\xff\xe6\x11\xfe\xd5\xf8\xff\xde\x61\x97\x36\xef"
      "\xe8\x01\x8e\xff\xff\xcc\x91\x8d\xf1\x7f\x1f\xeb\x2b\x5a\x1e\x33\xa5\x22"
      "\x7e\x12\x29\x7e\xeb\x2f\x9f\x89\xcf\x56\xed\x3c\x12\xf7\x9c\xb3\x5c\xee"
      "\x6f\x23\xc5\xf1\x73\x9f\xce\xe5\xe2\x70\x59\xae\xd7\x86\xee\x7b\x05\xba"
      "\x23\x03\xcb\xb2\xff\x1b\x29\xfe\xf1\xa7\x77\x97\xed\x8d\x87\x7c\x6a\xa3"
      "\xec\xa9\x0f\x75\x72\x1f\x01\xe5\xf5\x7f\x32\x52\x7c\xe7\xcf\xbf\x15\xbf"
      "\x9e\xd7\xdd\xfd\xfe\x87\xad\xaf\xff\x91\xcd\x3b\xda\xa3\xf7\x3f\x3c\xdd"
      "\xb7\xee\xc8\x5d\xef\x2b\xd8\x75\xd7\xc9\xd7\xff\x44\xa4\x78\xf9\xa9\x77"
      "\xe2\x37\xaa\x35\xff\xff\x73\xdf\xff\xd1\x7b\xf7\xc6\xb1\x6e\xe1\x8d\xf7"
      "\x73\xec\xd1\xf5\xff\xd5\xbe\x75\x43\xf9\xb8\xbf\xf9\xa0\x3a\x0f\x00\x00"
      "\x00\x00\x00\x00\x00\x00\xf0\x08\x1b\x48\x45\xfc\x5d\xa4\xf8\xde\x68\x2d"
      "\xbd\x98\xd7\xed\xe4\xef\xff\x4d\x6e\xde\xd1\x1e\xfd\xfd\xaf\x4f\xf4\xad"
      "\x9b\xdc\xed\x7c\x45\x3b\x5c\xd8\xf5\x49\x05\x00\x00\x00\x80\x03\x62\x20"
      "\x15\xf1\xc3\x48\x71\x63\xf1\x9d\x3b\x63\xa8\xef\x1e\xff\xdd\x37\xfe\xf3"
      "\x77\x36\xc6\x7f\x8e\xa4\x4d\x5b\xab\x3f\xe7\xfb\x95\xea\xbd\x01\x0f\xf2"
      "\xcf\xff\xfa\x0d\xe5\xe3\x4e\xec\xbe\xdb\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x70\xa0\xa4\x54\xc4\x8b\x79\x3e\xf5\x89\x6a"
      "\x3c\xff\xe4\xb6\xf3\xa9\xaf\x44\x8a\x57\xff\xfb\xf9\x5c\x2e\x1d\x2d\xcb"
      "\xf5\xe6\x81\x1f\xaa\x7e\x6f\x5c\x9a\x9d\x39\x71\x61\x7a\x7a\xb6\x11\x8b"
      "\xed\xab\xd3\x53\xcd\xb1\xb9\xf6\xb5\xa9\xb2\xee\xd3\x91\x62\xed\x6f\x3e"
      "\x9d\xeb\x16\xd5\xfc\xea\xbd\xf9\xe6\xbb\x73\xbc\x6f\xcc\xc5\x3e\x1f\x29"
      "\x46\xff\xbe\x57\xb6\x3b\x17\x7b\x6f\x6e\xf2\xa7\x37\xca\x9e\x2a\xcb\x7e"
      "\x2c\x52\xfc\xd7\x3f\xdc\x5d\x36\x4f\x4d\x9d\xe7\x8e\xae\xca\x9e\x2e\xcb"
      "\xfe\x75\xa4\xf8\xca\x3f\x6f\x5d\xf6\xe8\x46\xd9\x33\x65\xd9\x6f\x45\x8a"
      "\xef\x7f\xa5\xd9\x2b\x7b\xa4\x2c\xdb\x7b\x3f\xea\x27\x36\xca\xbe\x70\x6d"
      "\xb6\xd8\x83\xab\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\xc0\x47\xcd\x40\x2a\xe2\xcf\x22\xc5\xff\xdc\x5c\xbe\x33\x96\x3f\xcf"
      "\xff\x3f\xd0\xf7\xb1\xf2\xf6\xd7\xfa\xe6\xfb\xdf\xe4\x76\x35\xcf\xff\x50"
      "\x35\xff\xff\x76\xcb\xf7\x33\xff\x7f\xf5\x5e\x81\xa5\xed\x8e\x0a\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8f\xa7\x14"
      "\x45\xbc\x15\x29\xe6\x2e\xad\xa5\x95\x7a\xf9\xb9\xab\x71\xb1\x53\xc4\xed"
      "\xf1\x91\xd1\xad\xab\x0d\xa6\xaa\xe6\xa1\xaa\x7c\xf9\xab\x71\xea\xf4\x99"
      "\xb3\x5f\x78\x71\xf8\x5c\x2f\x2f\x76\x66\x6e\x6d\x5f\xff\x41\xfb\x64\xbc"
      "\x3e\x76\xe5\x42\xf3\x95\xd9\x9b\x73\xf3\x53\x0b\x0b\x53\x93\xcd\xf1\x99"
      "\xce\xb5\xd9\xc9\xa9\x1d\xef\x61\xb7\xf5\x37\x3b\x5e\x9d\x80\xe6\xcd\x37"
      "\x6e\x4d\x5e\xbf\xbe\xd0\x3c\xfd\xc2\x99\xbb\x36\xdf\x1e\xfa\xa0\xfe\xc4"
      "\xd1\xa1\xf3\xc3\xcf\x9d\x78\xb6\x57\x76\x7c\x64\x74\x74\xac\xaf\x4c\x6d"
      "\xe0\xbe\x8f\x7e\x8f\xb4\xcd\xfa\xc3\x51\xc4\x5f\x45\x8a\xe7\xbf\xfd\xa3"
      "\xf4\xbd\x7a\x44\x11\xbb\x3f\x17\x8d\x87\x7b\xed\x37\x1b\xac\x3a\x71\xbc"
      "\xea\xc4\xf8\xc8\x68\xd5\x91\xe9\x4e\x7b\x66\xb1\xdc\x78\xb9\x77\x22\x8a"
      "\x88\x66\x5f\xa5\x56\xef\x1c\x3d\x84\x6b\xb1\x2b\xad\x88\xa5\xb2\xf9\x65"
      "\x83\x8f\x97\xdd\x1b\x9b\x6b\xcf\xb7\xaf\x4e\x4f\x35\x2f\xb7\xe7\x17\x3b"
      "\x8b\x9d\xd9\x99\xcb\xa9\xdb\xda\xb2\x3f\xcd\x28\xe2\x5c\x8a\x58\x8e\x88"
      "\xd5\xfa\xbd\xbb\x1b\x88\x22\xde\x88\x14\xdf\x7c\x72\x2d\xfd\x4b\x3d\xe2"
      "\x50\xef\x3c\x7c\xfe\xd2\xd8\x97\x4e\x9e\xde\xbe\x1d\xc5\x1e\xf6\x71\x07"
      "\xca\x76\x36\x07\x22\x96\x8b\xed\xaf\xd9\xe1\x7d\x6c\xdf\xa3\xa2\x1e\x45"
      "\xfc\x53\xa4\xf8\xf1\xbb\xc7\xe2\x5f\xeb\x11\xb5\xe8\xfe\x8a\xcf\x45\xbc"
      "\x56\xe6\x77\x23\xde\x8e\xee\xf5\x4e\xe5\x17\xe3\x6c\xc4\xfb\x5b\x7c\x8f"
      "\x78\x34\xd5\xa2\x88\xff\x2b\xaf\xff\xf9\xb5\xf4\x6e\xbd\xbc\x1f\xf4\xee"
      "\x2b\x17\xbf\x9c\x96\x22\x66\xfb\xca\xf6\xee\x2b\x8f\xfc\xf3\xe1\x61\x3a"
      "\xe0\xcf\x93\x46\x14\xf1\xfd\xea\x8e\xbf\x96\xfe\xcd\x7f\xd7\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x48\x11\xbf\x16\x29\x5e\x7a"
      "\xef\x58\xaa\xc6\x07\xdf\x19\x53\xdc\x99\xb9\xd1\xbc\xd2\xbe\x3a\xdd\x1d"
      "\xd6\xd7\x1b\xfb\xd7\x1b\x33\xbd\xbe\xbe\xbe\xde\x4c\xdd\x6c\xe5\x9c\xc8"
      "\xb9\x94\x73\x39\xe7\x4a\xce\xd5\x9c\x51\xe4\xfa\x39\x5b\x65\x36\xd6\xd7"
      "\x27\xf2\xe7\xa5\x9c\xcb\x39\x57\x72\xae\xe6\x8c\x43\xb9\x7e\xce\x56\xce"
      "\x89\x9c\x4b\x39\x97\x73\xae\xe4\x5c\xcd\x19\xb5\x5c\x3f\x67\x2b\xe7\x44"
      "\xce\xa5\x9c\xcb\x39\x57\x72\xae\xe6\x8c\x03\x32\x76\x0f\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\xbc\x14\xd5\x3f\x29\xbe\xf1"
      "\xd5\xb5\xb4\x5e\xef\xce\x2f\x3d\x11\xdd\x5c\x31\x1f\xe8\x63\xef\x67\x01"
      "\x00\x00\xff\xff\xff\x57\xf4\x94",
      3158);
  syz_mount_image(/*fs=*/0x200019c0, /*dir=*/0x20000f40,
                  /*flags=MS_I_VERSION|MS_SYNCHRONOUS|MS_RELATIME*/ 0xa00010,
                  /*opts=*/0x20000280, /*chdir=*/1, /*size=*/0xc56,
                  /*img=*/0x20002680);
  memcpy((void*)0x20000080, "./file1\000", 8);
  syscall(
      __NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000080ul,
      /*flags=O_SYNC|O_DIRECT|O_CREAT|O_RDWR*/ 0x105042,
      /*mode=S_IXOTH|S_IWOTH|S_IXGRP|S_IWGRP|S_IXUSR|S_IWUSR|S_IRUSR*/ 0x1db);
  memcpy((void*)0x20000380, "./file1\000", 8);
  syscall(__NR_unlinkat, /*fd=*/0xffffff9c, /*path=*/0x20000380ul,
          /*flags=*/0ul);
  memcpy((void*)0x20000300,
         "./"
         "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000",
         251);
  syscall(__NR_creat, /*file=*/0x20000300ul,
          /*mode=S_IXOTH|S_IWGRP|S_IRGRP|S_IXUSR|S_IRUSR*/ 0x171ul);
  memcpy((void*)0x20000400,
         "./"
         "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
         "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000",
         251);
  memcpy((void*)0x20000080, "./file1\000", 8);
  syscall(__NR_rename, /*old=*/0x20000400ul, /*new=*/0x20000080ul);
  return 0;
}