]> git.baikalelectronics.ru Git - kernel.git/commit
signal/arm64: Push siginfo generation into arm64_notify_die
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 21 Sep 2018 15:24:40 +0000 (17:24 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Sep 2018 19:52:54 +0000 (21:52 +0200)
commit3207e22299fbe6012a589e60f64959f9c2fdfda6
treeb759bb18988bbadd8dcf3802fd45d4a91e10eb0f
parent598fbc2808210488d118a506f3755c4baa928298
signal/arm64: Push siginfo generation into arm64_notify_die

Instead of generating a struct siginfo before calling arm64_notify_die
pass the signal number, tne sicode and the fault address into
arm64_notify_die and have it call force_sig_fault instead of
force_sig_info to let the generic code generate the struct siginfo.

This keeps code passing just the needed information into
siginfo generating code, making it easier to see what
is happening and harder to get wrong.  Further by letting
the generic code handle the generation of struct siginfo
it reduces the number of sites generating struct siginfo
making it possible to review them and verify that all
of the fiddly details for a structure passed to userspace
are handled properly.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/arm64/include/asm/system_misc.h
arch/arm64/kernel/sys_compat.c
arch/arm64/kernel/traps.c
arch/arm64/mm/fault.c