Received: by 10.192.165.148 with SMTP id m20csp149549imm; Thu, 19 Apr 2018 18:15:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx49EYuHpPcjZRFbs1xy4/dUtCJVJJmgRwFRxTOfugR6FGDAfPTEuhuJwx0ZXy0LkVDHTsT1w X-Received: by 2002:a17:902:be15:: with SMTP id r21-v6mr7852321pls.237.1524186926653; Thu, 19 Apr 2018 18:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524186926; cv=none; d=google.com; s=arc-20160816; b=kYGutpPuIBIEniog4wPT5zYAkXscZVwBYplM0ZuIS4WHXDj+TXs7B3zjdWMESg+iyz s/XhNL5ccyJkkotkdTX/HQFCNI/4NFxbCK7gKcBqH8nt7+76KfCgEGSjlKVd57nH9hMn iy4hYP8NOWgqMrW85Jebn6B0ExG+SbG0EXsSQ9Og4vCaxzmQG2InWEOr+VYw8fno81Q0 D/44sn7dDJzDXG1so9rFWk9afkW1rKTnQOjkSYlz2dKHFzakAE+QQz17eaSV99bfklcw XrgadpEt81+bXO3iS/z/U4zcvYsvSrT5H/p8GnQQynxGivf9fP0evyrKQM3/ut+VnRsO XvFg== 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=ZAvQCKcWJ0wydDVy51Y+cN3jqHgTu0/hd23yc8AxtIo=; b=Ijn/xqA1np8EYuvSFgZLM/c0DJx8LCQPzm43TJruJi9u/rHrwSIxi4XsUtocFE5SuV NmcP27I6wcZkkJdWEVsqDusZ8Qx3fGaO/whfevxBb6CMcjpxH84R8ngKBgboqb4qSacu 013dwJ4yZonU4dBoEX16E/7/40cU7hs2XOdKk03uu44wbPAj0Y4X8xvYnehjxGQzanyI qL/DdgJvP83sUNyLqqlD0UDVkYjjFnd0oqXwEBMfJgQD/RCfTT3G5HHMgE1YotXZIzjn x05eIrPnwShTJ7p71pHLP747W4wUdUmCjYyLPKqAVSoWpAeKxZ/h7nIUJUoLckA3rYV1 V1nw== 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 e17si3891910pgr.475.2018.04.19.18.15.12; Thu, 19 Apr 2018 18:15:26 -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 S1754075AbeDTBMP (ORCPT + 99 others); Thu, 19 Apr 2018 21:12:15 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:50406 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753761AbeDTBMI (ORCPT ); Thu, 19 Apr 2018 21:12:08 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f9Kat-0007Cm-Go; Thu, 19 Apr 2018 19:12:07 -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 1f9KWx-00014u-Di; Thu, 19 Apr 2018 19:08:18 -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" , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org Date: Thu, 19 Apr 2018 20:04:03 -0500 Message-Id: <20180420010408.24438-12-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=1f9KWx-00014u-Di;;;mid=<20180420010408.24438-12-ebiederm@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.174.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19vZBpn6kCxvpe0qopXYf36MWa/zEEJYac= 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.4976] * -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 15032 ms - load_scoreonly_sql: 0.13 (0.0%), signal_user_changed: 3.9 (0.0%), b_tie_ro: 2.6 (0.0%), parse: 1.23 (0.0%), extract_message_metadata: 16 (0.1%), get_uri_detail_list: 2.2 (0.0%), tests_pri_-1000: 3.1 (0.0%), tests_pri_-950: 1.28 (0.0%), tests_pri_-900: 1.03 (0.0%), tests_pri_-400: 20 (0.1%), check_bayes: 19 (0.1%), b_tokenize: 7 (0.0%), b_tok_get_all: 6 (0.0%), b_comp_prob: 1.98 (0.0%), b_tok_touch_all: 2.7 (0.0%), b_finish: 0.67 (0.0%), tests_pri_0: 164 (1.1%), check_dkim_signature: 0.51 (0.0%), check_dkim_adsp: 4.0 (0.0%), tests_pri_500: 14818 (98.6%), poll_dns_idle: 14806 (98.5%), rewrite_mail: 0.00 (0.0%) Subject: [REVIEW][PATCH 12/17] signal/ia64: 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: Tony Luck Cc: Fenghua Yu Cc: linux-ia64@vger.kernel.org Fixes: 987159266c45 ("Linux version 2.3.48") Signed-off-by: "Eric W. Biederman" --- arch/ia64/include/uapi/asm/siginfo.h | 7 ------- arch/ia64/kernel/traps.c | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/ia64/include/uapi/asm/siginfo.h b/arch/ia64/include/uapi/asm/siginfo.h index 5aa454ed89db..52b5af424511 100644 --- a/arch/ia64/include/uapi/asm/siginfo.h +++ b/arch/ia64/include/uapi/asm/siginfo.h @@ -27,11 +27,4 @@ #define __ISR_VALID_BIT 0 #define __ISR_VALID (1 << __ISR_VALID_BIT) -/* - * SIGFPE si_codes - */ -#ifdef __KERNEL__ -#define FPE_FIXME 0 /* Broken dup of SI_USER */ -#endif /* __KERNEL__ */ - #endif /* _UAPI_ASM_IA64_SIGINFO_H */ diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c index 972873ed1ae5..c6f4932073a1 100644 --- a/arch/ia64/kernel/traps.c +++ b/arch/ia64/kernel/traps.c @@ -353,7 +353,7 @@ handle_fpu_swa (int fp_fault, struct pt_regs *regs, unsigned long isr) clear_siginfo(&siginfo); siginfo.si_signo = SIGFPE; siginfo.si_errno = 0; - siginfo.si_code = FPE_FIXME; /* default code */ + siginfo.si_code = FPE_FLTUNK; /* default code */ siginfo.si_addr = (void __user *) (regs->cr_iip + ia64_psr(regs)->ri); if (isr & 0x11) { siginfo.si_code = FPE_FLTINV; @@ -380,7 +380,7 @@ handle_fpu_swa (int fp_fault, struct pt_regs *regs, unsigned long isr) clear_siginfo(&siginfo); siginfo.si_signo = SIGFPE; siginfo.si_errno = 0; - siginfo.si_code = FPE_FIXME; /* default code */ + siginfo.si_code = FPE_FLTUNK; /* default code */ siginfo.si_addr = (void __user *) (regs->cr_iip + ia64_psr(regs)->ri); if (isr & 0x880) { siginfo.si_code = FPE_FLTOVF; -- 2.14.1