Skip to contentSkip to conversation

__send_signal: pass q->info, not info, to userns_fixup_signal_uid

PATCH New Serge E. Hallyn 1 participant 1 message Nov 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 __send_signal: pass q->info, not info, to userns_fixup_signal_uid

Eric Biederman pointed out that passing info is a bug and could lead to a NULL pointer deref to boot.

---
 kernel/signal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/signal.c +1 -1
index c0f0782..2751f79 100644
@@ -1118,7 +1118,7 @@ static int __send_signal(int sig, struct siginfo *info, struct task_struct *t,
 			break;
 		}
 
-		userns_fixup_signal_uid(info, t);
+		userns_fixup_signal_uid(q->info, t);
 
 	} else if (!is_si_special(info)) {
 		if (sig >= SIGRTMIN && info->si_code != SI_USER) {
Signature · 1 line
1.7.5.4