Skip to contentSkip to conversation

locking/refcounts: Do not force refcount_t usage as GPL-only export

PATCH New Kees Cook 1 participant 1 message Dec 5, 2017

Subsystems (2)
lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 locking/refcounts: Do not force refcount_t usage as GPL-only export

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.

Fixes 7a46ec0e2f48 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection")
---
 arch/x86/mm/extable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/extable.c +1 -1
index 3321b446b66c..30bc4812ceb8 100644
@@ -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
Signature · 6 lines
2.7.4


-- 
Kees Cook
Pixel Security