kernel-ark/arch/sparc/mm
Rusty Russell ad6561dffa module: trim exception table on init free.
It's theoretically possible that there are exception table entries
which point into the (freed) init text of modules.  These could cause
future problems if other modules get loaded into that memory and cause
an exception as we'd see the wrong fixup.  The only case I know of is
kvm-intel.ko (when CONFIG_CC_OPTIMIZE_FOR_SIZE=n).

Amerigo fixed this long-standing FIXME in the x86 version, but this
patch is more general.

This implements trim_init_extable(); most archs are simple since they
use the standard lib/extable.c sort code.  Alpha and IA64 use relative
addresses in their fixups, so thier trimming is a slight variation.

Sparc32 is unique; it doesn't seem to define ARCH_HAS_SORT_EXTABLE,
yet it defines its own sort_extable() which overrides the one in lib.
It doesn't sort, so we have to mark deleted entries instead of
actually trimming them.

Inspired-by: Amerigo Wang <amwang@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-alpha@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Cc: linux-ia64@vger.kernel.org
2009-06-12 21:47:04 +09:30
..
btfixup.c sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
extable.c module: trim exception table on init free. 2009-06-12 21:47:04 +09:30
fault_32.c sparc: refactor code in fault_32.c 2009-01-06 12:52:41 -08:00
fault_64.c sparc64: Kill bogus TPC/address truncation during 32-bit faults. 2009-02-03 16:28:23 -08:00
generic_32.c sparc: move EXPORT_SYMBOL to the symbols definition 2009-01-08 16:58:05 -08:00
generic_64.c sparc64: move EXPORT_SYMBOL to the symbols definition 2009-01-08 16:58:20 -08:00
highmem.c mm: use debug_kmap_atomic 2009-04-01 08:59:14 -07:00
hugetlbpage.c sparc,sparc64: unify mm/ 2008-12-04 09:16:59 -08:00
hypersparc.S sparc: remove CVS keywords 2008-05-20 00:33:44 -07:00
init_32.c sparc: move EXPORT_SYMBOL to the symbols definition 2009-01-08 16:58:05 -08:00
init_64.c sparc64: add_node_ranges() must be __init 2009-04-08 03:37:35 -07:00
init_64.h sparc,sparc64: unify mm/ 2008-12-04 09:16:59 -08:00
io-unit.c sparc: use sparc64 version of scatterlist.h 2008-12-11 20:24:58 -08:00
iommu.c sparc: use sparc64 version of scatterlist.h 2008-12-11 20:24:58 -08:00
loadmmu.c sparc: remove CVS keywords 2008-05-20 00:33:44 -07:00
Makefile sparc,sparc64: unify mm/ 2008-12-04 09:16:59 -08:00
nosun4c.c sparc: remove CVS keywords 2008-05-20 00:33:44 -07:00
srmmu.c cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: sparc 2009-03-16 14:40:24 +10:30
sun4c.c sparc: unify sections.h 2008-12-27 00:35:12 -08:00
swift.S sparc: remove CVS keywords 2008-05-20 00:33:44 -07:00
tlb.c sparc,sparc64: unify mm/ 2008-12-04 09:16:59 -08:00
tsb.c sparc64: Add tsb-ratio sysctl. 2008-12-04 09:16:59 -08:00
tsunami.S sparc/mm/: possible cleanups 2008-07-17 21:38:01 -07:00
ultra.S sparc64: Reschedule KGDB capture to a software interrupt. 2009-03-18 23:51:57 -07:00
viking.S sparc: remove CVS keywords 2008-05-20 00:33:44 -07:00