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

#define _GNU_SOURCE

#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
  syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
  long res = 0;
  res = syscall(__NR_socketpair, 0x1e, 2, 0, 0x20000000);
  if (res != -1)
    r[0] = *(uint32_t*)0x20000004;
  *(uint64_t*)0x20001900 = 0x20000440;
  *(uint16_t*)0x20000440 = 0x1e;
  *(uint8_t*)0x20000442 = 1;
  *(uint8_t*)0x20000443 = 0;
  *(uint32_t*)0x20000444 = 1;
  *(uint32_t*)0x20000448 = 0;
  *(uint32_t*)0x2000044c = 1;
  *(uint32_t*)0x20001908 = 0x10;
  *(uint64_t*)0x20001910 = 0;
  *(uint64_t*)0x20001918 = 0;
  *(uint64_t*)0x20001920 = 0;
  *(uint64_t*)0x20001928 = 0;
  *(uint32_t*)0x20001930 = 0;
  syscall(__NR_sendmsg, r[0], 0x20001900, 0);
  return 0;
}