Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261943AbVD0SeO (ORCPT ); Wed, 27 Apr 2005 14:34:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261942AbVD0Sc6 (ORCPT ); Wed, 27 Apr 2005 14:32:58 -0400 Received: from fire.osdl.org ([65.172.181.4]:27818 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S261938AbVD0ScO (ORCPT ); Wed, 27 Apr 2005 14:32:14 -0400 Date: Wed, 27 Apr 2005 11:31:37 -0700 From: Chris Wright To: davem@davemloft.net, jurij@wooyd.org Cc: linux-kernel@vger.kernel.org, stable@kernel.org, Justin Forbes , Zwane Mwaikambo , Cliff White , "Theodore Ts'o" , "Randy.Dunlap" , Chuck Wolber , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk Subject: [08/07] sparc64: Fix copy_siginfo_to_user32() Message-ID: <20050427183137.GT493@shell0.pdx.osdl.net> References: <20050427171446.GA3195@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050427171446.GA3195@kroah.com> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1387 Lines: 39 -stable review patch. If anyone has any objections, please let us know. ------------------ Because this routine was not filling in the siginfo values for si_band and si_fd, this broke applications trying to actually get at this data. This makes the sparc64 code in line with PowerPC64's implementation, which already gets it right. Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- ===== arch/sparc64/kernel/signal32.c 1.52 vs edited ===== --- 1.52/arch/sparc64/kernel/signal32.c 2005-03-13 15:29:47 -08:00 +++ edited/arch/sparc64/kernel/signal32.c 2005-04-17 14:37:13 -07:00 @@ -192,9 +192,12 @@ err |= __put_user(from->si_uid, &to->si_uid); break; case __SI_FAULT >> 16: - case __SI_POLL >> 16: err |= __put_user(from->si_trapno, &to->si_trapno); err |= __put_user((unsigned long)from->si_addr, &to->si_addr); + break; + case __SI_POLL >> 16: + err |= __put_user(from->si_band, &to->si_band); + err |= __put_user(from->si_fd, &to->si_fd); break; case __SI_RT >> 16: /* This is not generated by the kernel as of now. */ case __SI_MESGQ >> 16: - 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/