mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pnpbios_thread_init: don't use CLONE_SIGHAND
@ 2007-04-12 23:56 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2007-04-12 23:56 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Adam Belay, linux-kernel

pnp_dock_thread() calls allow_signal() which plays with parent process's
->sighand.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

--- 2.6.21-rc5/drivers/pnp/pnpbios/core.c~3_pnp	2006-12-17 19:06:40.000000000 +0300
+++ 2.6.21-rc5/drivers/pnp/pnpbios/core.c	2007-04-13 03:44:34.000000000 +0400
@@ -589,7 +589,7 @@ static int __init pnpbios_thread_init(vo
 		return 0;
 #ifdef CONFIG_HOTPLUG
 	init_completion(&unload_sem);
-	if (kernel_thread(pnp_dock_thread, NULL, CLONE_KERNEL) > 0)
+	if (kernel_thread(pnp_dock_thread, NULL, CLONE_FS | CLONE_FILES) > 0)
 		unloading = 0;
 #endif
 	return 0;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-12 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-12 23:56 [PATCH] pnpbios_thread_init: don't use CLONE_SIGHAND Oleg Nesterov

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®