]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 11:58:12 +0000 (12:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 11:58:12 +0000 (12:58 +0100)
added patches:
bpf-drop-kthread_exit-from-noreturn_deny.patch

queue-6.19/bpf-drop-kthread_exit-from-noreturn_deny.patch [new file with mode: 0644]
queue-6.19/series

diff --git a/queue-6.19/bpf-drop-kthread_exit-from-noreturn_deny.patch b/queue-6.19/bpf-drop-kthread_exit-from-noreturn_deny.patch
new file mode 100644 (file)
index 0000000..9e74148
--- /dev/null
@@ -0,0 +1,31 @@
+From 7fe44c4388146bdbb3c5932d81a26d9fa0fd3ec9 Mon Sep 17 00:00:00 2001
+From: Christian Loehle <christian.loehle@arm.com>
+Date: Fri, 6 Mar 2026 10:49:18 +0000
+Subject: bpf: drop kthread_exit from noreturn_deny
+
+From: Christian Loehle <christian.loehle@arm.com>
+
+commit 7fe44c4388146bdbb3c5932d81a26d9fa0fd3ec9 upstream.
+
+kthread_exit became a macro to do_exit in commit 28aaa9c39945
+("kthread: consolidate kthread exit paths to prevent use-after-free"),
+so there is no kthread_exit function BTF ID to resolve. Remove it from
+noreturn_deny to avoid resolve_btfids unresolved symbol warnings.
+
+Signed-off-by: Christian Loehle <christian.loehle@arm.com>
+Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ kernel/bpf/verifier.c |    1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/kernel/bpf/verifier.c
++++ b/kernel/bpf/verifier.c
+@@ -24641,7 +24641,6 @@ BTF_ID(func, __x64_sys_exit_group)
+ BTF_ID(func, do_exit)
+ BTF_ID(func, do_group_exit)
+ BTF_ID(func, kthread_complete_and_exit)
+-BTF_ID(func, kthread_exit)
+ BTF_ID(func, make_task_dead)
+ BTF_SET_END(noreturn_deny)
index 0933a39a849c07e5a1eda66aebf14cbc5212a99e..5f11af78ca46c5574a5fe47f33a4120a5f596b3a 100644 (file)
@@ -376,3 +376,4 @@ kvm-arm64-eagerly-init-vgic-dist-redist-on-vgic-creation.patch
 io_uring-ensure-ctx-rings-is-stable-for-task-work-flags-manipulation.patch
 io_uring-eventfd-use-ctx-rings_rcu-for-flags-checking.patch
 cxl-acpi-fix-cxl_acpi-and-cxl_pmem-kconfig-tristate-mismatch.patch
+bpf-drop-kthread_exit-from-noreturn_deny.patch