From: Kees Cook Date: Tue, 5 Dec 2017 01:24:54 +0000 (-0800) Subject: locking/refcounts: Do not force refcount_t usage as GPL-only export X-Git-Tag: v4.14.5~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3b0874866f2282f51295dc4cf69672b2caf6039;p=platform%2Fkernel%2Flinux-rpi.git locking/refcounts: Do not force refcount_t usage as GPL-only export commit b562c171cf011d297059bd0265742eb5fab0ad2f upstream. The refcount_t protection on x86 was not intended to use the stricter GPL export. This adjusts the linkage again to avoid a regression in the availability of the refcount API. Reported-by: Dave Airlie Fixes: 7a46ec0e2f48 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection") Signed-off-by: Kees Cook Signed-off-by: Linus Torvalds Cc: Ivan Kozik Cc: Thomas Backlund Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/mm/extable.c b/arch/x86/mm/extable.c index 3321b44..30bc481 100644 --- a/arch/x86/mm/extable.c +++ b/arch/x86/mm/extable.c @@ -82,7 +82,7 @@ bool ex_handler_refcount(const struct exception_table_entry *fixup, return true; } -EXPORT_SYMBOL_GPL(ex_handler_refcount); +EXPORT_SYMBOL(ex_handler_refcount); /* * Handler for when we fail to restore a task's FPU state. We should never get