]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Oct 2023 08:06:36 +0000 (10:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Oct 2023 08:06:36 +0000 (10:06 +0200)
added patches:
revert-kernel-sched-modify-initial-boot-task-idle-setup.patch

queue-5.15/revert-kernel-sched-modify-initial-boot-task-idle-setup.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/revert-kernel-sched-modify-initial-boot-task-idle-setup.patch b/queue-5.15/revert-kernel-sched-modify-initial-boot-task-idle-setup.patch
new file mode 100644 (file)
index 0000000..e5368ff
--- /dev/null
@@ -0,0 +1,46 @@
+From caf943a61dec662f645cb53780e7bbc81c1c8ed5 Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Mon, 16 Oct 2023 10:05:03 +0200
+Subject: Revert "kernel/sched: Modify initial boot task idle setup"
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+This reverts commit 3569ad59664f9fa3ba1d02a78810773b7f49702b which is
+commit cff9b2332ab762b7e0586c793c431a8f2ea4db04 upstream.
+
+Joel writes:
+       Let us drop this patch because it caused new tasks-RCU warnings (both
+       normal and rude tasks RCU) in my stable test rig. We are discussing
+       the "right fix" and at that time a backport can be done.
+
+Reported-by: Joel Fernandes <joel@joelfernandes.org>
+Link: https://lore.kernel.org/r/CAEXW_YT6bH70M1TF2TttB-_kP=RUv_1nsy_sHYi6_0oCrX3mVQ@mail.gmail.com
+Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
+Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ kernel/sched/core.c |    2 +-
+ kernel/sched/idle.c |    1 -
+ 2 files changed, 1 insertion(+), 2 deletions(-)
+
+--- a/kernel/sched/core.c
++++ b/kernel/sched/core.c
+@@ -8725,7 +8725,7 @@ void __init init_idle(struct task_struct
+        * PF_KTHREAD should already be set at this point; regardless, make it
+        * look like a proper per-CPU kthread.
+        */
+-      idle->flags |= PF_KTHREAD | PF_NO_SETAFFINITY;
++      idle->flags |= PF_IDLE | PF_KTHREAD | PF_NO_SETAFFINITY;
+       kthread_set_per_cpu(idle, cpu);
+ #ifdef CONFIG_SMP
+--- a/kernel/sched/idle.c
++++ b/kernel/sched/idle.c
+@@ -397,7 +397,6 @@ EXPORT_SYMBOL_GPL(play_idle_precise);
+ void cpu_startup_entry(enum cpuhp_state state)
+ {
+-      current->flags |= PF_IDLE;
+       arch_cpu_idle_prepare();
+       cpuhp_online_idle(state);
+       while (1)
index e24a2fb92511013b427bd0f46de725bc843e9ab6..ea1aea5c5b17104ab482af8a20a7a3df94907b49 100644 (file)
@@ -97,3 +97,4 @@ arm64-armv8_deprecated-move-emulation-functions.patch
 arm64-armv8_deprecated-move-aarch32-helper-earlier.patch
 arm64-armv8_deprecated-rework-deprected-instruction-handling.patch
 arm64-armv8_deprecated-fix-unused-function-error.patch
+revert-kernel-sched-modify-initial-boot-task-idle-setup.patch