public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: Voyager, tty locking
@ 2006-08-08 18:07 Alan Cox
  2006-08-08 17:57 ` Zach Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2006-08-08 18:07 UTC (permalink / raw)
  To: akpm, linux-kernel, James.Bottomley

Voyager fiddles with current->signal.tty without locking. It turns out
that the code in question has already cleared current->signal.tty
correctly because daemonize() does the right thing already.

The signal handling also appears to be incorrect as it does an
unprotected sigfillset that also appears unneccessary. As I don't have a
bowtie and am therefore not a qualified voyager maintainer I leave that
to James.

Signed-off-by: Alan Cox <alan@redhat.com>

--- linux.vanilla-2.6.18-rc3-mm2/arch/i386/mach-voyager/voyager_thread.c	2006-08-07 16:15:02.000000000 +0100
+++ linux-2.6.18-rc3-mm2/arch/i386/mach-voyager/voyager_thread.c	2006-08-08 18:19:11.496378872 +0100
@@ -130,7 +130,6 @@
 	init_timer(&wakeup_timer);
 
 	sigfillset(&current->blocked);
-	current->signal->tty = NULL;
 
 	printk(KERN_NOTICE "Voyager starting monitor thread\n");
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-08 18:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-08 18:07 PATCH: Voyager, tty locking Alan Cox
2006-08-08 17:57 ` Zach Brown
2006-08-08 18:04   ` James Bottomley
2006-08-08 18:38     ` Zach Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox