blob: 953b86c3833101c22caed331501c5108d8cbdd76 [file] [log] [blame]
// KMSAN: uninit-value in inet6_rtm_delroute
// https://syzkaller.appspot.com/bug?id=43e90badede82fa1cc56eb760357eb3ef5c58c8e
// status:fixed
// 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>
uint64_t r[1] = {0xffffffffffffffff};
void loop()
{
long res = 0;
res = syscall(__NR_socket, 0x10, 3, 0);
if (res != -1)
r[0] = res;
*(uint64_t*)0x20000000 = 0x20010ff4;
*(uint16_t*)0x20010ff4 = 0x10;
*(uint16_t*)0x20010ff6 = 0;
*(uint32_t*)0x20010ff8 = 0;
*(uint32_t*)0x20010ffc = 0;
*(uint32_t*)0x20000008 = 0x80;
*(uint64_t*)0x20000010 = 0x20002000;
*(uint64_t*)0x20002000 = 0x200001c0;
memcpy((void*)0x200001c0,
"\x55\x00\x00\x00\x19\x00\x7f\xaf\xb7\x2d\x1c\xb2\xa4\xa2\x80\x93\x0a"
"\x06\x00\x00\x00\xa8\x43\xdc\x91\x05\x23\x69\x39\x00\x09\x00\x35\x00"
"\x00\x00\x00\x00\x00\x00\x19\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00"
"\x08\x13\x38\xd5\x44\x00\x00\x9b\x84\x13\x6e\xf7\x5a\xfb\x83\xde\x44"
"\x8d\xaa\x72\x27\xc4\x3a\xb8\x22\x00\x00\x06\x0c\xec\x4f\xab\x91\xd4",
85);
*(uint64_t*)0x20002008 = 0x55;
*(uint64_t*)0x20000018 = 1;
*(uint64_t*)0x20000020 = 0x20002000;
*(uint64_t*)0x20000028 = 0;
*(uint32_t*)0x20000030 = 0;
syscall(__NR_sendmsg, r[0], 0x20000000, 0);
}
int main()
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
loop();
return 0;
}