// https://syzkaller.appspot.com/bug?id=7cbaf7edf18db091ab5a36de44e9a10c90c97ea4
// 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>

#ifndef __NR_request_key
#define __NR_request_key 287
#endif
#ifndef __NR_mmap
#define __NR_mmap 192
#endif
#undef __NR_mmap
#define __NR_mmap __NR_mmap2

void loop()
{
  syscall(__NR_mmap, 0x20000000, 0x6000, 3, 0x32, -1, 0);
  memcpy((void*)0x20005ff6, "id_legacy", 10);
  *(uint8_t*)0x20000000 = 0x73;
  *(uint8_t*)0x20000001 = 0x79;
  *(uint8_t*)0x20000002 = 0x7a;
  *(uint8_t*)0x20000003 = 0;
  *(uint8_t*)0x20000004 = 0;
  memcpy((void*)0x20000000, "user:-self", 11);
  syscall(__NR_request_key, 0x20005ff6, 0x20000000, 0x20000000, 0xfffffffe);
}

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