From 7681e91720563c3046df47d3fe585be3e441409a Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Mon, 9 Feb 2015 03:19:47 -0500 Subject: Linux v3.19 --- Kbuild-Add-an-option-to-enable-GCC-VTA.patch | 2 +- kernel.spec | 24 ++++++------ ...adjtimex-freq-validation-on-32bit-systems.patch | 45 ++++++++++++++++++++++ sources | 6 +-- 4 files changed, 61 insertions(+), 16 deletions(-) create mode 100644 ntp-Fixup-adjtimex-freq-validation-on-32bit-systems.patch diff --git a/Kbuild-Add-an-option-to-enable-GCC-VTA.patch b/Kbuild-Add-an-option-to-enable-GCC-VTA.patch index 0fb3a3ff4..66853a66b 100644 --- a/Kbuild-Add-an-option-to-enable-GCC-VTA.patch +++ b/Kbuild-Add-an-option-to-enable-GCC-VTA.patch @@ -43,7 +43,7 @@ Signed-off-by: Josh Stone 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile -index c8e17c05f916..63b4b479ed4a 100644 +index b15036b1890c..0fbc68ed4ce9 100644 --- a/Makefile +++ b/Makefile @@ -706,7 +706,11 @@ KBUILD_CFLAGS += -fomit-frame-pointer diff --git a/kernel.spec b/kernel.spec index 5722afc88..be438458d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -6,7 +6,7 @@ Summary: The Linux kernel # For a stable, released kernel, released_kernel should be 1. For rawhide # and/or a kernel built from an rc or git snapshot, released_kernel should # be 0. -%global released_kernel 0 +%global released_kernel 1 %global aarch64patches 1 @@ -48,7 +48,7 @@ Summary: The Linux kernel # base_sublevel is the kernel version we're starting with and patching # on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base, # which yields a base_sublevel of 0. -%define base_sublevel 18 +%define base_sublevel 19 ## If this is a released kernel ## %if 0%{?released_kernel} @@ -67,9 +67,9 @@ Summary: The Linux kernel # The next upstream release sublevel (base_sublevel+1) %define upstream_sublevel %(echo $((%{base_sublevel} + 1))) # The rc snapshot level -%define rcrev 7 +%define rcrev 0 # The git snapshot level -%define gitrev 3 +%define gitrev 0 # Set rpm version accordingly %define rpmversion 3.%{upstream_sublevel}.0 %endif @@ -615,6 +615,9 @@ Patch26131: acpi-video-Add-disable_native_backlight-quirk-for-Sa.patch #rhbz 1188638 Patch26132: nfs-don-t-call-blocking-operations-while-TASK_RUNNIN.patch +#rhbz 1188074 +Patch26133: ntp-Fixup-adjtimex-freq-validation-on-32bit-systems.patch + # git clone ssh://git.fedorahosted.org/git/kernel-arm64.git, git diff master...devel Patch30000: kernel-arm64.patch @@ -1142,13 +1145,6 @@ cp -al vanilla-%{vanillaversion} linux-%{KVERREL} cd linux-%{KVERREL} -#HACK for 3.19-rc6+patch-2.7.3 rbhz 1185928 -# make the symlink for arm64 dt-bindings. sigh. -mkdir -p arch/arm64/boot/dts/include -pushd arch/arm64/boot/dts/include/ -ln -s ../../../../../include/dt-bindings -popd - # released_kernel with possible stable updates %if 0%{?stable_base} ApplyPatch %{stable_patch_00} @@ -1346,6 +1342,9 @@ ApplyPatch acpi-video-Add-disable_native_backlight-quirk-for-Sa.patch #rhbz 1188638 ApplyPatch nfs-don-t-call-blocking-operations-while-TASK_RUNNIN.patch +#rhbz 1188074 +ApplyPatch ntp-Fixup-adjtimex-freq-validation-on-32bit-systems.patch + %if 0%{?aarch64patches} ApplyPatch kernel-arm64.patch %ifnarch aarch64 # this is stupid, but i want to notice before secondary koji does. @@ -2212,6 +2211,9 @@ fi # ||----w | # || || %changelog +* Mon Feb 09 2015 Josh Boyer - 3.19.0-1 +- Linux v3.19 + * Sat Feb 07 2015 Josh Boyer - 3.19.0-0.rc7.git3.1 - Linux v3.19-rc7-189-g26cdd1f76a88 diff --git a/ntp-Fixup-adjtimex-freq-validation-on-32bit-systems.patch b/ntp-Fixup-adjtimex-freq-validation-on-32bit-systems.patch new file mode 100644 index 000000000..c8642654f --- /dev/null +++ b/ntp-Fixup-adjtimex-freq-validation-on-32bit-systems.patch @@ -0,0 +1,45 @@ +From: John Stultz +Date: Mon, 2 Feb 2015 10:57:56 -0800 +Subject: [PATCH] ntp: Fixup adjtimex freq validation on 32bit 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 64bit systems, but caused +false positives on 32bit systems resulting in most direct +frequency adjustments to fail w/ EINVAL. + +ntpd only does driect frequency adjustments at startup, +so the issue was not easily observed there, but other sync +applications like ptpd and chrony were more effected by +the bug. + +Cc: Sasha Levin +Reported-by: Josh Boyer +Reported-by: George Joseph +Signed-off-by: John Stultz +--- + kernel/time/ntp.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c +index 28bf91c60a0b..242774dd27a1 100644 +--- a/kernel/time/ntp.c ++++ b/kernel/time/ntp.c +@@ -634,9 +634,9 @@ int ntp_validate_timex(struct timex *txc) + return -EPERM; + + if (txc->modes & ADJ_FREQUENCY) { +- if (LONG_MIN / PPM_SCALE > txc->freq) ++ 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; + } + +-- +2.1.0 + diff --git a/sources b/sources index e104642dd..4613a2e4a 100644 --- a/sources +++ b/sources @@ -1,4 +1,2 @@ -9e854df51ca3fef8bfe566dbd7b89241 linux-3.18.tar.xz -813ccb96f0b379d656e57442c2587ca3 perf-man-3.18.tar.gz -1d522b72840cbf5269a1383da339690a patch-3.19-rc7.xz -5bf344d43b7b11b4b2d2ebddb239dcfd patch-3.19-rc7-git3.xz +d3fc8316d4d4d04b65cbc2d70799e763 linux-3.19.tar.xz +15d8d2f97ce056488451a5bfb2944603 perf-man-3.19.tar.gz -- cgit