lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1irc0pfyq.fsf@ebiederm.dsl.xmission.com>
Date:	Fri, 13 Apr 2007 07:21:49 -0600
From:	ebiederm@...ssion.com (Eric W. Biederman)
To:	Oleg Nesterov <oleg@...sign.ru>
Cc:	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] worker_thread: don't play with SIGCHLD

Oleg Nesterov <oleg@...sign.ru> writes:

> depends on Eric's
>
> 	kthread-dont-depend-on-work-queues-take-2.patch
>
> worker_thread() inherits ignored SIGCHLD from its parent, kthreadd.
> We can remove unneeded do_sigaction().

Acked-by: "Eric W. Biederman" <ebiederm@...ssion.com>

Looks good.

We could delete all of:

> 	set_user_nice(current, -5);
> 
> 	/* Block and flush all signals */
> 	sigfillset(&blocked);
> 	sigprocmask(SIG_BLOCK, &blocked, NULL);
> 	flush_signals(current);
> 
> 	/*
> 	 * We inherited MPOL_INTERLEAVE from the booting kernel.
> 	 * Set MPOL_DEFAULT to insure node local allocations.
> 	 */
> 	numa_default_policy();
> 
> 	/* SIG_IGN makes children autoreap: see do_notify_parent(). */
> 	sa.sa.sa_handler = SIG_IGN;
> 	sa.sa.sa_flags = 0;
> 	siginitset(&sa.sa.sa_mask, sigmask(SIGCHLD));
> 	do_sigaction(SIGCHLD, &sa, (struct k_sigaction *)0);

If we wanted to, as that all comes by default from kthreadd.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ