Skip to content

Commit

Permalink
locking/refcounts: Do not force refcount_t usage as GPL-only export
Browse files Browse the repository at this point in the history
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 <airlied@gmail.com>
Fixes: 7a46ec0 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Kees Cook authored and Linus Torvalds committed Dec 6, 2017
1 parent 13231ca commit b562c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/extable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b562c17

Please sign in to comment.