aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test/syz_kvm_setup_cpu_arm64-msr
Commit message (Collapse)AuthorAgeFilesLines
* sys/linux: refactor syzos_api_callAlexander Potapenko2024-08-071-1/+1
| | | | | As suggested by Dmitry, use a template to avoid duplication in various syzos types. Also adjust the existing tests.
* executor: arm64: add SYZOS_API_MSRAlexander Potapenko2024-08-051-0/+12
MSR is an ARM64 instruction that writes a value from a GP register to one of the system CPU registers. Exposing those registers to a fuzzer will let us trigger unexpected behavior in handling them on the kernel side. The SYZOS_API_MSR call has two int64 arguments, register ID and value. Register IDs are 64-bit values obtained from ARM64_SYS_REG() in the Linux asm/kvm.h UAPI header. Same register IDs are used by ioctl$KVM_GET_ONE_REG and ioctl$KVM_SET_ONE_REG. Also add sys/linux/test/syz_kvm_setup_cpu_arm64-msr