]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabf2f5a05cac3219c8eaa81f2a3243e8dfac931a
tree7572e17895f87eba93a556b2c6088b3c3b45cd18
parent88b09f6835f82c204f7032d3ac2d5c8e152cc870
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