Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751781AbWB0Wqa (ORCPT ); Mon, 27 Feb 2006 17:46:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751776AbWB0WbU (ORCPT ); Mon, 27 Feb 2006 17:31:20 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:29313 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S932091AbWB0WbJ (ORCPT ); Mon, 27 Feb 2006 17:31:09 -0500 Message-Id: <20060227223345.170100000@sorel.sous-sol.org> References: <20060227223200.865548000@sorel.sous-sol.org> Date: Mon, 27 Feb 2006 14:32:11 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, Oleg Nesterov , Greg Kroah-Hartman Subject: [patch 11/39] [PATCH] sys_signal: initialize ->sa_mask Content-Disposition: inline; filename=sys_signal-initialize-sa_mask.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 36 -stable review patch. If anyone has any objections, please let us know. ------------------ Pointed out by Linus Torvalds. sys_signal() forgets to initialize ->sa_mask. ( I suspect arch/ia64/ia32/ia32_signal.c:sys32_signal() also needs this fix ) Signed-off-by: Oleg Nesterov Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- kernel/signal.c | 1 + 1 files changed, 1 insertion(+) --- linux-2.6.15.4.orig/kernel/signal.c +++ linux-2.6.15.4/kernel/signal.c @@ -2604,6 +2604,7 @@ sys_signal(int sig, __sighandler_t handl new_sa.sa.sa_handler = handler; new_sa.sa.sa_flags = SA_ONESHOT | SA_NOMASK; + sigemptyset(&new_sa.sa.sa_mask); ret = do_sigaction(sig, &new_sa, &old_sa); -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/