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

#define _GNU_SOURCE

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

#include <stdint.h>
#include <string.h>

long r[11];
void loop()
{
  memset(r, -1, sizeof(r));
  r[0] = syscall(__NR_mmap, 0x20000000ul, 0xfff000ul, 0x3ul, 0x32ul,
                 0xfffffffffffffffful, 0x0ul);
  r[1] = syscall(__NR_socketpair, 0x8000000000001eul, 0x5ul, 0x0ul,
                 0x2000dff8ul);
  if (r[1] != -1)
    r[2] = *(uint32_t*)0x2000dff8;
  *(uint32_t*)0x2010e000 = (uint32_t)0x200000;
  *(uint32_t*)0x2010e004 = (uint32_t)0xffffffffffff01ce;
  *(uint32_t*)0x2010e008 = (uint32_t)0x4;
  *(uint32_t*)0x2010e00c = (uint32_t)0x2;
  *(uint32_t*)0x2010e010 = (uint32_t)0x9;
  *(uint32_t*)0x2010e014 = (uint32_t)0x2;
  *(uint32_t*)0x2010e018 = (uint32_t)0x6;
  r[10] = syscall(__NR_setsockopt, r[2], 0x10ful, 0x87ul, 0x2010e000ul,
                  0x1cul);
}

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