* [PATCH 1/1] __send_signal: pass q->info, not info, to userns_fixup_signal_uid
@ 2011-11-18 17:37 Serge E. Hallyn
0 siblings, 0 replies; only message in thread
From: Serge E. Hallyn @ 2011-11-18 17:37 UTC (permalink / raw)
To: Andrew Morton, Eric W. Biederman
Cc: Serge E. Hallyn, richard, containers, linux-kernel, eparis, oleg,
dhowells
Eric Biederman pointed out that passing info is a bug and could lead
to a NULL pointer deref to boot.
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
---
kernel/signal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/signal.c b/kernel/signal.c
index c0f0782..2751f79 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -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) {
--
1.7.5.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-18 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-18 17:37 [PATCH 1/1] __send_signal: pass q->info, not info, to userns_fixup_signal_uid Serge E. Hallyn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®