]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Nov 2014 22:11:26 +0000 (07:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Nov 2014 22:11:26 +0000 (07:11 +0900)
added patches:
crypto-algif-avoid-excessive-use-of-socket-buffer-in-skcipher.patch

queue-3.14/crypto-algif-avoid-excessive-use-of-socket-buffer-in-skcipher.patch [new file with mode: 0644]
queue-3.14/series
queue-3.14/usb-remove-references-to-non-existent-plat_s5p-symbol.patch [deleted file]

diff --git a/queue-3.14/crypto-algif-avoid-excessive-use-of-socket-buffer-in-skcipher.patch b/queue-3.14/crypto-algif-avoid-excessive-use-of-socket-buffer-in-skcipher.patch
new file mode 100644 (file)
index 0000000..c412c7a
--- /dev/null
@@ -0,0 +1,34 @@
+From e2cffb5f493a8b431dc87124388ea59b79f0bccb Mon Sep 17 00:00:00 2001
+From: Ondrej Kozina <okozina@redhat.com>
+Date: Mon, 25 Aug 2014 11:49:54 +0200
+Subject: crypto: algif - avoid excessive use of socket buffer in skcipher
+
+From: Ondrej Kozina <okozina@redhat.com>
+
+commit e2cffb5f493a8b431dc87124388ea59b79f0bccb upstream.
+
+On archs with PAGE_SIZE >= 64 KiB the function skcipher_alloc_sgl()
+fails with -ENOMEM no matter what user space actually requested.
+This is caused by the fact sock_kmalloc call inside the function tried
+to allocate more memory than allowed by the default kernel socket buffer
+size (kernel param net.core.optmem_max).
+
+Signed-off-by: Ondrej Kozina <okozina@redhat.com>
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ crypto/algif_skcipher.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/crypto/algif_skcipher.c
++++ b/crypto/algif_skcipher.c
+@@ -49,7 +49,7 @@ struct skcipher_ctx {
+       struct ablkcipher_request req;
+ };
+-#define MAX_SGL_ENTS ((PAGE_SIZE - sizeof(struct skcipher_sg_list)) / \
++#define MAX_SGL_ENTS ((4096 - sizeof(struct skcipher_sg_list)) / \
+                     sizeof(struct scatterlist) - 1)
+ static inline int skcipher_sndbuf(struct sock *sk)
index 7b38a2c15612345570060616341cb8dfaa21aa22..96bb83d4bea16339e206b2b30f4dfd35a666d56f 100644 (file)
@@ -160,7 +160,6 @@ usb-storage-handle-a-skipped-data-phase.patch
 usb-opticon-fix-non-atomic-allocation-in-write-path.patch
 usb-do-not-allow-usb_alloc_streams-on-unconfigured-devices.patch
 usb-kobil_sct-fix-non-atomic-allocation-in-write-path.patch
-usb-remove-references-to-non-existent-plat_s5p-symbol.patch
 sh-fix-sh770x-scif-memory-regions.patch
 mm-free-compound-page-with-correct-order.patch
 cgroup-kmemleak-add-kmemleak_free-for-cgroup-deallocations.patch
@@ -183,3 +182,4 @@ mac80211-fix-typo-in-starting-baserate-for-rts_cts_rate_idx.patch
 posix-timers-fix-stack-info-leak-in-timer_create.patch
 x86-apic-handle-a-bad-tsc-more-gracefully.patch
 mm-remove-false-warn_on-from-pagecache_isize_extended.patch
+crypto-algif-avoid-excessive-use-of-socket-buffer-in-skcipher.patch
diff --git a/queue-3.14/usb-remove-references-to-non-existent-plat_s5p-symbol.patch b/queue-3.14/usb-remove-references-to-non-existent-plat_s5p-symbol.patch
deleted file mode 100644 (file)
index fbfccf5..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-From cd6e245a2d061a8367e37aaece32cf3fc922de80 Mon Sep 17 00:00:00 2001
-From: Sylwester Nawrocki <s.nawrocki@samsung.com>
-Date: Tue, 7 Oct 2014 11:12:07 +0200
-Subject: usb: Remove references to non-existent PLAT_S5P symbol
-
-From: Sylwester Nawrocki <s.nawrocki@samsung.com>
-
-commit cd6e245a2d061a8367e37aaece32cf3fc922de80 upstream.
-
-The PLAT_S5P Kconfig symbol was removed in commit d78c16ccde96
-("ARM: SAMSUNG: Remove remaining legacy code"). There are still
-some references left, fix that by replacing them with ARCH_S5PV210.
-
-Fixes: d78c16ccde96 ("ARM: SAMSUNG: Remove remaining legacy code")
-Reported-by: Paul Bolle <pebolle@tiscali.nl>
-Acked-by: Jingoo Han <jg1.han@samsung.com>
-Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/usb/host/Kconfig |    4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/drivers/usb/host/Kconfig
-+++ b/drivers/usb/host/Kconfig
-@@ -205,7 +205,7 @@ config USB_EHCI_SH
- config USB_EHCI_EXYNOS
-        tristate "EHCI support for Samsung S5P/EXYNOS SoC Series"
--       depends on PLAT_S5P || ARCH_EXYNOS
-+       depends on ARCH_S5PV210 || ARCH_EXYNOS
-        help
-       Enable support for the Samsung Exynos SOC's on-chip EHCI controller.
-@@ -494,7 +494,7 @@ config USB_OHCI_SH
- config USB_OHCI_EXYNOS
-       tristate "OHCI support for Samsung S5P/EXYNOS SoC Series"
--      depends on PLAT_S5P || ARCH_EXYNOS
-+      depends on ARCH_S5PV210 || ARCH_EXYNOS
-       help
-        Enable support for the Samsung Exynos SOC's on-chip OHCI controller.