Skip to contentSkip to conversation

signal-avoid-shared-siginfo-namespace-rewrites.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Aug 4 Stable branch

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: signal: avoid shared siginfo namespace rewrites
has been removed from the -mm tree. Its filename was
signal-avoid-shared-siginfo-namespace-rewrites.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Bradley Morgan <[email protected]>
Subject: signal: avoid shared siginfo namespace rewrites
Date: Mon, 22 Jun 2026 20:25:08 +0000

send_signal_locked() rewrites sender ids for the target namespace. Group sends reuse the same siginfo, so one recipient can affect the next.

Copy the siginfo before changing it.

Fixes 7a0cf094944e ("signal: Correct namespace fixups of si_pid and si_uid")
Cc "Eric W. Biederman" <[email protected]>
Cc Adrian Huang <[email protected]>
Cc Aleksandr Nogikh <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Marco Elver <[email protected]>
Cc "Masami Hiramatsu (Google)" <[email protected]>
Cc Mathieu Desnoyers <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>

---

 kernel/signal.c |    4 ++++
 1 file changed, 4 insertions(+)
kernel/signal.c renamed from kernel/signal.c~signal-avoid-shared-siginfo-namespace-rewrites +4 -0
@@ -1181,6 +1181,7 @@ static inline bool has_si_pid_and_uid(st
 int send_signal_locked(int sig, struct kernel_siginfo *info,
 		       struct task_struct *t, enum pid_type type)
 {
+	struct kernel_siginfo rewritten;
 	/* Should SIGKILL or SIGSTOP be received by a pid namespace init? */
 	bool force = false;
 
@@ -1194,6 +1195,9 @@ int send_signal_locked(int sig, struct k
 		/* SIGKILL and SIGSTOP is special or has ids */
 		struct user_namespace *t_user_ns;
 
+		rewritten = *info;
+		info = &rewritten;
+
 		rcu_read_lock();
 		t_user_ns = task_cred_xxx(t, user_ns);
 		if (current_user_ns() != t_user_ns) {

_

Patches currently in -mm which might be from [email protected] are

taskstats-drop-the-dead-null-attribute-check-in-parse.patch taskstats-fold-the-two-cpumask-handlers-into-one.patch