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

#define _GNU_SOURCE

#include <pwd.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/endian.h>
#include <sys/syscall.h>
#include <unistd.h>

uint64_t r[1] = {0xffffffffffffffff};

int main(void)
{
  syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul);
  intptr_t res = 0;
  res = syscall(SYS_socket, 2ul, 1ul, 0x84ul);
  if (res != -1)
    r[0] = res;
  memcpy((void*)0x20001d40, "v", 1);
  *(uint8_t*)0x20001dc0 = 0x10;
  *(uint8_t*)0x20001dc1 = 2;
  *(uint16_t*)0x20001dc2 = htobe16(0x4e22);
  *(uint8_t*)0x20001dc4 = 0xac;
  *(uint8_t*)0x20001dc5 = 0x14;
  *(uint8_t*)0x20001dc6 = 0;
  *(uint8_t*)0x20001dc7 = 0xaa;
  *(uint8_t*)0x20001dc8 = 0;
  *(uint8_t*)0x20001dc9 = 0;
  *(uint8_t*)0x20001dca = 0;
  *(uint8_t*)0x20001dcb = 0;
  *(uint8_t*)0x20001dcc = 0;
  *(uint8_t*)0x20001dcd = 0;
  *(uint8_t*)0x20001dce = 0;
  *(uint8_t*)0x20001dcf = 0;
  syscall(SYS_sendto, r[0], 0x20001d40ul, 1ul, 0x9a6c9445aa4faddful,
          0x20001dc0ul, 0x10ul);
  return 0;
}