// https://syzkaller.appspot.com/bug?id=a32bd53b43c9bfc2495a6fa7ebaec3a2e7695e94
// 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_socket, 0x10, 3, 0x10);
  if (res != -1)
    r[0] = res;
  *(uint64_t*)0x20000380 = 0;
  *(uint32_t*)0x20000388 = 0xfffffd74;
  *(uint64_t*)0x20000390 = 0x20000340;
  *(uint64_t*)0x20000340 = 0x20000080;
  *(uint32_t*)0x20000080 = 0x20;
  *(uint16_t*)0x20000084 = 0x1d;
  *(uint16_t*)0x20000086 = 0xfffd;
  *(uint32_t*)0x20000088 = 0;
  *(uint32_t*)0x2000008c = 0;
  *(uint8_t*)0x20000090 = 1;
  *(uint8_t*)0x20000091 = 0;
  *(uint16_t*)0x20000092 = 0;
  *(uint16_t*)0x20000094 = 0xc;
  *(uint16_t*)0x20000096 = 0x111;
  *(uint16_t*)0x20000098 = 8;
  *(uint16_t*)0x2000009a = 6;
  *(uint32_t*)0x2000009c = 0;
  *(uint64_t*)0x20000348 = 0x20;
  *(uint64_t*)0x20000398 = 1;
  *(uint64_t*)0x200003a0 = 0;
  *(uint64_t*)0x200003a8 = 0;
  *(uint32_t*)0x200003b0 = 0;
  syscall(__NR_sendmsg, r[0], 0x20000380, 0);
  return 0;
}