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

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

long r[1];
void loop()
{
  memset(r, -1, sizeof(r));
  syscall(__NR_mmap, 0x20000000, 0x9000, 3, 0x32, -1, 0);
  memcpy((void*)0x20000000, "/dev/vhost-net", 15);
  r[0] = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000000, 2, 0);
  *(uint32_t*)0x20004f98 = 1;
  *(uint64_t*)0x20004fa0 = 0x20005000;
  *(uint64_t*)0x20004fa8 = 0x91;
  *(uint64_t*)0x20004fb0 = 0x20007000;
  *(uint8_t*)0x20004fb8 = 3;
  *(uint8_t*)0x20004fb9 = 3;
  *(uint64_t*)0x20004fc0 = 0;
  *(uint64_t*)0x20004fc8 = 0;
  *(uint64_t*)0x20004fd0 = 0;
  *(uint64_t*)0x20004fd8 = 0;
  *(uint64_t*)0x20004fe0 = 0;
  *(uint64_t*)0x20004fe8 = 0;
  *(uint64_t*)0x20004ff0 = 0;
  *(uint64_t*)0x20004ff8 = 0;
  syscall(__NR_write, r[0], 0x20004f98, 0x68);
}

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