// https://syzkaller.appspot.com/bug?id=7bd6fc42489ba2eb2a9e44977633abd1c2fe0624
// autogenerated by syzkaller (http://github.com/google/syzkaller)

#define _GNU_SOURCE

#include <stdint.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>

#ifndef __NR_mmap
#define __NR_mmap 90
#endif
#ifndef __NR_socket
#define __NR_socket 359
#endif
#ifndef __NR_setsockopt
#define __NR_setsockopt 366
#endif
#ifndef __NR_sendto
#define __NR_sendto 369
#endif
#undef __NR_mmap
#define __NR_mmap __NR_mmap2

long r[62];
void loop()
{
  memset(r, -1, sizeof(r));
  r[0] = syscall(__NR_mmap, 0x20000000ul, 0xfff000ul, 0x3ul, 0x32ul,
                 0xfffffffffffffffful, 0x0ul);
  r[1] = syscall(__NR_socket, 0x2ul, 0x3ul, 0x6ul);
  *(uint32_t*)0x20614f18 = (uint32_t)0x0;
  *(uint8_t*)0x20614f28 = (uint8_t)0xac;
  *(uint8_t*)0x20614f29 = (uint8_t)0x14;
  *(uint8_t*)0x20614f2a = (uint8_t)0x0;
  *(uint8_t*)0x20614f2b = (uint8_t)0xbb;
  *(uint16_t*)0x20614f38 = (uint16_t)0x204e;
  *(uint16_t*)0x20614f3a = (uint16_t)0x0;
  *(uint16_t*)0x20614f3c = (uint16_t)0x204e;
  *(uint16_t*)0x20614f3e = (uint16_t)0x0;
  *(uint16_t*)0x20614f40 = (uint16_t)0xa;
  *(uint8_t*)0x20614f42 = (uint8_t)0x0;
  *(uint8_t*)0x20614f43 = (uint8_t)0x0;
  *(uint8_t*)0x20614f44 = (uint8_t)0x0;
  *(uint32_t*)0x20614f48 = (uint32_t)0x0;
  *(uint32_t*)0x20614f4c = (uint32_t)0x0;
  *(uint64_t*)0x20614f50 = (uint64_t)0x0;
  *(uint64_t*)0x20614f58 = (uint64_t)0x800000000000000;
  *(uint64_t*)0x20614f60 = (uint64_t)0x0;
  *(uint64_t*)0x20614f68 = (uint64_t)0x0;
  *(uint64_t*)0x20614f70 = (uint64_t)0x0;
  *(uint64_t*)0x20614f78 = (uint64_t)0x0;
  *(uint64_t*)0x20614f80 = (uint64_t)0x0;
  *(uint64_t*)0x20614f88 = (uint64_t)0x0;
  *(uint64_t*)0x20614f90 = (uint64_t)0x0;
  *(uint64_t*)0x20614f98 = (uint64_t)0x0;
  *(uint64_t*)0x20614fa0 = (uint64_t)0x0;
  *(uint64_t*)0x20614fa8 = (uint64_t)0x0;
  *(uint32_t*)0x20614fb0 = (uint32_t)0x0;
  *(uint32_t*)0x20614fb4 = (uint32_t)0x0;
  *(uint8_t*)0x20614fb8 = (uint8_t)0x1;
  *(uint8_t*)0x20614fb9 = (uint8_t)0x0;
  *(uint8_t*)0x20614fba = (uint8_t)0x0;
  *(uint8_t*)0x20614fbb = (uint8_t)0x0;
  *(uint64_t*)0x20614fc0 = (uint64_t)0x0;
  *(uint64_t*)0x20614fc8 = (uint64_t)0x100000000000000;
  *(uint32_t*)0x20614fd0 = (uint32_t)0x0;
  *(uint8_t*)0x20614fd4 = (uint8_t)0x0;
  *(uint16_t*)0x20614fd8 = (uint16_t)0x0;
  *(uint64_t*)0x20614fdc = (uint64_t)0x0;
  *(uint64_t*)0x20614fe4 = (uint64_t)0x100000000000000;
  *(uint32_t*)0x20614fec = (uint32_t)0x2;
  *(uint8_t*)0x20614ff0 = (uint8_t)0x0;
  *(uint8_t*)0x20614ff1 = (uint8_t)0x0;
  *(uint8_t*)0x20614ff2 = (uint8_t)0x0;
  *(uint32_t*)0x20614ff4 = (uint32_t)0x0;
  *(uint32_t*)0x20614ff8 = (uint32_t)0x0;
  *(uint32_t*)0x20614ffc = (uint32_t)0xfffffffffffffffe;
  r[49] = syscall(__NR_setsockopt, r[1], 0x0ul, 0x11ul, 0x20614f18ul,
                  0xe8ul);
  *(uint16_t*)0x20fdbff0 = (uint16_t)0x2;
  *(uint16_t*)0x20fdbff2 = (uint16_t)0x204e;
  *(uint32_t*)0x20fdbff4 = (uint32_t)0x0;
  *(uint8_t*)0x20fdbff8 = (uint8_t)0x0;
  *(uint8_t*)0x20fdbff9 = (uint8_t)0x0;
  *(uint8_t*)0x20fdbffa = (uint8_t)0x0;
  *(uint8_t*)0x20fdbffb = (uint8_t)0x0;
  *(uint8_t*)0x20fdbffc = (uint8_t)0x0;
  *(uint8_t*)0x20fdbffd = (uint8_t)0x0;
  *(uint8_t*)0x20fdbffe = (uint8_t)0x0;
  *(uint8_t*)0x20fdbfff = (uint8_t)0x0;
  r[61] = syscall(__NR_sendto, r[1], 0x20fdbfc0ul, 0x0ul, 0x0ul,
                  0x20fdbff0ul, 0x10ul);
}

int main()
{
  loop();
  return 0;
}