Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kernel/extable: fix address-checks for core_kernel and init areas

The init_kernel_text() and core_kernel_text() functions should not
include the labels _einittext and _etext when checking if an address is
inside the .text or .init sections.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Helge Deller and committed by
Linus Torvalds
5ecbe3c3 e7c0d3da

+2 -2
+2 -2
kernel/extable.c
··· 61 61 static inline int init_kernel_text(unsigned long addr) 62 62 { 63 63 if (addr >= (unsigned long)_sinittext && 64 - addr <= (unsigned long)_einittext) 64 + addr < (unsigned long)_einittext) 65 65 return 1; 66 66 return 0; 67 67 } ··· 69 69 int core_kernel_text(unsigned long addr) 70 70 { 71 71 if (addr >= (unsigned long)_stext && 72 - addr <= (unsigned long)_etext) 72 + addr < (unsigned long)_etext) 73 73 return 1; 74 74 75 75 if (system_state == SYSTEM_BOOTING &&