extable: Add function to search only kernel exception table
authorSantosh Sivaraj <santosh@fossix.org>
Tue, 20 Aug 2019 08:13:49 +0000 (13:43 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Aug 2019 12:23:48 +0000 (22:23 +1000)
commit49ec9177b8ec9c081850744468811e708a7c9841
tree767d77f89b9faff60a9e8c965a3ec8d95061a86c
parent1a1715f516fd7fcfedffee5978ec4c07c5164470
extable: Add function to search only kernel exception table

Certain architecture specific operating modes (e.g., in powerpc machine
check handler that is unable to access vmalloc memory), the
search_exception_tables cannot be called because it also searches the
module exception tables if entry is not found in the kernel exception
table.

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190820081352.8641-5-santosh@fossix.org
include/linux/extable.h
kernel/extable.c