text: // KMSAN: uninit-value in synaptics_detect
  // https://syzkaller.appspot.com/bug?id=fa8c06813bd781e6b73f4533322ac088a904a93c
  // 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);
    long res = 0;
    memcpy((void*)0x20000a00, "/dev/userio", 12);
    res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000a00, 0x22001, 0);
    if (res != -1)
      r[0] = res;
    *(uint8_t*)0x20000000 = 1;
    *(uint8_t*)0x20000001 = 1;
    syscall(__NR_write, r[0], 0x20000000, 2);
    *(uint32_t*)0x20000140 = 0xfffff000;
    *(uint16_t*)0x20000144 = 0x10;
    *(uint16_t*)0x20000146 = 0xfa00;
    *(uint64_t*)0x20000148 = 0x200000c0;
    *(uint32_t*)0x20000150 = -1;
    *(uint32_t*)0x20000154 = 0;
    syscall(__NR_write, r[0], 0x20000140, 2);
    *(uint8_t*)0x20000080 = 2;
    *(uint8_t*)0x20000081 = 0;
    syscall(__NR_write, r[0], 0x20000080, 2);
    *(uint8_t*)0x20000040 = 2;
    *(uint8_t*)0x20000041 = 0;
    syscall(__NR_write, r[0], 0x20000040, 2);
    return 0;
  }
  