// https://syzkaller.appspot.com/bug?id=6ab0ca35ca218415f8c179f5d6ffab0fbc613390
// 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);
  intptr_t res = 0;
  res = syscall(__NR_socket, 0x10, 3, 0);
  if (res != -1)
    r[0] = res;
  *(uint64_t*)0x20000400 = 0;
  *(uint32_t*)0x20000408 = 0;
  *(uint64_t*)0x20000410 = 0x200003c0;
  *(uint64_t*)0x200003c0 = 0x20000440;
  *(uint32_t*)0x20000440 = 0x14;
  *(uint16_t*)0x20000444 = 0x68;
  *(uint16_t*)0x20000446 = 0xf19;
  *(uint32_t*)0x20000448 = 0;
  *(uint32_t*)0x2000044c = 0;
  *(uint8_t*)0x20000450 = 2;
  *(uint8_t*)0x20000451 = 0;
  *(uint16_t*)0x20000452 = 0;
  *(uint64_t*)0x200003c8 = 0x14;
  *(uint64_t*)0x20000418 = 1;
  *(uint64_t*)0x20000420 = 0;
  *(uint64_t*)0x20000428 = 0;
  *(uint32_t*)0x20000430 = 0;
  syscall(__NR_sendmsg, r[0], 0x20000400, 0);
  return 0;
}