Skip to contentSkip to conversation

nlmclnt_recovery: don't use CLONE_SIGHAND

PATCH New Oleg Nesterov 1 participant 1 message Apr 12, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nlmclnt_recovery: don't use CLONE_SIGHAND

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

fs/lockd/clntlock.c renamed from fs/lockd/clntlock.c~1_lockd +1 -1
@@ -153,7 +153,7 @@ nlmclnt_recovery(struct nlm_host *host)
 	if (!host->h_reclaiming++) {
 		nlm_get_host(host);
 		__module_get(THIS_MODULE);
-		if (kernel_thread(reclaimer, host, CLONE_KERNEL) < 0)
+		if (kernel_thread(reclaimer, host, CLONE_FS | CLONE_FILES) < 0)
 			module_put(THIS_MODULE);
 	}
 }