blob: 5a4bf63bd205fbd0a10d88fa5e43a0358e7c9be0 [file] [log] [blame]
// BUG: unable to handle kernel paging request in dummy_set_vf_spoofchk
// https://syzkaller.appspot.com/bug?id=11d10f8beb23b9d5d1c418f68f31f15df9b1d93c
// 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*)0x20000000, "dummy0\000\000\000\000\000\000\000\000\000\000",
16);
*(uint32_t*)0x20000010 = 0;
res = syscall(__NR_ioctl, r[0], 0x8933, 0x20000000);
if (res != -1)
r[1] = *(uint32_t*)0x20000010;
*(uint64_t*)0x20000240 = 0;
*(uint32_t*)0x20000248 = 0;
*(uint64_t*)0x20000250 = 0x200000c0;
*(uint64_t*)0x200000c0 = 0x20000280;
memcpy((void*)0x20000280, "\x34\x00\x00\x00\x13\x00\x01\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00",
20);
*(uint32_t*)0x20000294 = r[1];
memcpy((void*)0x20000298, "\x00\x00\x00\x00\x00\x00\x00\xfe\x14\x00\x16\x00"
"\x10\x00\x01\x00\x0c\x00\x04\x00\x00\x01\x00\xd8"
"\x00\x00\x00\x00",
28);
*(uint64_t*)0x200000c8 = 0x34;
*(uint64_t*)0x20000258 = 1;
*(uint64_t*)0x20000260 = 0;
*(uint64_t*)0x20000268 = 0;
*(uint32_t*)0x20000270 = 0;
syscall(__NR_sendmsg, r[0], 0x20000240, 0);
return 0;
}