blob: f78b21ad1fb2b7ad7fb74dab9a6ea123af439fa1 [file] [log] [blame]
// general protection fault in call_fib6_multipath_entry_notifiers
// https://syzkaller.appspot.com/bug?id=26e9e75096d00905999687d5b797d0b8f32cc318
// status:fixed
// 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[1] = {0xffffffffffffffff};
int main(void)
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
intptr_t res = 0;
res = syscall(__NR_socket, 0x10, 2, 0);
if (res != -1)
r[0] = res;
*(uint64_t*)0x20000080 = 0;
*(uint32_t*)0x20000088 = 0;
*(uint64_t*)0x20000090 = 0x200000c0;
*(uint64_t*)0x200000c0 = 0x20000000;
memcpy((void*)0x20000000, "\x2e\x00\x00\x00\x18\x00\x81\x0d\xe0\x0f\x80\xec"
"\xdb\x4c\xb9\x25\x0a\x60\x02\x2c\x00\x0c\xd3\x00"
"\xe8\xbd\x6e\xfb\x12\x00\x09\x00\x07\x00\x14\xa0"
"\x02\x00\x00\x00\x06\x00\x16\x00\xfe\xc0",
46);
*(uint64_t*)0x200000c8 = 0x2e;
*(uint64_t*)0x20000098 = 1;
*(uint64_t*)0x200000a0 = 0;
*(uint64_t*)0x200000a8 = 0;
*(uint32_t*)0x200000b0 = 0xa00;
syscall(__NR_sendmsg, r[0], 0x20000080, 0);
return 0;
}