Received: by 10.192.165.148 with SMTP id m20csp148328imm; Thu, 19 Apr 2018 18:13:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx49nrYds7iUbBn7tFxp5Bj0XqwiKW+nVUhhIUnBcYNBk6p9ETdJ1VxNgR8ewTyiMU76AFEgY X-Received: by 10.99.52.76 with SMTP id b73mr6960765pga.258.1524186831980; Thu, 19 Apr 2018 18:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524186831; cv=none; d=google.com; s=arc-20160816; b=OYxwNAfLWk9w1WE7jnIsIaLo4/56/6R20/1uBd/4rIdedxKAQpgjAxiQfxMe0iQblq NT+/cah0v7AH044xu/slxGMFr9TMNORzctArz7VGOTOnyITCNayyH+1vgtnJBxJxZSGp lcgJ66qg+DoxY/J97A8lpvzMMeIGOYM8D98tgWXQvVH7sdh4Z2tMOLO6FPmRjvJ0EQUl NcHZdbjP2zedK12nWDWbFefE4jb0zUFvZ+slDzk5QjitAq+4xd48HmPD+bTodusKao59 aWIEXuxIoEMfiysqZnaXGoCqW5rhlp26HMq1/Qr1Sw0EOufeU1YvUKTIcRqw8Q99LEpK U6Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=LWwSwPNAxcNgAOEGb42npU5sAglyqu1gKuLtvfE/zvo=; b=q/tNXVB8/JlbcVE19JhEo/hGhOpYIEamB/thgKXj1hJZaZ+6bQtg735c2eYxToV7mG jDqQ1MuFf6XFwWA7H/Qyd36D1SCDN/hrsqssnkrPSSo8fX4X2BT5PnNbsoOEot2DifTI tzUEOOT6JFe9zh5CLm9dnGIzf20XtANn621YJeBxnsM9JD/Ncz/Gsncz9GLg7aQ0jkdR 53S3lRJhvXTxCnj66KGiGh3Jub6ErCSdq+jMLRFtUKLiNggDCRCByIKH/BWdSZ+NgddX otMfRBWsBLzq6+cTIY7eLoMALtmKII9VgvYF89l5d42bU7DFj7X6YwfVKkaHidfbphkl 5DKQ== 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 h185si1856226pgc.34.2018.04.19.18.13.37; Thu, 19 Apr 2018 18:13:51 -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 S1754181AbeDTBMW (ORCPT + 99 others); Thu, 19 Apr 2018 21:12:22 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:36115 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753857AbeDTBMJ (ORCPT ); Thu, 19 Apr 2018 21:12:09 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f9Kau-0003tk-Q7; Thu, 19 Apr 2018 19:12:08 -0600 Received: from [97.119.174.25] (helo=x220.int.ebiederm.org) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f9KWg-00014u-IC; Thu, 19 Apr 2018 19:08:01 -0600 From: "Eric W. Biederman" To: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, "Eric W. Biederman" , Helge Deller , Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org Date: Thu, 19 Apr 2018 20:04:02 -0500 Message-Id: <20180420010408.24438-11-ebiederm@xmission.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <878t9ilmhv.fsf@xmission.com> References: <878t9ilmhv.fsf@xmission.com> X-XM-SPF: eid=1f9KWg-00014u-IC;;;mid=<20180420010408.24438-11-ebiederm@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.174.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18U2bBvwMe0brnPMZgtc9Vr1yAVFAZdUZk= X-SA-Exim-Connect-IP: 97.119.174.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa07.xmission.com X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 1.5 XMNoVowels Alpha-numberic number with no vowels * 1.5 TR_Symld_Words too many words that have symbols inside * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;linux-arch@vger.kernel.org X-Spam-Relay-Country: X-Spam-Timing: total 15036 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 3.2 (0.0%), b_tie_ro: 2.1 (0.0%), parse: 1.01 (0.0%), extract_message_metadata: 21 (0.1%), get_uri_detail_list: 3.0 (0.0%), tests_pri_-1000: 3.0 (0.0%), tests_pri_-950: 1.24 (0.0%), tests_pri_-900: 0.96 (0.0%), tests_pri_-400: 26 (0.2%), check_bayes: 25 (0.2%), b_tokenize: 10 (0.1%), b_tok_get_all: 7 (0.0%), b_comp_prob: 2.4 (0.0%), b_tok_touch_all: 2.9 (0.0%), b_finish: 0.64 (0.0%), tests_pri_0: 171 (1.1%), check_dkim_signature: 0.43 (0.0%), check_dkim_adsp: 2.4 (0.0%), tests_pri_500: 14806 (98.5%), poll_dns_idle: 14791 (98.4%), rewrite_mail: 0.00 (0.0%) Subject: [REVIEW][PATCH 11/17] signal/alpha: Replace FPE_FIXME with FPE_FLTUNK X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using an si_code of 0 that aliases with SI_USER is clearly the wrong thing todo, and causes problems in interesting ways. The newly defined FPE_FLTUNK semantically appears to fit the bill so use it instead. Given recent experience in this area odds are it will not break anything. Fixing it removes a hazard to kernel maintenance. Cc: Helge Deller Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-alpha@vger.kernel.org History Tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git Fixes: 0a635c7a84cf ("Fill in siginfo_t.") Signed-off-by: "Eric W. Biederman" --- arch/alpha/include/uapi/asm/siginfo.h | 7 ------- arch/alpha/kernel/osf_sys.c | 2 +- arch/alpha/kernel/traps.c | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/alpha/include/uapi/asm/siginfo.h b/arch/alpha/include/uapi/asm/siginfo.h index 0cf3b527b274..3ebbb1e17902 100644 --- a/arch/alpha/include/uapi/asm/siginfo.h +++ b/arch/alpha/include/uapi/asm/siginfo.h @@ -7,13 +7,6 @@ #include -/* - * SIGFPE si_codes - */ -#ifdef __KERNEL__ -#define FPE_FIXME 0 /* Broken dup of SI_USER */ -#endif /* __KERNEL__ */ - /* * SIGTRAP si_codes */ diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index f5f154942aab..bb3619118926 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -872,7 +872,7 @@ SYSCALL_DEFINE5(osf_setsysinfo, unsigned long, op, void __user *, buffer, fex = (exc >> IEEE_STATUS_TO_EXCSUM_SHIFT) & swcr; if (fex) { siginfo_t info; - int si_code = FPE_FIXME; + int si_code = FPE_FLTUNK; if (fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND; if (fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES; diff --git a/arch/alpha/kernel/traps.c b/arch/alpha/kernel/traps.c index 91636765dd6d..422b676b28f2 100644 --- a/arch/alpha/kernel/traps.c +++ b/arch/alpha/kernel/traps.c @@ -328,7 +328,7 @@ do_entIF(unsigned long type, struct pt_regs *regs) break; case GEN_ROPRAND: signo = SIGFPE; - code = FPE_FIXME; + code = FPE_FLTUNK; break; case GEN_DECOVF: -- 2.14.1