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

#define _GNU_SOURCE

#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.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;

struct fs_image_segment {
  void* data;
  uintptr_t size;
  uintptr_t offset;
};
static int setup_loop_device(long unsigned size, long unsigned nsegs,
                             struct fs_image_segment* segs,
                             const char* loopname, int* memfd_p, int* loopfd_p)
{
  int err = 0, loopfd = -1;
  int memfd = syscall(__NR_memfd_create, "syzkaller", 0);
  if (memfd == -1) {
    err = errno;
    goto error;
  }
  if (ftruncate(memfd, size)) {
    err = errno;
    goto error_close_memfd;
  }
  for (size_t i = 0; i < nsegs; i++) {
    if (pwrite(memfd, segs[i].data, segs[i].size, segs[i].offset) < 0) {
    }
  }
  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;
    }
  }
  *memfd_p = 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 unsigned long size,
                            volatile unsigned long nsegs,
                            volatile long segments, volatile long flags,
                            volatile long optsarg, volatile long change_dir)
{
  struct fs_image_segment* segs = (struct fs_image_segment*)segments;
  int res = -1, err = 0, loopfd = -1, memfd = -1, need_loop_device = !!segs;
  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(size, nsegs, segs, loopname, &memfd, &loopfd) == -1)
      return -1;
    source = loopname;
  }
  mkdir(target, 0777);
  char opts[256];
  memset(opts, 0, sizeof(opts));
  if (strlen(mount_opts) > (sizeof(opts) - 32)) {
  }
  strncpy(opts, mount_opts, sizeof(opts) - 32);
  if (strcmp(fs, "iso9660") == 0) {
    flags |= MS_RDONLY;
  } else if (strncmp(fs, "ext", 3) == 0) {
    if (strstr(opts, "errors=panic") || strstr(opts, "errors=remount-ro") == 0)
      strcat(opts, ",errors=continue");
  } else if (strcmp(fs, "xfs") == 0) {
    strcat(opts, ",nouuid");
  }
  res = mount(source, target, fs, flags, opts);
  if (res == -1) {
    err = errno;
    goto error_clear_loop;
  }
  res = open(target, O_RDONLY | O_DIRECTORY);
  if (res == -1) {
    err = errno;
    goto error_clear_loop;
  }
  if (change_dir) {
    res = chdir(target);
    if (res == -1) {
      err = errno;
    }
  }

error_clear_loop:
  if (need_loop_device) {
    ioctl(loopfd, LOOP_CLR_FD, 0);
    close(loopfd);
    close(memfd);
  }
  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*)0x20000000, "udf\000", 4);
  memcpy((void*)0x20000100, "./file0\000", 8);
  *(uint64_t*)0x20000ac0 = 0x20010dc0;
  memset((void*)0x20010dc0, 10, 1);
  *(uint64_t*)0x20000ac8 = 1;
  *(uint64_t*)0x20000ad0 = 1;
  *(uint64_t*)0x20000ad8 = 0x20001640;
  memset((void*)0x20001640, 35, 1);
  *(uint64_t*)0x20000ae0 = 1;
  *(uint64_t*)0x20000ae8 = 2;
  *(uint64_t*)0x20000af0 = 0x20000180;
  memcpy((void*)0x20000180,
         "\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00\x00\x00",
         32);
  *(uint64_t*)0x20000af8 = 0x20;
  *(uint64_t*)0x20000b00 = 7;
  *(uint64_t*)0x20000b08 = 0x20011940;
  memcpy((void*)0x20011940,
         "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00"
         "\x03\x00\xc8\x00\x01\x00\xfd\x10\xe8\x01\xc1\x07\x00\x00\x02\x00\x00"
         "\x00\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64"
         "\x20\x55\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69"
         "\x6e\x75\x78\x55\x44\x46\x00\x00\x00",
         128);
  *(uint64_t*)0x20000b10 = 0x80;
  *(uint64_t*)0x20000b18 = 0x7ff;
  *(uint64_t*)0x20000b20 = 0x200002c0;
  memcpy((void*)0x200002c0,
         "\x00\x42\x45\x41\x30\x31\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",
         32);
  *(uint64_t*)0x20000b28 = 0x20;
  *(uint64_t*)0x20000b30 = 0x8000;
  *(uint64_t*)0x20000b38 = 0x20010020;
  memcpy((void*)0x20010020,
         "\x00\x4e\x53\x52\x30\x33\x01\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         32);
  *(uint64_t*)0x20000b40 = 0x20;
  *(uint64_t*)0x20000b48 = 0x8800;
  *(uint64_t*)0x20000b50 = 0x20000280;
  memcpy((void*)0x20000280,
         "\x00\x54\x45\x41\x30\x31\x01\x00\x00\x00\x24\x90\xc3\xaf\x68\x16\x76"
         "\x79\x89\x6a\x61\x8f\x69\x05\x34\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x81",
         47);
  *(uint64_t*)0x20000b58 = 0x2f;
  *(uint64_t*)0x20000b60 = 0x9000;
  *(uint64_t*)0x20000b68 = 0x20010060;
  memcpy((void*)0x20010060,
         "\x01\x00\x03\x00\x58\x00\x01\x00\xe7\x1b\xf0\x01\x60\x00\x00\x00\x01"
         "\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69\x6e\x75\x78\x55\x44\x46\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x09\x01\x00\x01\x00\x02\x00\x03\x00\x01\x00\x00\x00"
         "\x01\x00\x00\x00\x08\x31\x32\x33\x34\x35\x36\x37\x38\x31\x32\x33\x34"
         "\x35\x36\x37\x38\x4c\x69\x6e\x75\x78\x55\x44\x46\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         128);
  *(uint64_t*)0x20000b70 = 0x80;
  *(uint64_t*)0x20000b78 = 0xc000;
  *(uint64_t*)0x20000b80 = 0x200100e0;
  memcpy(
      (void*)0x200100e0,
      "\x00\x00\x00\x00\x00\x00\x00\x19\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70"
      "\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55"
      "\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x6d\x6b"
      "\x75\x64\x66\x66\x73\x20\x32\x2e\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c\x06\x14\x00\x2a"
      "\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x04\x05\x00\x00",
      224);
  *(uint64_t*)0x20000b88 = 0xe0;
  *(uint64_t*)0x20000b90 = 0xc0c0;
  *(uint64_t*)0x20000b98 = 0x200101c0;
  memcpy((void*)0x200101c0,
         "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00"
         "\x03\x00\x61\x00\x01\x00\xfd\x10\xe8\x01\x61\x00\x00\x00\x02\x00\x00"
         "\x00\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64"
         "\x20\x55\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69"
         "\x6e\x75\x78\x55\x44\x46\x00\x00\x00",
         128);
  *(uint64_t*)0x20000ba0 = 0x80;
  *(uint64_t*)0x20000ba8 = 0xc1e0;
  *(uint64_t*)0x20000bb0 = 0x20010240;
  memcpy((void*)0x20010240,
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x09\x00\x02\x00\x00\x00\x2a\x4f\x53\x54\x41\x20\x55\x44\x46"
         "\x20\x43\x6f\x6d\x70\x6c\x69\x61\x6e\x74\x00\x00\x00\x00\x01\x02\x00"
         "\x00\x00\x00\x00\x00\x00\x02\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x40\x00\x00\x00\x01\x00\x00\x00\x00\x2a\x4c\x69\x6e"
         "\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x04\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         128);
  *(uint64_t*)0x20000bb8 = 0x80;
  *(uint64_t*)0x20000bc0 = 0xc2c0;
  *(uint64_t*)0x20000bc8 = 0x200102c0;
  memcpy(
      (void*)0x200102c0,
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40"
      "\x00\x00\x80\x00\x00\x00\x02\x40\x00\x00\x00\x2a\x55\x44\x46\x20\x53\x70"
      "\x61\x72\x61\x62\x6c\x65\x20\x50\x61\x72\x74\x69\x74\x69\x6f\x6e\x01\x02"
      "\x04\x05\x00\x00\x00\x00\x01\x00\x00\x00\x20\x00\x02\x00\x38\x01\x00\x00"
      "\xa0\x00\x00\x00\xe0\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x05\x00\x03\x00\x1e\x00\x01\x00\x92\x30\xf0\x01"
      "\x62\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x00\x2b\x4e\x53\x52\x30"
      "\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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",
      192);
  *(uint64_t*)0x20000bd0 = 0xc0;
  *(uint64_t*)0x20000bd8 = 0xc3a0;
  *(uint64_t*)0x20000be0 = 0x20010380;
  memcpy((void*)0x20010380,
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x20\x05\x00\x00\xa0\x02"
         "\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00",
         64);
  *(uint64_t*)0x20000be8 = 0x40;
  *(uint64_t*)0x20000bf0 = 0xc4a0;
  *(uint64_t*)0x20000bf8 = 0x20002840;
  memcpy((void*)0x20002840,
         "\x07\x00\x03\x00\x4e\x00\x01\x00\xf4\xc4\x28\x00\x63\x00\x00\x00\x04"
         "\x00\x00\x00\x04\x00\x00\x00\x00\x26\x00\x00\x4d\x00\x00\x00\x00\xb6"
         "\x00\x00\xa5\x00\x00\x00\x00\x3e\x00\x00\x01\x01\x00\x00\x00\x34\x00"
         "\x00\xe5\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         64);
  *(uint64_t*)0x20000c00 = 0x40;
  *(uint64_t*)0x20000c08 = 0xc600;
  *(uint64_t*)0x20000c10 = 0x20010400;
  memcpy((void*)0x20010400,
         "\x04\x00\x03\x00\xcd\x00\x01\x00\x6f\x01\xf0\x01\x64\x00\x00\x00\x05"
         "\x00\x00\x00\x00\x2a\x55\x44\x46\x20\x4c\x56\x20\x49\x6e\x66\x6f\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x02\x04\x05\x00\x00\x00"
         "\x00\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64"
         "\x20\x55\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69"
         "\x6e\x75\x78\x55\x44\x46\x00\x00\x00",
         128);
  *(uint64_t*)0x20000c18 = 0x80;
  *(uint64_t*)0x20000c20 = 0xc800;
  *(uint64_t*)0x20000c28 = 0x20010480;
  memcpy((void*)0x20010480,
         "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
         "\000\000\t\000\000\000\000\000\000\000\000\000\000\000\000",
         32);
  *(uint64_t*)0x20000c30 = 0x20;
  *(uint64_t*)0x20000c38 = 0xc8e0;
  *(uint64_t*)0x20000c40 = 0x200104c0;
  memcpy((void*)0x200104c0,
         "\x08\x00\x03\x00\x62\x00\x01\x00\x00\x00\xf0\x01\x65\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         32);
  *(uint64_t*)0x20000c48 = 0x20;
  *(uint64_t*)0x20000c50 = 0xca00;
  *(uint64_t*)0x20000c58 = 0x200104e0;
  memcpy(
      (void*)0x200104e0,
      "\x09\x00\x03\x00\x13\x00\x01\x00\x4b\xc5\x76\x00\x80\x00\x00\x00\x00\x10"
      "\xe6\x07\x09\x0c\x0c\x00\x36\x62\x54\x04\x01\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\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"
      "\x01\x00\x00\x00\x2e\x00\x00\x00\x80\x02\x00\x00\xa0\x02\x00\x00\x00\x2a"
      "\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x02\x00"
      "\x00\x00\x01\x02\x01\x02\x01\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",
      160);
  *(uint64_t*)0x20000c60 = 0xa0;
  *(uint64_t*)0x20000c68 = 0x10000;
  *(uint64_t*)0x20000c70 = 0x20002880;
  memcpy(
      (void*)0x20002880,
      "\x00\x00\x03\x00\x59\x00\x01\x00\x5f\x2d\x28\x01\xa0\x00\x00\x00\x00\x2a"
      "\x55\x44\x46\x20\x53\x70\x61\x72\x69\x6e\x67\x20\x54\x61\x62\x6c\x65\x00"
      "\x00\x00\x00\x00\x01\x02\x04\x05\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00"
      "\x00\x00\xff\xff\xff\xff\x20\x01\x00\x00\xff\xff\xff\xff\x40\x01\x00\x00"
      "\xff\xff\xff\xff\x60\x01\x00\x00\xff\xff\xff\xff\x80\x01\x00\x00\xff\xff"
      "\xff\xff\xa0\x01\x00\x00\xff\xff\xff\xff\xc0\x01\x00\x00\xff\xff\xff\xff"
      "\xe0\x01\x00\x00\xff\xff\xff\xff\x00\x02\x00\x00\xff\xff\xff\xff\x20\x02"
      "\x00\x00\xff\xff\xff\xff\x40\x02\x00\x00\xff\xff\xff\xff\x60\x02\x00\x00"
      "\xff\xff\xff\xff\x80\x02\x00\x00\xff\xff\xff\xff\xa0\x02\x00\x00\xff\xff"
      "\xff\xff\xc0\x02\x00\x00\xff\xff\xff\xff\xe0\x02\x00\x00\xff\xff\xff\xff"
      "\x00\x03\x00\x00\xff\xff\xff\xff\x20\x03\x00\x00\xff\xff\xff\xff\x40\x03"
      "\x00\x00\xff\xff\xff\xff\x60\x03\x00\x00\xff\xff\xff\xff\x80\x03\x00\x00"
      "\xff\xff\xff\xff\xa0\x03\x00\x00\xff\xff\xff\xff\xc0\x03\x00\x00\xff\xff"
      "\xff\xff\xe0\x03\x00\x00\xff\xff\xff\xff\x00\x04\x00\x00\xff\xff\xff\xff"
      "\x20\x04\x00\x00\xff\xff\xff\xff\x40\x04\x00\x00\xff\xff\xff\xff\x60\x04"
      "\x00\x00\xff\xff\xff\xff\x80\x04\x00\x00\xff\xff\xff\xff\xa0\x04\x00\x00"
      "\xff\xff\xff\xff\xc0\x04\x00\x00\xff\xff\xff\xff\xe0\x04\x00\x00\xff\xff"
      "\xff\xff\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa9\x4f\x28\x8d"
      "\x3d\x1b\x25\x43\x5e\xaa\xa3\x0d\x72\xc1\xa0\x35\xc9\xdf\x16\xe5\x69\x92"
      "\x2a\x1e\x98\xa0\x54\xf9\x05\x7f\x0a\x41\x0b\x0b\x15\x53\xc4\xe1\x93\xae"
      "\x64\xb7\x8e\xa6\xab\x03\xb6\x4c\x45\x1d\x52\x59\x1c\x30\xb3\x2e\x03\xd6"
      "\x09\x90\xf4\x76\x72\x01\x67\x18\xc8\x3b\xbe\x4b\x13\x61\x12\x5e\xe8\x89"
      "\x5b\x04\x13\xce\x18\x04\x50\xab\x20\x34",
      406);
  *(uint64_t*)0x20000c78 = 0x196;
  *(uint64_t*)0x20000c80 = 0x14001;
  *(uint64_t*)0x20000c88 = 0x200106e0;
  memcpy((void*)0x200106e0,
         "\x02\x00\x03\x00\xfe\x00\x01\x00\x8f\x77\xf0\x01\x00\x01\x00\x00\x00"
         "\x40\x00\x00\x60\x00\x00\x00\x00\x40\x00\x00\xc0\x07\x00\x00",
         32);
  *(uint64_t*)0x20000c90 = 0x20;
  *(uint64_t*)0x20000c98 = 0x20000;
  *(uint64_t*)0x20000ca0 = 0x20010780;
  memcpy((void*)0x20010780,
         "\x00\x01\x03\x00\xf3\x00\x01\x00\xf0\xed\xf0\x01\x20\x00\x00\x00\x00"
         "\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c\x06\x14\x03\x00\x03\x00\x01\x00"
         "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x4f\x53"
         "\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69"
         "\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69\x6e\x75\x78\x55"
         "\x44\x46\x00\x00\x00\x00\x00\x00\x00",
         128);
  *(uint64_t*)0x20000ca8 = 0x80;
  *(uint64_t*)0x20000cb0 = 0xa8000;
  *(uint64_t*)0x20000cb8 = 0x20010800;
  memcpy(
      (void*)0x20010800,
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x4f"
      "\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69"
      "\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69\x6e\x75\x78\x55\x44\x46\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x09\x08\x43\x6f\x70\x79\x72\x69\x67\x68\x74\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a"
      "\x08\x41\x62\x73\x74\x72\x61\x63\x74\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x02\x00\x00"
      "\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2a\x4f\x53\x54\x41"
      "\x20\x55\x44\x46\x20\x43\x6f\x6d\x70\x6c\x69\x61\x6e\x74\x00\x00\x00\x00"
      "\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00",
      256);
  *(uint64_t*)0x20000cc0 = 0x100;
  *(uint64_t*)0x20000cc8 = 0xa80e0;
  *(uint64_t*)0x20000cd0 = 0x20000640;
  memcpy(
      (void*)0x20000640,
      "\x0a\x01\x03\x00\xdb\x00\x41\x00\x0c\x4b\x34\x01\x40\x00\x00\x00\x00\x00"
      "\x00\x00\x04\x00\x00\x00\x01\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x03\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x7c\x00\x00\x01\x00\x00\x00\x00\x00"
      "\x00\x00\x6c\x00\x00\x00\xf3\xff\xff\xff\x6b\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c"
      "\x06\x14\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c\x06\x14\x00\x10\xe6\x07"
      "\x09\x0c\x0c\x00\x35\x4c\x06\x14\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c"
      "\x06\x14\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\xfa\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46"
      "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00"
      "\x25\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00"
      "\x01\x01\x03\x00\x17\x00\x01\x00\x27\x92\x18\x00\x40\x00\x00\x00\x01\x00"
      "\x0a\x00\x00\x02\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x01\x01\x03\x00\x0e\x00\x01\x00\x27\x6d\x34\x00\x40\x00"
      "\x00\x00\x01\x00\x10\x1b\x00\x02\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x08\x2a\x55\x44\x46\x20\x4e\x6f\x6e\x2d\x41\x6c"
      "\x6c\x6f\x63\x61\x74\x61\x62\x6c\x65\x20\x53\x70\x61\x6b\x65\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
      352);
  *(uint64_t*)0x20000cd8 = 0x160;
  *(uint64_t*)0x20000ce0 = 0xac004;
  *(uint64_t*)0x20000ce8 = 0x20010a60;
  memcpy(
      (void*)0x20010a60,
      "\x0a\x01\x03\x00\xc3\x00\x01\x00\x70\x13\xd0\x01\x60\x00\x00\x00\x00\x00"
      "\x00\x00\x04\x00\x00\x00\x01\x00\x00\x04\x00\x00\x00\x00\x00\x00\x03\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x3c\x00\x00\x02\x00\x00\x00\x00\x00"
      "\x00\x00\x08\x01\x00\x00\x00\x00\x00\x00\x08\x01\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c"
      "\x06\x14\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07"
      "\x09\x0c\x0c\x00\x35\x4c\x06\x14\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
      "\x5a\x45\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\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46"
      "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x01\x00\x00"
      "\x01\x01\x03\x00\x85\x00\x01\x00\x33\xd4\x18\x00\x60\x00\x00\x00\x01\x00"
      "\x0a\x00\x00\x02\x00\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x01\x01\x03\x00\x87\x00\x01\x00\xe8\x1d\x1c\x00\x60\x00"
      "\x00\x00\x01\x00\x02\x06\x00\x02\x00\x00\x61\x00\x00\x00\x00\x00\x00\x00"
      "\x10\x00\x00\x00\x00\x00\x08\x66\x69\x6c\x65\x30\x01\x01\x03\x00\x9e\x00"
      "\x01\x00\x1f\xfd\x1c\x00\x60\x00\x00\x00\x01\x00\x00\x06\x00\x02\x00\x00"
      "\x67\x00\x00\x00\x00\x00\x00\x00\x13\x00\x00\x00\x00\x00\x08\x66\x69\x6c"
      "\x65\x31\x01\x01\x03\x00\x09\x00\x01\x00\x97\xf0\x1c\x00\x60\x00\x00\x00"
      "\x01\x00\x00\x06\x00\x02\x00\x00\x68\x00\x00\x00\x00\x00\x00\x00\x14\x00"
      "\x00\x00\x00\x00\x08\x66\x69\x6c\x65\x32\x01\x01\x03\x00\x28\x00\x01\x00"
      "\xc3\xe3\x1c\x00\x60\x00\x00\x00\x01\x00\x00\x06\x00\x02\x00\x00\x68\x00"
      "\x00\x00\x00\x00\x00\x00\x15\x00\x00\x00\x00\x00\x08\x66\x69\x6c\x65\x33"
      "\x01\x01\x03\x00\xe4\x00\x01\x00\xb7\xa7\x20\x00\x60\x00\x00\x00\x01\x00"
      "\x00\x0a\x00\x02\x00\x00\x7b\x00\x00\x00\x00\x00\x00\x00\x16\x00\x00\x00"
      "\x00\x00\x08\x66\x69\x6c\x65\x2e\x63\x6f\x6c\x64\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x01\x03\x00\xae\x00\x01\x00\xc8\x2d"
      "\x48\x01\x61\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x04"
      "\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x7c"
      "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00"
      "\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10"
      "\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00"
      "\x36\x5c\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10"
      "\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\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\x2a\x4c\x69"
      "\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x04\x05\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x80\x00\x00\x00\x01\x01\x03\x00\x86\x00\x01\x00\x33\xd4"
      "\x18\x00\x61\x00\x00\x00\x01\x00\x0a\x00\x00\x02\x00\x00\x60\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x03\x00\x36\x00"
      "\x01\x00\xab\x08\x1c\x00\x61\x00\x00\x00\x01\x00\x00\x06\x00\x02\x00\x00"
      "\x62\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x08\x66\x69\x6c"
      "\x65\x30\x01\x01\x03\x00\x27\x00\x01\x00\xd9\xcb\x1c\x00\x61\x00\x00\x00"
      "\x01\x00\x00\x06\x00\x02\x00\x00\x66\x00\x00\x00\x00\x00\x00\x00\x12\x00"
      "\x00\x00\x00\x00\x08\x66\x69\x6c\x65\x31\x00\x00\x00\x00\x00\x00\x00"
      "\x00",
      864);
  *(uint64_t*)0x20000cf0 = 0x360;
  *(uint64_t*)0x20000cf8 = 0xb0000;
  *(uint64_t*)0x20000d00 = 0x20010ea0;
  memcpy(
      (void*)0x20010ea0,
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkallersyzkaller"
      "syzkallersyzkallersyzkallersyzkallersyzkal\000\000\000\000\000\000",
      1056);
  *(uint64_t*)0x20000d08 = 0x420;
  *(uint64_t*)0x20000d10 = 0xb0600;
  *(uint64_t*)0x20000d18 = 0x200112c0;
  memcpy((void*)0x200112c0,
         "\x0a\x01\x03\x00\x1a\x00\x01\x00\x47\x5a\x03\x01\x66\x00\x00\x00\x00"
         "\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x0c\x00\x00\x00\x00\x00\x00"
         "\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf7\x7e\x00\x00\x01\x00\x00"
         "\x00\x00\x00\x00\x00\x3b\x00\x00\x00\x00\x00\x00\x00\x3b\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xe6\x07\x09"
         "\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
         "\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6"
         "\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\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\x2a"
         "\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x3b\x00\x00\x00\x01\x00\x00\x00\x05"
         "\x04\x00\x00\x08\x74\x6d\x70\x05\x17\x00\x00\x08\x73\x79\x7a\x2d\x69"
         "\x6d\x61\x67\x65\x67\x65\x6e\x33\x31\x30\x37\x37\x31\x33\x39\x35\x30"
         "\x05\x06\x00\x00\x08\x66\x69\x6c\x65\x30\x05\x06\x00\x00\x08\x66\x69"
         "\x6c\x65\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         288);
  *(uint64_t*)0x20000d20 = 0x120;
  *(uint64_t*)0x20000d28 = 0xb0c00;
  *(uint64_t*)0x20000d30 = 0x200113e0;
  memcpy(
      (void*)0x200113e0,
      "\x0a\x01\x03\x00\xe6\x00\x01\x00\xd6\xc8\xd2\x00\x67\x00\x00\x00\x00\x00"
      "\x00\x00\x04\x00\x00\x00\x01\x00\x00\x05\x00\x00\x00\x00\x00\x00\x03\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x7c\x00\x00\x01\x00\x00\x00\x00\x00"
      "\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
      "\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07"
      "\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
      "\x5a\x45\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\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46"
      "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00"
      "\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a\x00\x00\x00"
      "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00",
      256);
  *(uint64_t*)0x20000d38 = 0x100;
  *(uint64_t*)0x20000d40 = 0xb0e00;
  *(uint64_t*)0x20000d48 = 0x200114e0;
  memcpy(
      (void*)0x200114e0,
      "\x0a\x01\x03\x00\xf9\x00\x01\x00\x4e\x5c\xd8\x00\x68\x00\x00\x00\x00\x00"
      "\x00\x00\x04\x00\x00\x00\x01\x00\x00\x05\x00\x00\x00\x00\x00\x00\x01\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x7c\x00\x00\x02\x00\x00\x00\x00\x00"
      "\x00\x00\x28\x23\x00\x00\x00\x00\x00\x00\x28\x23\x00\x00\x00\x00\x00\x00"
      "\x12\x00\x00\x00\x00\x00\x00\x00\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
      "\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07"
      "\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
      "\x5a\x45\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\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46"
      "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00"
      "\x00\x00\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00"
      "\x28\x23\x00\x00\x69\x00\x00\x00",
      224);
  *(uint64_t*)0x20000d50 = 0xe0;
  *(uint64_t*)0x20000d58 = 0xb1000;
  *(uint64_t*)0x20000d60 = 0x200115c0;
  memcpy(
      (void*)0x200115c0,
      "\x0a\x01\x03\x00\x61\x00\x01\x00\xab\xff\x2c\x01\x7b\x00\x00\x00\x00\x00"
      "\x00\x00\x04\x00\x00\x00\x01\x00\x00\x05\x00\x00\x00\x00\x00\x00\x03\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x7c\x00\x00\x01\x00\x00\x00\x00\x00"
      "\x00\x00\x64\x00\x00\x00\x00\x00\x00\x00\x64\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
      "\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07"
      "\x09\x0c\x0c\x00\x36\x5c\x5a\x45\x00\x10\xe6\x07\x09\x0c\x0c\x00\x36\x5c"
      "\x5a\x45\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\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46"
      "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00"
      "\x00\x00\x16\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x64\x00\x00\x00"
      "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72"
      "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72"
      "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72"
      "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72"
      "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72"
      "\x73\x79\x7a\x6b\x61\x6c\x6c\x65\x72\x73\x00\x00\x00\x00",
      320);
  *(uint64_t*)0x20000d68 = 0x140;
  *(uint64_t*)0x20000d70 = 0xb3600;
  *(uint64_t*)0x20000d78 = 0x20011700;
  memcpy(
      (void*)0x20011700,
      "\x0a\x01\x03\x00\x22\x00\x01\x00\x83\x48\xc8\x00\x80\x00\x00\x00\x00\x00"
      "\x00\x00\x04\x00\x00\x00\x01\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x24"
      "\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x7c\x00\x00\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\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c"
      "\x06\x14\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c\x06\x14\x00\x10\xe6\x07"
      "\x09\x0c\x0c\x00\x35\x4c\x06\x14\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c"
      "\x06\x14\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\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46"
      "\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00",
      224);
  *(uint64_t*)0x20000d80 = 0xe0;
  *(uint64_t*)0x20000d88 = 0xb4000;
  *(uint64_t*)0x20000d90 = 0x20000940;
  memcpy((void*)0x20000940,
         "\x02\x00\x03\x00\x03\x00\x01\x00\x8f\x77\xf0\x01\xff\x07\x00\x00\x00"
         "\x40\x00\x00\x60\x00\x00\x00\x00\x40\x00\x00\xc0\x07\x00\x00",
         32);
  *(uint64_t*)0x20000d98 = 0x20;
  *(uint64_t*)0x20000da0 = 0xdfe00;
  *(uint64_t*)0x20000da8 = 0x200117e0;
  memcpy((void*)0x200117e0,
         "\x01\x00\x03\x00\xbf\x00\x01\x00\xe7\x1b\xf0\x01\xc0\x07\x00\x00\x01"
         "\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69\x6e\x75\x78\x55\x44\x46\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x09\x01\x00\x01\x00\x02\x00\x03\x00\x01\x00\x00\x00"
         "\x01\x00\x00\x00\x08\x31\x32\x33\x34\x35\x36\x37\x38\x31\x32\x33\x34"
         "\x35\x36\x37\x38\x4c\x69\x6e\x75\x78\x55\x44\x46\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         128);
  *(uint64_t*)0x20000db0 = 0x80;
  *(uint64_t*)0x20000db8 = 0xf8000;
  *(uint64_t*)0x20000dc0 = 0x20011860;
  memcpy(
      (void*)0x20011860,
      "\x00\x00\x00\x00\x00\x00\x00\x19\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70"
      "\x72\x65\x73\x73\x65\x64\x20\x55\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64\x20\x55"
      "\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x10\x00\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x6d\x6b"
      "\x75\x64\x66\x66\x73\x20\x32\x2e\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x10\xe6\x07\x09\x0c\x0c\x00\x35\x4c\x06\x14\x00\x2a"
      "\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x04\x05\x00\x00",
      224);
  *(uint64_t*)0x20000dc8 = 0xe0;
  *(uint64_t*)0x20000dd0 = 0xf80c0;
  *(uint64_t*)0x20000dd8 = 0x20000300;
  memcpy((void*)0x20000300,
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x09\x00\x02\x00\x00\x00\x2a\x4f\x53\x54\x41\x20\x55\x44\x46"
         "\x20\x43\x6f\x6d\x70\x6c\x69\x61\x6e\x74\x00\x00\x00\x00\x01\x02\x00"
         "\x00\x00\x00\x00\x00\x00\x02\x00\x00\x36\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x40\x00\x00\x00\x01\x00\x00\x00\x00\x2a\x4c\x69\x6e"
         "\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x04\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7d\xf4\xdb\x27\xba\x79\x4c\x0d"
         "\x7e\x6e\x8a\x89\xb6\xac\x2c\xd7\x1a\x42\xf0\x69\x33\xfb\xa8\xaa\x4c"
         "\xf8\xf0\xfb\xfe\x45\x50\x05\x64\x85\x13\x12\x75\x3d\x9c\x4d\x1b\x0d"
         "\xc3\xac\xe0\x4c\x35\x93\xfe\x0e\x70\x2b\x9f\x0a\x1e\xcb\xbc\xac\x46"
         "\x24\x82\xd8\xbe\x8a\xe9\xb8\xb4\xd7\x2e\xe1\xdf\x8f\x75\xa5\x57\xf9"
         "\xc3\x2c\x16\xa2\xac\xeb\x72\x92\x77\xca\xa0\x0a\x02\xf2\x03\x22",
         220);
  *(uint64_t*)0x20000de0 = 0xdc;
  *(uint64_t*)0x20000de8 = 0xf82c0;
  *(uint64_t*)0x20000df0 = 0x20011a40;
  memcpy(
      (void*)0x20011a40,
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40"
      "\x00\x00\x80\x00\x00\x00\x02\x40\x00\x00\x00\x2a\x55\x44\x46\x20\x53\x70"
      "\x61\x72\x61\x62\x6c\x65\x20\x50\x61\x72\x74\x69\x74\x69\x6f\x6e\x01\x02"
      "\x04\x05\x00\x00\x00\x00\x01\x00\x00\x00\x20\x00\x02\x00\x38\x01\x00\x00"
      "\xa0\x00\x00\x00\xe0\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x05\x00\x03\x00\x85\x00\x01\x00\x92\x30\xf0\x01"
      "\xc2\x07\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x00\x2b\x4e\x53\x52\x30"
      "\x33\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
      192);
  *(uint64_t*)0x20000df8 = 0xc0;
  *(uint64_t*)0x20000e00 = 0xf839f;
  *(uint64_t*)0x20000e08 = 0x20011b00;
  memcpy((void*)0x20011b00,
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x20\x05\x00\x00\xa0\x02"
         "\x00\x00\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00",
         64);
  *(uint64_t*)0x20000e10 = 0x40;
  *(uint64_t*)0x20000e18 = 0xf84a0;
  *(uint64_t*)0x20000e20 = 0x20011b40;
  memcpy((void*)0x20011b40,
         "\x07\x00\x03\x00\xb5\x00\x01\x00\xf4\xc4\x28\x00\xc3\x07\x00\x00\x04"
         "\x00\x00\x00\x04\x00\x00\x00\x00\x26\x00\x00\x4d\x00\x00\x00\x00\xb6"
         "\x00\x00\xa5\x00\x00\x00\x00\x3e\x00\x00\x01\x01\x00\x00\x00\x34\x00"
         "\x00\xe5\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
         64);
  *(uint64_t*)0x20000e28 = 0x40;
  *(uint64_t*)0x20000e30 = 0xf8600;
  *(uint64_t*)0x20000e38 = 0x20011b80;
  memcpy((void*)0x20011b80,
         "\x04\x00\x03\x00\x34\x00\x01\x00\x6f\x01\xf0\x01\xc4\x07\x00\x00\x05"
         "\x00\x00\x00\x00\x2a\x55\x44\x46\x20\x4c\x56\x20\x49\x6e\x66\x6f\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x02\x04\x05\x00\x00\x00"
         "\x00\x00\x4f\x53\x54\x41\x20\x43\x6f\x6d\x70\x72\x65\x73\x73\x65\x64"
         "\x20\x55\x6e\x69\x63\x6f\x64\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x4c\x69"
         "\x6e\x75\x78\x55\x44\x46\x00\x00\x00",
         128);
  *(uint64_t*)0x20000e40 = 0x80;
  *(uint64_t*)0x20000e48 = 0xf8802;
  *(uint64_t*)0x20000e50 = 0x20011c00;
  memcpy((void*)0x20011c00,
         "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
         "\000\000\t\000\000\000\000\000\000\000\000\000\000\000\000",
         32);
  *(uint64_t*)0x20000e58 = 0x20;
  *(uint64_t*)0x20000e60 = 0xf88e0;
  *(uint64_t*)0x20000e68 = 0x20011c20;
  memcpy((void*)0x20011c20,
         "\x00\x2a\x4c\x69\x6e\x75\x78\x20\x55\x44\x46\x46\x53\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x04\x05\x00\x00\x00\x00\x00\x00",
         32);
  *(uint64_t*)0x20000e70 = 0x20;
  *(uint64_t*)0x20000e78 = 0xf8960;
  *(uint64_t*)0x20000e80 = 0x20011c40;
  memcpy((void*)0x20011c40,
         "\x27\x66\x89\x3e\x7b\x1e\xa0\xa4\xce\xfc\xc1\xe4\x08\x00\x03\x00\xc9"
         "\x00\x01\x00\x00\x00\xf0\x01\xc5\x07\x00\x00\x00\x00\x00\x00",
         32);
  *(uint64_t*)0x20000e88 = 0x20;
  *(uint64_t*)0x20000e90 = 0xf8a00;
  *(uint64_t*)0x20000e98 = 0x20011c60;
  memcpy(
      (void*)0x20011c60,
      "\x00\x00\x03\x00\xa0\x00\x01\x00\x5f\x2d\x28\x01\xe0\x07\x00\x00\x00\x2a"
      "\x55\x44\x46\x20\x53\x70\x61\x72\x69\x6e\x67\x20\x54\x61\x62\x6c\x65\x00"
      "\x00\x00\x00\x00\x01\x02\x04\x05\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00"
      "\x00\x00\xff\xff\xff\xff\x20\x01\x00\x00\xff\xff\xff\xff\x40\x01\x00\x00"
      "\xff\xff\xff\xff\x60\x01\x00\x00\xff\xff\xff\xff\x80\x01\x00\x00\xff\xff"
      "\xff\xff\xa0\x01\x00\x00\xff\xff\xff\xff\xc0\x01\x00\x00\xff\xff\xff\xff"
      "\xe0\x01\x00\x00\xff\xff\xff\xff\x00\x02\x00\x00\xff\xff\xff\xff\x20\x02"
      "\x00\x00\xff\xff\xff\xff\x40\x02\x00\x00\xff\xff\xff\xff\x60\x02\x00\x00"
      "\xff\xff\xff\xff\x80\x02\x00\x00\xff\xff\xff\xff\xa0\x02\x00\x00\xff\xff"
      "\xff\xff\xc0\x02\x00\x00\xff\xff\xff\xff\xe0\x02\x00\x00\xff\xff\xff\xff"
      "\x00\x03\x00\x00\xff\xff\xff\xff\x20\x03\x00\x00\xff\xff\xff\xff\x40\x03"
      "\x00\x00\xff\xff\xff\xff\x60\x03\x00\x00\xff\xff\xff\xff\x80\x03\x00\x00"
      "\xff\xff\xff\xff\xa0\x03\x00\x00\xff\xff\xff\xff\xc0\x03\x00\x00\xff\xff"
      "\xff\xff\xe0\x03\x00\x00\xff\xff\xff\xff\x00\x04\x00\x00\xff\xff\xff\xff"
      "\x20\x04\x00\x00\xff\xff\xff\xff\x40\x04\x00\x00\xff\xff\xff\xff\x60\x04"
      "\x00\x00\xff\xff\xff\xff\x80\x04\x00\x00\xff\xff\xff\xff\xa0\x04\x00\x00"
      "\xff\xff\xff\xff\xc0\x04\x00\x00\xff\xff\xff\xff\xe0\x04\x00\x00\xff\xff"
      "\xff\xff\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
      320);
  *(uint64_t*)0x20000ea0 = 0x140;
  *(uint64_t*)0x20000ea8 = 0xfc000;
  memcpy(
      (void*)0x200004c0,
      "\x00\xe3\xfe\x33\xdf\x6f\x02\x72\x94\xc5\x5a\x3e\xea\xf8\x31\x86\xd1\x81"
      "\x8a\x05\xce\x9e\xc0\x6c\x69\x22\x1a\xf4\xe3\x48\x02\xc0\x28\xef\xdd\xec"
      "\xe5\xa7\xa9\xb4\xc9\xf3\x33\xf0\xb8\xbf\x33\x4d\x45\x08\x3e\x1c\x9d\x10"
      "\xf5\xd9\xd0\xf1\x2c\xce\xdb\x66\xd5\xdd\x18\x8f\x54\xb5\x24\xf0\x46\x18"
      "\xe5\x2a\xf0\x92\x48\xeb\x3b\x97\x03\x7a\xe1\xe4\xf2\xd2\xa0\x41\x62\xc9"
      "\x5d\xb2\xab\x99\x68\x8d\x80\x62\x96\xdf\x42\x54\x0b\x5a\xb8\x29\x7c\x91"
      "\xb7\x86\x45\xb1\x8b\x57\xae\xc8\x25\x52\x09\x14\x04\xe1\x90\x5f\x14\x6f"
      "\xe9\xc0\x0c\x72\xaf\x70\x32\x9b\x8b\x9a\xdd\x23\xc7\xfe\x33\xab\x2c\x53"
      "\x77\x9f\xc9\xfa\xeb\x4f\x98\x72\xa9\xa6\x1a\xf1\x03\xcb\xd4\x65\x38\x3d"
      "\xcd\x45\xc9\xfa\xd6\xf6\x13\x4c\xa5\x01\x3f\x55\xdc\x75\x6a\x46\xef\x00"
      "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x68\x7c\x91\x47\x09\x79"
      "\x12\x09\x29\xf3\x07\x25\x93\xb2\x1d\xab\x06\x10\xaf\xc4\xc3\x41\x12\x35"
      "\xd0\x66\x4d\x43\x78\xb7\xc9\x34\x16\xac\xdc\x1d\x13\x8b\x28\xb5\x42\x5e"
      "\x1d\x7f\xc2\xa9\x2c\x19\xde\xaf\x36\x3c\xce\x10\xba\xfc\xd0\x96\x55\x30"
      "\x84\xac\x25\xfd\xe5\x2a\x0e\x6d\x30\x0f\x43\xae\x0a\x9e\xac\x6d\xa1\x00"
      "\xe5\xf5\xe2\x29\x8a\xfe\x2c\xad\xc9\xf9\x18\xaa\xfc\x9e\x22\xda\x10\x71"
      "\xcb\x9f\x58\x00\xf3\xf2\x7e\x6a\x4d\x81\x75\xe5\xa7\x9f\x46\xab\x8d\x91"
      "\x06\x04\x91\xc9\xa2\xd8\x6c\xfa\xfb\x1c\xe7\xed\x5b\x78\x44\x91\x3f\x49"
      "\x4e\x50\x81\x99\x81\xf8\x9a\xf0\xae\xf1\xd3\x55\x2f",
      337);
  sprintf((char*)0x20000611, "%020llu", (long long)-1);
  *(uint8_t*)0x20000625 = 0;
  *(uint16_t*)0x20000626 = -1;
  syz_mount_image(0x20000000, 0x20000100, 0x100000, 0x2a, 0x20000ac0, 0x1000000,
                  0x200004c0, 1);
  memcpy((void*)0x20002780, "./file1\000", 8);
  syscall(__NR_truncate, 0x20002780ul, 0x300ul);
  return 0;
}