aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/arm64/signal/signals.S (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-11-08kselftest: arm64: fake_sigreturn_bad_magicCristian Marussi1-0/+64
Add a simple fake_sigreturn testcase which builds a ucontext_t with a bad magic header and place it onto the stack. Expects a SIGSEGV on test PASS. Introduce a common utility assembly trampoline function to invoke a sigreturn while placing the provided sigframe at wanted alignment and also an helper to make space when needed inside the sigframe reserved area. Reviewed-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>