]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- up to 3.18.9 auto/th/kernel-3.18.9-1 auto/th/kernel-nopae-3.18.9-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 19 Mar 2015 09:51:18 +0000 (10:51 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 19 Mar 2015 09:51:18 +0000 (10:51 +0100)
kernel-small_fixes.patch
kernel.spec

index 9e8d667af8fd1ac135a5de5e8b54c341aedc6212..d4b603499b05f64e51b96e527678c26a94700ef8 100644 (file)
                                exit
                        fi
                done
-From 29183a70b0b828500816bd794b3fe192fce89f73 Mon Sep 17 00:00:00 2001
-From: John Stultz <john.stultz@linaro.org>
-Date: Mon, 9 Feb 2015 23:30:36 -0800
-Subject: ntp: Fixup adjtimex freq validation on 32-bit systems
-
-Additional validation of adjtimex freq values to avoid
-potential multiplication overflows were added in commit
-5e5aeb4367b (time: adjtimex: Validate the ADJ_FREQUENCY values)
-
-Unfortunately the patch used LONG_MAX/MIN instead of
-LLONG_MAX/MIN, which was fine on 64-bit systems, but being
-much smaller on 32-bit systems caused false positives
-resulting in most direct frequency adjustments to fail w/
-EINVAL.
-
-ntpd only does direct frequency adjustments at startup, so
-the issue was not as easily observed there, but other time
-sync applications like ptpd and chrony were more effected by
-the bug.
-
-See bugs:
-
-  https://bugzilla.kernel.org/show_bug.cgi?id=92481
-  https://bugzilla.redhat.com/show_bug.cgi?id=1188074
-
-This patch changes the checks to use LLONG_MAX for
-clarity, and additionally the checks are disabled
-on 32-bit systems since LLONG_MAX/PPM_SCALE is always
-larger then the 32-bit long freq value, so multiplication
-overflows aren't possible there.
-
-Reported-by: Josh Boyer <jwboyer@fedoraproject.org>
-Reported-by: George Joseph <george.joseph@fairview5.com>
-Tested-by: George Joseph <george.joseph@fairview5.com>
-Signed-off-by: John Stultz <john.stultz@linaro.org>
-Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
-Cc: <stable@vger.kernel.org> # v3.19+
-Cc: Linus Torvalds <torvalds@linux-foundation.org>
-Cc: Sasha Levin <sasha.levin@oracle.com>
-Link: http://lkml.kernel.org/r/1423553436-29747-1-git-send-email-john.stultz@linaro.org
-[ Prettified the changelog and the comments a bit. ]
-Signed-off-by: Ingo Molnar <mingo@kernel.org>
-
-diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
-index 4b585e0..0f60b08 100644
---- a/kernel/time/ntp.c
-+++ b/kernel/time/ntp.c
-@@ -633,10 +633,14 @@ int ntp_validate_timex(struct timex *txc)
-       if ((txc->modes & ADJ_SETOFFSET) && (!capable(CAP_SYS_TIME)))
-               return -EPERM;
--      if (txc->modes & ADJ_FREQUENCY) {
--              if (LONG_MIN / PPM_SCALE > txc->freq)
-+      /*
-+       * Check for potential multiplication overflows that can
-+       * only happen on 64-bit systems:
-+       */
-+      if ((txc->modes & ADJ_FREQUENCY) && (BITS_PER_LONG == 64)) {
-+              if (LLONG_MIN / PPM_SCALE > txc->freq)
-                       return -EINVAL;
--              if (LONG_MAX / PPM_SCALE < txc->freq)
-+              if (LLONG_MAX / PPM_SCALE < txc->freq)
-                       return -EINVAL;
-       }
--- 
-cgit v0.10.2
-
index 108ac92f92625ec7d91a9b3cc20f2864e451ca93..e2cde45e3bd23c3bdc4e30f1a7c4c7741fd81949 100644 (file)
@@ -72,7 +72,7 @@
 
 %define                rel             1
 %define                basever         3.18
-%define                postver         .8
+%define                postver         .9
 
 # define this to '-%{basever}' for longterm branch
 %define                versuffix       %{nil}
@@ -121,7 +121,7 @@ Source0:    http://www.kernel.org/pub/linux/kernel/v3.x/linux-%{basever}.tar.xz
 # Source0-md5: 9e854df51ca3fef8bfe566dbd7b89241
 %if "%{postver}" != ".0"
 Patch0:                http://www.kernel.org/pub/linux/kernel/v3.x/patch-%{version}.xz
-# Patch0-md5:  b7bd36ce9f4bff165ee776e2b9263257
+# Patch0-md5:  41077062d4b7beefd88d4df6e598e376
 %endif
 Source1:       kernel.sysconfig
 
This page took 0.059964 seconds and 4 git commands to generate.