]> Git Repo - linux.git/commitdiff
locking/refcounts: Do not force refcount_t usage as GPL-only export
authorKees Cook <[email protected]>
Tue, 5 Dec 2017 01:24:54 +0000 (17:24 -0800)
committerLinus Torvalds <[email protected]>
Wed, 6 Dec 2017 01:14:31 +0000 (17:14 -0800)
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 <[email protected]>
Fixes: 7a46ec0e2f48 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection")
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/x86/mm/extable.c

index 3321b446b66cdb99f16fe145bf9bad50f9d1fd01..30bc4812ceb8a18796a9003f2bf8ae081c388a48 100644 (file)
@@ -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
This page took 0.057784 seconds and 4 git commands to generate.