Module Name: src Committed By: kamil Date: Tue Jan 21 16:46:07 UTC 2020
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add new ATF tests in t_ptrace_wait* New tests: - access_regs_set_unaligned_pc_0x1 - access_regs_set_unaligned_pc_0x3 - access_regs_set_unaligned_pc_0x7 The purpose of these tests is check whether unaligned PC can panic the kernel. If there is a panic it is fine to return EINVAL on PT_SETREGS. New tests check respectively pc |= 0x1, pc |= 0x3 and pc |= 0x7. Inspired by https://marc.info/?l=openbsd-bugs&m=107558043319084&w=2 While there fix access_regs6 to really test PT_SETREGS. To generate a diff of this commit: cvs rdiff -u -r1.146 -r1.147 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.