]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Sep 2021 08:55:32 +0000 (10:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Sep 2021 08:55:32 +0000 (10:55 +0200)
added patches:
revert-posix-cpu-timers-force-next-expiration-recalc-after.patch

queue-5.14/revert-posix-cpu-timers-force-next-expiration-recalc-after.patch [new file with mode: 0644]
queue-5.14/series

diff --git a/queue-5.14/revert-posix-cpu-timers-force-next-expiration-recalc-after.patch b/queue-5.14/revert-posix-cpu-timers-force-next-expiration-recalc-after.patch
new file mode 100644 (file)
index 0000000..e0ba5ed
--- /dev/null
@@ -0,0 +1,39 @@
+From 95cfea521f698ace3591dea4b49ac90dbeed9e86 Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Thu, 16 Sep 2021 10:51:42 +0200
+Subject: Revert "posix-cpu-timers: Force next expiration recalc after
+ itimer reset"
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+This reverts commit 564005805aadec9cb7e5dc4e14071b8f87cd6b58 which is
+commit 406dd42bd1ba0c01babf9cde169bb319e52f6147 upstream.
+
+It is reported to cause regressions.  A proposed fix has been posted,
+but it is not in a released kernel yet.  So just revert this from the
+stable release so that the bug is fixed.  If it's really needed we can
+add it back in in a future release.
+
+Link: https://lore.kernel.org/r/87ilz1pwaq.fsf@wylie.me.uk
+Reported-by: "Alan J. Wylie" <alan@wylie.me.uk>
+Cc: Linus Torvalds <torvalds@linux-foundation.org>
+Cc: Frederic Weisbecker <frederic@kernel.org>
+Cc: Thomas Gleixner <tglx@linutronix.de>
+Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
+Cc: Sasha Levin <sashal@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ kernel/time/posix-cpu-timers.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/kernel/time/posix-cpu-timers.c
++++ b/kernel/time/posix-cpu-timers.c
+@@ -1346,6 +1346,8 @@ void set_process_cpu_timer(struct task_s
+                       }
+               }
++              if (!*newval)
++                      return;
+               *newval += now;
+       }
index 56a56c625bc0bbbedf1f5b5e88e49b8fc7a6a142..5d5a2c2e89a8614ba07e16af7fb98372bc698891 100644 (file)
@@ -392,3 +392,4 @@ net-fix-null-pointer-reference-in-cipso_v4_doi_free.patch
 fix-array-index-out-of-bounds-in-taprio_change.patch
 net-w5100-check-return-value-after-calling-platform_.patch
 net-hns3-clean-up-a-type-mismatch-warning.patch
+revert-posix-cpu-timers-force-next-expiration-recalc-after.patch