Received: by 10.223.185.116 with SMTP id b49csp2154067wrg; Thu, 15 Feb 2018 07:21:28 -0800 (PST) X-Google-Smtp-Source: AH8x224HQkUqQjtGbOifJDr/VJN0Vnzf7JM1EudxTF+MONDdN3IBX/VBGFdAdp3a46sunZGFjqXD X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr2930685plf.134.1518708088588; Thu, 15 Feb 2018 07:21:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518708088; cv=none; d=google.com; s=arc-20160816; b=dBDnXs2RBa7dqZGaWevLtsXDCu5ArnLOGCjUdLofGBG0nWZ9UZ+jFi0Kk9lHkKw/kS xtH0fJd1g0wCv7vrFzuIJWUc3pb7NcssaytRPjSKoT95E2tP6nUBNepUtcpA+M5DeINT tJaJ5mhXWMdscUe3UmEuUwWGAA6IvzL0yvo+v/lbC7X5Ba1qtIV1v0lmGda4Ro+cQ4oU NwZX+g3qcC0NTlU+Mahhqpt/d31B7F8eJOjWd2TW1yx7mYwWiceaq2d/qW3q9bGrtU/T hAq3wB8ekSFa7dvOqFccjMqkfhJ8mBFMln1F2ESk/AZuYjDIOPsPTmSdeBSvF/GQc2dy qBGw== 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=eMO4mlxeHE3+PY8aQL0tTXVfU8dKv0M1Z62z4pfM+fk=; b=SPZIYhB3B1lMb+zC+IX0x5a+26v+F+yI5aZ0MfyOsK8Ob/NfL7rVNAOdhF2FyKIkXR 0V/memMj6tb8IP9EI78d+1tYixArLDiERL9DDb25YrlVGUmFAFizHl/8NDA5+y9/+uk5 QENnE45+LW2ajKwM/2LmLDdu7FaCfHke+YqJkM28WL38f+Opj5mv7qgP8x4EwOltzoim rFQKjT0M4drfrbb6Knm9gGX/yu0+8EHCXcCcpHE+ZG6YLX2pkxcUTghSR/QEuswcxw8b lGuUdkwpDyp8bb3lSGWzFHozXEejeJyG/433i8n4YZRnmaqNVRDIPLxVAw2Tvhu+E2ue BT3A== 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 t134si977657pgc.664.2018.02.15.07.21.14; Thu, 15 Feb 2018 07:21:28 -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 S1161525AbeBOPUB (ORCPT + 99 others); Thu, 15 Feb 2018 10:20:01 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48126 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161496AbeBOPT5 (ORCPT ); Thu, 15 Feb 2018 10:19:57 -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 23115FF7; Thu, 15 Feb 2018 15:19:56 +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 3.18 38/45] signal/sh: Ensure si_signo is initialized in do_divide_error Date: Thu, 15 Feb 2018 16:17:29 +0100 Message-Id: <20180215144124.021242790@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215144115.863307741@linuxfoundation.org> References: <20180215144115.863307741@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 3.18-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 @@ -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