Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3646355imm; Mon, 18 Jun 2018 01:29:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL8niPsZNJQ3sC1loX/RHbv9naH+wxTOc2Vh4f+DB5S4uKZmIF9a+lZYIBp/o/RCgx8qbCM X-Received: by 2002:a62:fe19:: with SMTP id z25-v6mr12229649pfh.167.1529310571049; Mon, 18 Jun 2018 01:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529310571; cv=none; d=google.com; s=arc-20160816; b=f+97URRH5DpaX6Uu/WSMsCr8QWGKOdzEthxq42DKaSjjsxb3+c0SsWlI4iRbHqeBjt 1MXRFZqC25FhAJX/dSl+CJ8Abx0urtyNvLYoU82zJ6es+Xd+s7HoRn2+iz2PTRA/hHz+ IvKJhFeQH4xjC2xzkoHGq+LLHaPzZI3YEUUb7b3JA2kQ366ThEJpKJpgy1Fm8IwMhXXo k+U6lNOpWbzEvEyCZ/CQgjpc3T6Fc69nHXCmVLq+BmL5uvBxZWvc2GsYiO+nG6oHlfln jXBV1mxrXmLdDXIkZPu8yaUkLKcwfuH9a85zoGidm/22Q882tM9yh1uUXiK7LLc0LLxh MRrw== 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=eEDcX+tKV0AnxuA0sfMFfn1wsPpM5XS6jkXIzJk7UXY=; b=LkAmJwRcpYeFsjE8eu1vInqMBYhDsj5AwyGGiVe+xSMztWWHY7ulQr4SyNKxqniwaR oKoWOnwCoOyyysnrs4kaCZrBrm3IGTg+XUqzkMftPIzhB5Q+/netMeyOCs38vUZ4l7nH v7mTTzgk9AyiNxvaU7/3nfK+643fjxq62EWm2p8GzRE55toXt2wPB5GohHGD51dP4TJZ 0HUCefIRFTOLL3lLRvFXIaQ8O6QPREXTHkvufjpgwcUvc8Jwsi9okbrrXSwXEDc6c2PU Bq+cmnpApov6WoW+hTmR8B4lTjJNEqRG2O97fSQO2yeB7pOUjWXPcTBrciWauTVxqgWO JhSg== 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 z3-v6si11872741pgr.49.2018.06.18.01.29.17; Mon, 18 Jun 2018 01:29:31 -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 S966671AbeFRI2h (ORCPT + 99 others); Mon, 18 Jun 2018 04:28:37 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59834 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966650AbeFRI22 (ORCPT ); Mon, 18 Jun 2018 04:28:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 102B5D6C; Mon, 18 Jun 2018 08:28:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Russell King , Sasha Levin Subject: [PATCH 4.16 279/279] ARM: fix kill( ,SIGFPE) breakage Date: Mon, 18 Jun 2018 10:14:24 +0200 Message-Id: <20180618080620.210669072@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618080608.851973560@linuxfoundation.org> References: <20180618080608.851973560@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Russell King [ Upstream commit 92d44a42af81e850a038c38278ff4f434b2871df ] Commit 7771c6645700 ("signal/arm: Document conflicts with SI_USER and SIGFPE") broke the siginfo structure for userspace triggered signals, causing the strace testsuite to regress. Fix this by eliminating the FPE_FIXME definition (which is at the root of the breakage) and use FPE_FLTINV instead for the case where the hardware appears to be reporting nonsense. Fixes: 7771c6645700 ("signal/arm: Document conflicts with SI_USER and SIGFPE") Suggested-by: Linus Torvalds Signed-off-by: Russell King Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm/include/uapi/asm/siginfo.h | 13 ------------- arch/arm/vfp/vfpmodule.c | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 arch/arm/include/uapi/asm/siginfo.h --- a/arch/arm/include/uapi/asm/siginfo.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef __ASM_SIGINFO_H -#define __ASM_SIGINFO_H - -#include - -/* - * SIGFPE si_codes - */ -#ifdef __KERNEL__ -#define FPE_FIXME 0 /* Broken dup of SI_USER */ -#endif /* __KERNEL__ */ - -#endif --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -257,7 +257,7 @@ static void vfp_raise_exceptions(u32 exc if (exceptions == VFP_EXCEPTION_ERROR) { vfp_panic("unhandled bounce", inst); - vfp_raise_sigfpe(FPE_FIXME, regs); + vfp_raise_sigfpe(FPE_FLTINV, regs); return; }