OSDN Git Service

signal/x86/traps: Simplify trap generation
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 16 Apr 2018 19:29:39 +0000 (14:29 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 21 Sep 2018 12:47:49 +0000 (14:47 +0200)
commit164881b61429d38717408fa5d175cb55a6291969
tree7572e17895f87eba93a556b2c6088b3c3b45cd18
parentafe8448c0d9db1e1ffaa4a130a7df5f5e63b7188
signal/x86/traps: Simplify trap generation

Update the DO_ERROR macro to take si_code and si_addr values for a siginfo,
removing the need for the fill_trap_info function.

Update do_trap to also take the sicode and si_addr values for a sigininfo
and modify the code to call force_sig when a sicode is not passed in
and to call force_sig_fault when all of the information is present.

Making this a more obvious, simpler and less error prone construction.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/x86/kernel/traps.c