Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2248364imm; Thu, 7 Jun 2018 07:40:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIPpqzPxoHvSkyN/c2FzcD9DFfriUEMu9qW9PuxRnYf/72DTaQq3jPhnIyRvJJ6tbZD/sIr X-Received: by 2002:a62:d9c5:: with SMTP id b66-v6mr2074352pfl.41.1528382456647; Thu, 07 Jun 2018 07:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528382456; cv=none; d=google.com; s=arc-20160816; b=K3f9IwQ30M3H0swra5w7tJSFCTAuBacpJtsvr9MB1EFreeFov3GzTmOqQ14URk1cBN AfEqSzToYCtappkHHTpLZPFZqxnDR01hdjgNcAmV2+t/annrRn5hdkYutOgao9ZHObGW NaQxq7qo3tgPWB70eczDzKCx07IawFzh5pBwmQQjjNSDyaU74XkdbkrhSQMsRacmihUV XLsQfDZf5SviVXcJcMhZyWpBm6QYTLY/0SsVV0T8PR8dCXnHv20d/ENS8deVPxxIBeWw dyW7ES0fTTRZXQez/npikSV8ifG3m2LyED43R8yEh1c4ci+G9xujCbb/ujuT2ZomTw5Q /16g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=IU3KIJSqWEL4+uplwmxGYFUmid/p8e/t1PfitRyw7VI=; b=WntCBsDG3PsPsHJEhsZPS7XHzRKkUJIUM/YwVoVcJTT2+6kIHdQMnZy3T3VziGTQqG zP0R943Qiw6WF4d0qd2HNzMC3HbZvfmTSJSg7SprVtbrrPlb+s+NW5+hXZ3WduSh4v9i ldL148bsIkbUK5d+HweoA/NI7TF7alDoC+TtnxIIBBddN9VscwUY+SM/yU8izAogrF7O 4x1ZhEUeaMTfZZSYGVwShxPzvmYEtJ6VBDJyeKk6/C/TQqL1MSW/f9ONX7MrBYFd2J57 JDgxX4BY1RRrdl1VncJ5Eg097Kj1ruBfE2BCWPgu1vPYdao05i/g7KQmWCC4AFcG3Vu3 O+qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13-v6si24836823pfh.282.2018.06.07.07.40.42; Thu, 07 Jun 2018 07:40:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934016AbeFGOhf (ORCPT + 99 others); Thu, 7 Jun 2018 10:37:35 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40443 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933925AbeFGOhd (ORCPT ); Thu, 7 Jun 2018 10:37:33 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbs-0005hO-N8; Thu, 07 Jun 2018 15:09:52 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb1-0002p2-82; Thu, 07 Jun 2018 15:08:59 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Rich Felker" , "Eric W. Biederman" , "Paul Mundt" , "Yoshinori Sato" , linux-sh@vger.kernel.org Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 097/410] signal/sh: Ensure si_signo is initialized in do_divide_error In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: "Eric W. Biederman" commit 0e88bb002a9b2ee8cc3cc9478ce2dc126f849696 upstream. Set si_signo. Cc: Yoshinori Sato Cc: Rich Felker Cc: Paul Mundt Cc: linux-sh@vger.kernel.org Fixes: 0983b31849bb ("sh: Wire up division and address error exceptions on SH-2A.") Signed-off-by: "Eric W. Biederman" Signed-off-by: Ben Hutchings --- arch/sh/kernel/traps_32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c @@ -607,7 +607,8 @@ asmlinkage void do_divide_error(unsigned break; } - force_sig_info(SIGFPE, &info, current); + info.si_signo = SIGFPE; + force_sig_info(info.si_signo, &info, current); } #endif