Received: by 10.223.185.116 with SMTP id b49csp228084wrg; Thu, 15 Feb 2018 20:34:17 -0800 (PST) X-Google-Smtp-Source: AH8x227sk8fUrzuzo4rYVbuer9+sXumvaZqWtEfQCV0G1V8nHUFtL3n5wLDBj39R7MwwyKRwIcpz X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr4690896plx.208.1518755657506; Thu, 15 Feb 2018 20:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518755657; cv=none; d=google.com; s=arc-20160816; b=MPwqnbXrOrewIzSUlmj2HdrBtfINHW31CDMQB9Uq5QyclLE93WbpcK0qPui68kKU35 XzowWXxq3+YuhaAKpTuMTN2ertmLaN47RAIxKE7O+bfbTth59hJtzYXz9uWnEK6UjdSZ rSyhGUSs/OoHi44mW4+33BMOgbyv13CMjJSkernQnZ67MbT5IJUIH55ISijtE0iVDhYv Qwsye6cP/2/n4CFNsqo2DrerJo/JBYLeiRFsRoq6rNc/+S/+5EKdlkzsuWYv2v0FhqX7 PHLS0Bd/pX+4LgIZBcSjZEPgmgYYA3NEmjJDkoypFbwj9ZaQkiFIWkmfciGmw/2nvquV tKXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=oDHo4yNyQDEiHcHEapd3x2bw/x43WBtctxBfwGN6KrQ=; b=vzOkKwHtQ3bDI0G54sYIhftAcFjk8ETAyuAM0ZHWikr+YkhDy6qLjCRC+Wxb65DImt PYZ6K80HMHITluqciPsTBe65jAKAMtfbr6U+5iZnpM6vHtG8v2TuU6v38iPvdEbs+5WW Z2FhTovFujESwhW7KWWHvTVVP+s4VbEWLRcUGTetvqU7nrTSppduP2ZFZp+ZI6nHG5rx zzzFhXdIrxKDjh9MMFQnZX/eX3p4uq7Ij7Wx/gEsLDJBP2tQscYqV1witDmWg8J06lB/ smfMotmkR2al7rwm4tMYlNhiGW41sbCY03VvPQl7/BZHy6J33CWNLFU3c50XJCr1ZUqG bTsg== 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 c4si6229756pfg.151.2018.02.15.20.33.49; Thu, 15 Feb 2018 20:34:17 -0800 (PST) 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 S1425146AbeBOPue (ORCPT + 99 others); Thu, 15 Feb 2018 10:50:34 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36390 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424986AbeBOPr4 (ORCPT ); Thu, 15 Feb 2018 10:47:56 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E7750108A; Thu, 15 Feb 2018 15:47:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yoshinori Sato , Rich Felker , Paul Mundt , linux-sh@vger.kernel.org, "Eric W. Biederman" Subject: [PATCH 4.15 167/202] signal/sh: Ensure si_signo is initialized in do_divide_error Date: Thu, 15 Feb 2018 16:17:47 +0100 Message-Id: <20180215151721.613983854@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable 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: Greg Kroah-Hartman --- 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 @@ -609,7 +609,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