diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-07-06 00:34:04 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-07-07 10:53:38 +0200 |
commit | 88af23381ac3a04e35974d9ece422c2b6ebe7775 (patch) | |
tree | 225ab4d10f6b2addd0d950212cb635ce01477887 /arch/um/kernel/trap.c | |
parent | 171fa6928bcdf72372f98884b0abb93ad9b2e673 (diff) | |
download | linux-88af23381ac3a04e35974d9ece422c2b6ebe7775.tar.gz linux-88af23381ac3a04e35974d9ece422c2b6ebe7775.tar.bz2 linux-88af23381ac3a04e35974d9ece422c2b6ebe7775.zip |
um: Add kerneldoc for segv_handler
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/trap.c')
-rw-r--r-- | arch/um/kernel/trap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c index 59158871b9fc..4e6fcb32620f 100644 --- a/arch/um/kernel/trap.c +++ b/arch/um/kernel/trap.c @@ -183,6 +183,16 @@ void fatal_sigsegv(void) os_dump_core(); } +/** + * segv_handler() - the SIGSEGV handler + * @sig: the signal number + * @unused_si: the signal info struct; unused in this handler + * @regs: the ptrace register information + * + * The handler first extracts the faultinfo from the UML ptrace regs struct. + * If the userfault did not happen in an UML userspace process, bad_segv is called. + * Otherwise the signal did happen in a cloned userspace process, handle it. + */ void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs) { struct faultinfo * fi = UPT_FAULTINFO(regs); |