linux/arch/parisc/lib
Helge Deller 9bd5af8457 parisc: Unbreak handling exceptions from kernel modules
[ Upstream commit 2ef4dfd9d9 ]

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
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-04-20 09:40:59 -04:00
..
bitops.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
checksum.c parisc: remove CVS keywords 2009-07-03 03:34:06 +00:00
delay.c parisc: make udelay() SMP-safe 2013-11-07 22:28:26 +01:00
fixup.S parisc: Unbreak handling exceptions from kernel modules 2016-04-20 09:40:59 -04:00
io.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iomap.c parisc: switch to GENERIC_PCI_IOMAP 2011-11-28 21:13:15 +02:00
lusercopy.S parisc: provide macro to create exception table entries 2013-11-07 22:25:33 +01:00
Makefile parisc: make udelay() SMP-safe 2013-11-07 22:28:26 +01:00
memcpy.c parisc: Replace __get_cpu_var uses for address calculation 2014-04-03 20:50:33 +02:00
memset.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ucmpdi2.c parisc: Provide __ucmpdi2 to resolve undefined references in 32 bit builds. 2013-04-25 22:36:15 +02:00