blob: 9f7f991cd47eec037e0b97c3672f1579827146a5 [file] [log] [blame]
// KMSAN: uninit-value in strlcpy (2)
// https://syzkaller.appspot.com/bug?id=ab0817a1599dd2fbbda6af5d5645ef92596fcb8e
// status:open
// 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, 0xa, 1, 0);
if (res != -1)
r[0] = res;
*(uint32_t*)0x200001c0 = 0;
memcpy((void*)0x200001c4,
"\x76\x65\x74\x68\x31\x5f\x74\x6f\x95\x61\x89\xf0\x93\xff\xa1\x75",
16);
*(uint32_t*)0x200001d4 = 0xfffffffc;
syscall(__NR_setsockopt, r[0], 0, 0x48b, 0x200001c0, 0x18);
}
int main()
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
loop();
return 0;
}