From 1d5c4d2db15a953e64d95974e20199b9ebcf29d0 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Fri, 6 Dec 2013 08:50:54 -0500 Subject: [PATCH] Linux v3.13-rc2-295-g002acf1 - Add test fix patch for crypto backtrace (rhbz 1038472) --- crypto-backtrace-fix.patch | 16 ++++++++++++++++ kernel.spec | 12 +++++++++++- sources | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 crypto-backtrace-fix.patch diff --git a/crypto-backtrace-fix.patch b/crypto-backtrace-fix.patch new file mode 100644 index 000000000..808516dcf --- /dev/null +++ b/crypto-backtrace-fix.patch @@ -0,0 +1,16 @@ +Bugzilla: 1038472 +Upstream-status: test fix for 3.13 issue + +diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h +index 64ebede..6a626a5 100644 +--- a/include/crypto/scatterwalk.h ++++ b/include/crypto/scatterwalk.h +@@ -44,7 +44,7 @@ static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg) + if (sg_is_last(sg)) + return NULL; + +- return (++sg)->length ? sg : (void *)sg_page(sg); ++ return (++sg)->length ? sg : sg_chain_ptr(sg); + } + + static inline void scatterwalk_crypto_chain(struct scatterlist *head, diff --git a/kernel.spec b/kernel.spec index 269925e82..3ad7af2bc 100644 --- a/kernel.spec +++ b/kernel.spec @@ -95,7 +95,7 @@ Summary: The Linux kernel # The rc snapshot level %define rcrev 2 # The git snapshot level -%define gitrev 5 +%define gitrev 6 # Set rpm version accordingly %define rpmversion 3.%{upstream_sublevel}.0 %endif @@ -706,6 +706,9 @@ Patch25129: cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch #CVE-2013-6382 rhbz 1033603 1034670 Patch25157: xfs-underflow-bug-in-xfs_attrlist_by_handle.patch +#rhbz 1038472 +Patch25158: crypto-backtrace-fix.patch + # END OF PATCH DEFINITIONS %endif @@ -1378,6 +1381,9 @@ ApplyPatch cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch #CVE-2013-6382 rhbz 1033603 1034670 ApplyPatch xfs-underflow-bug-in-xfs_attrlist_by_handle.patch +#rhbz 1038472 +ApplyPatch crypto-backtrace-fix.patch + # END OF PATCH APPLICATIONS %endif @@ -2190,6 +2196,10 @@ fi # ||----w | # || || %changelog +* Fri Dec 06 2013 Josh Boyer - 3.13.0-0.rc2.git6.1 +- Linux v3.13-rc2-295-g002acf1 +- Add test fix patch for crypto backtrace (rhbz 1038472) + * Thu Dec 05 2013 Josh Boyer - 3.13.0-0.rc2.git5.1 - Linux v3.13-rc2-265-gef1e4e3 diff --git a/sources b/sources index 35ad0bfed..d9d2358b8 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ cc6ee608854e0da4b64f6c1ff8b6398c linux-3.12.tar.xz ed069580489aca6ddafa04d171e5c098 patch-3.13-rc2.xz -548aed231fb46f7063f267eca2b006fc patch-3.13-rc2-git5.xz +159443c36e4cfd173e45acad39c2121b patch-3.13-rc2-git6.xz