Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3b08748 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman
Browse files

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: default avatarDave Airlie <airlied@gmail.com>
Fixes: 7a46ec0e ("locking/refcounts, x86/asm: Implement fast refcount overflow protection")
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Cc: Ivan Kozik <ivan@ludios.org>
Cc: Thomas Backlund <tmb@mageia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent de667b08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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