blob: 53cd4b32e21b13e49581b5a08f75c9bf60e5d07c [file] [log] [blame]
// BUG: unable to handle kernel paging request in dummy_get_vf_config
// https://syzkaller.appspot.com/bug?id=431ae15c31aa1c27fc0ba8dd6ea04fcf03f46b91
// status:open
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff};
int main(void)
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
intptr_t res = 0;
res = syscall(__NR_socket, 0x10, 3, 0);
if (res != -1)
r[0] = res;
memcpy((void*)0x20000040, "dummy0\000\000\000\000\000\000\000\000\000\000",
16);
*(uint32_t*)0x20000050 = 0;
res = syscall(__NR_ioctl, r[0], 0x8933, 0x20000040);
if (res != -1)
r[1] = *(uint32_t*)0x20000050;
*(uint64_t*)0x2000a000 = 0;
*(uint32_t*)0x2000a008 = 0;
*(uint64_t*)0x2000a010 = 0x20000080;
*(uint64_t*)0x20000080 = 0x20000180;
memcpy((void*)0x20000180, "\x38\x00\x00\x00\x13\x00\x01\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00",
20);
*(uint32_t*)0x20000194 = r[1];
memcpy((void*)0x20000198, "\xff\xff\xff\xfa\x00\x00\x00\x00\x18\x00\x16\x00"
"\x14\x00\x01\x00\x10\x00\x03\x00\x00\x00\x00\xae"
"\xfd\xa5\x20\x1b\x5b\x12\x53\xcc\x98\xac\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00",
43);
*(uint64_t*)0x20000088 = 0x38;
*(uint64_t*)0x2000a018 = 1;
*(uint64_t*)0x2000a020 = 0;
*(uint64_t*)0x2000a028 = 0;
*(uint32_t*)0x2000a030 = 0;
syscall(__NR_sendmsg, r[0], 0x2000a000, 0);
return 0;
}