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
| ||
|
Date: Fri, 13 Apr 2012 02:44:46 +0200 From: Oleg Nesterov <oleg@...hat.com> To: Andrew Morton <akpm@...ux-foundation.org> Cc: Daniel Lezcano <daniel.lezcano@...e.fr>, Serge Hallyn <serge.hallyn@...onical.com>, linux-kernel@...r.kernel.org Subject: [PATCH] pidns: reboot_pid_ns: use SEND_SIG_FORCED instead of force_sig() cf3f8921 "pidns: add reboot_pid_ns() to handle the reboot syscall" uses force_sig() to kill the SIGNAL_UNKILLABLE cinit, this was the only choice. After 629d362b we can use SEND_SIG_FORCED instead, force_sig() has the special semantics and should be avoided if possible. Signed-off-by: Oleg Nesterov <oleg@...hat.com> diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c index 57bc1fd..ef35e20 100644 --- a/kernel/pid_namespace.c +++ b/kernel/pid_namespace.c @@ -241,7 +241,7 @@ int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) } read_lock(&tasklist_lock); - force_sig(SIGKILL, pid_ns->child_reaper); + do_send_sig_info(SIGKILL, SEND_SIG_FORCED, pid_ns->child_reaper, true); read_unlock(&tasklist_lock); do_exit(0); -- 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