]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Dec 2017 11:36:09 +0000 (12:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Dec 2017 11:36:09 +0000 (12:36 +0100)
added patches:
locking-refcounts-do-not-force-refcount_t-usage-as-gpl-only-export.patch

queue-4.14/locking-refcounts-do-not-force-refcount_t-usage-as-gpl-only-export.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/locking-refcounts-do-not-force-refcount_t-usage-as-gpl-only-export.patch b/queue-4.14/locking-refcounts-do-not-force-refcount_t-usage-as-gpl-only-export.patch
new file mode 100644 (file)
index 0000000..9fd2ced
--- /dev/null
@@ -0,0 +1,36 @@
+From b562c171cf011d297059bd0265742eb5fab0ad2f Mon Sep 17 00:00:00 2001
+From: Kees Cook <keescook@chromium.org>
+Date: Mon, 4 Dec 2017 17:24:54 -0800
+Subject: locking/refcounts: Do not force refcount_t usage as GPL-only export
+
+From: Kees Cook <keescook@chromium.org>
+
+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 <airlied@gmail.com>
+Fixes: 7a46ec0e2f48 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection")
+Signed-off-by: Kees Cook <keescook@chromium.org>
+Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+Cc: Ivan Kozik <ivan@ludios.org>
+Cc: Thomas Backlund <tmb@mageia.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/x86/mm/extable.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/x86/mm/extable.c
++++ b/arch/x86/mm/extable.c
+@@ -82,7 +82,7 @@ bool ex_handler_refcount(const struct ex
+       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
index 8afb76117364e88729bf267517ac08579e9e48a3..614dffd92dc83cf6c2141e82ca8aefc2386123b1 100644 (file)
@@ -71,3 +71,4 @@ usb-xhci-fix-panic-in-xhci_free_virt_devices_depth_first.patch
 usb-core-add-type-specific-length-check-of-bos-descriptors.patch
 usb-usbfs-filter-flags-passed-in-from-user-space.patch
 usb-host-fix-incorrect-updating-of-offset.patch
+locking-refcounts-do-not-force-refcount_t-usage-as-gpl-only-export.patch