// https://syzkaller.appspot.com/bug?id=e886f5c1f6419c3ab8d46abb6257f016982294cd
// 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[21];
void loop()
{
  memset(r, -1, sizeof(r));
  r[0] = syscall(__NR_mmap, 0x20000000ul, 0x2eb000ul, 0x3ul, 0x32ul,
                 0xfffffffffffffffful, 0x0ul);
  r[1] = syscall(__NR_socket, 0x26ul, 0x5ul, 0x0ul);
  *(uint16_t*)0x202e9000 = (uint16_t)0x26;
  memcpy((void*)0x202e9002,
         "\x73\x6b\x63\x69\x70\x68\x65\x72\x00\x00\x00\x00\x00\x00",
         14);
  *(uint32_t*)0x202e9010 = (uint32_t)0x4f;
  *(uint32_t*)0x202e9014 = (uint32_t)0x2006;
  memcpy((void*)0x202e9018,
         "\x73\x61\x6c\x73\x61\x32\x30\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
         "\x00\x00\x00\x00",
         64);
  r[7] = syscall(__NR_bind, r[1], 0x202e9000ul, 0x58ul);
  r[8] = syscall(__NR_accept, r[1], 0x0ul, 0x0ul);
  memcpy((void*)0x20052ffa, "\xa2\x33\x64\xfd\x5e\x58\x0e\xf2\x4d\x71"
                            "\xa1\x9d\xd9\x3f\xc7\x27",
         16);
  r[10] = syscall(__NR_setsockopt, r[1], 0x117ul, 0x1ul, 0x20052ffaul,
                  0x10ul);
  *(uint64_t*)0x20222fc8 = (uint64_t)0x202e9000;
  *(uint32_t*)0x20222fd0 = (uint32_t)0x10;
  *(uint64_t*)0x20222fd8 = (uint64_t)0x20284000;
  *(uint64_t*)0x20222fe0 = (uint64_t)0x1;
  *(uint64_t*)0x20222fe8 = (uint64_t)0x20205fc4;
  *(uint64_t*)0x20222ff0 = (uint64_t)0x0;
  *(uint32_t*)0x20222ff8 = (uint32_t)0xfffffffffffffffc;
  *(uint64_t*)0x20284000 = (uint64_t)0x200cc000;
  *(uint64_t*)0x20284008 = (uint64_t)0x11;
  r[20] = syscall(__NR_recvmsg, r[8], 0x20222fc8ul, 0x2000ul);
}

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