]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Unbreak handling exceptions from kernel modules
authorHelge Deller <deller@gmx.de>
Fri, 8 Apr 2016 16:32:52 +0000 (18:32 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 8 Apr 2016 20:14:14 +0000 (22:14 +0200)
commit79301475fbc0b9a13c29c42501ce252142803f57
treeb2add375348d201853d93329c144159cf45b96ae
parent34b51d2829db2a9fd12aa4180c0b5d874ac2fa91
parisc: Unbreak handling exceptions from kernel modules

Handling exceptions from modules never worked on parisc.
It was just masked by the fact that exceptions from modules
don't happen during normal use.

When a module triggers an exception in get_user() we need to load the
main kernel dp value before accessing the exception_data structure, and
afterwards restore the original dp value of the module on exit.

Noticed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
arch/parisc/include/asm/uaccess.h
arch/parisc/kernel/asm-offsets.c
arch/parisc/lib/fixup.S
arch/parisc/mm/fault.c