From patchwork Mon Sep 24 14:47:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Eric W. Biederman" X-Patchwork-Id: 973943 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xmission.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FT+ojNWT"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42JnCG3Jd4z9sBZ for ; Tue, 25 Sep 2018 00:48:54 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-ID:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gKd4djJ/SleqrJwZwzzYQFIhd+LoGITgzZSDHBotlGs=; b=FT+ojNWToQxYPK 2Y1w5pb0V5H/Fo4iLNSRce/2UP6ppcireYYYfq6yE/yblteufSW2rqq8fiqojiRtd4jzplAQO9Kuh +MBMgMvkKdav7HOES5GlcOQaTyl26YOphuPq0wxz/KBzeosTK/vlRV8raZZRW8Cbh0Z4F3c7Oahnk vMOX4ecl8u5KnMeMJWzBuC1yPhFwAmM8BCB5Evet59SbJgzOnh/oNhWVUoPOKP+Y6TQv5Qp5RtI8V RhDPKxQRU+b1JEaZzOAfriQ74fChALbLVIGEb5Ty9pkYCXPaGRmgJARVTAj4ps8sApdzIbTyzRyQn +/8w0WADwyuJGji1JzgQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g4SAN-00080t-BE; Mon, 24 Sep 2018 14:48:51 +0000 Received: from out01.mta.xmission.com ([166.70.13.231]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g4SA0-0007v1-C1 for linux-snps-arc@lists.infradead.org; Mon, 24 Sep 2018 14:48:29 +0000 Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1g4S9S-0001UJ-Vv; Mon, 24 Sep 2018 08:47:55 -0600 Received: from [105.184.227.67] (helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1g4S9S-0002Vn-1B; Mon, 24 Sep 2018 08:47:54 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Date: Mon, 24 Sep 2018 16:47:44 +0200 Message-ID: <874lef2bqn.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 X-XM-SPF: eid=1g4S9S-0002Vn-1B; ; ; mid=<874lef2bqn.fsf@xmission.com>; ; ; hst=in02.mta.xmission.com; ; ; ip=105.184.227.67; ; ; frm=ebiederm@xmission.com; ; ; spf=neutral X-XM-AID: U2FsdGVkX1+JYbt40p09L2u5PiBWzZL2Wde8xMlli7M= X-SA-Exim-Connect-IP: 105.184.227.67 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=-1.0 required=8.0 tests=ALL_TRUSTED,BAYES_00, DCC_CHECK_NEGATIVE, TR_Symld_Words, XMNoVowels autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 TR_Symld_Words too many words that have symbols inside * 1.5 XMNoVowels Alpha-numberic number with no vowels * -3.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0036] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ; X-Spam-Relay-Country: X-Spam-Timing: total 145 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 2.9 (2.0%), b_tie_ro: 2.0 (1.4%), parse: 0.94 (0.6%), extract_message_metadata: 2.9 (2.0%), get_uri_detail_list: 0.88 (0.6%), tests_pri_-1000: 3.5 (2.4%), tests_pri_-950: 1.18 (0.8%), tests_pri_-900: 1.25 (0.9%), tests_pri_-400: 16 (11.3%), check_bayes: 15 (10.6%), b_tokenize: 4.2 (2.9%), b_tok_get_all: 4.0 (2.8%), b_comp_prob: 1.49 (1.0%), b_tok_touch_all: 3.9 (2.7%), b_finish: 0.61 (0.4%), tests_pri_0: 99 (68.2%), check_dkim_signature: 0.42 (0.3%), check_dkim_adsp: 2.9 (2.0%), tests_pri_500: 8 (5.6%), rewrite_mail: 0.00 (0.0%) Subject: [REVIEW][PATCH 0/2] signal/arc: siginfo cleanups 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 in02.mta.xmission.com) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180924_074828_424963_BC523F2A X-CRM114-Status: UNSURE ( 7.16 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [166.70.13.231 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Vineet Gupta , linux-snps-arc@lists.infradead.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org I have been slowly cleaning up the architectues ever since I discovered that the pattern of passing in struct siginfo is error prone, and occassionally results in borken siginfo being sent to userspace. What is happening on arc is pretty tame and I have compile tested these changes, so I don't expect problems. Still I would appreciate if people can look over the code and perhaps test it and see if they can spot anything that has perhaps gone wrong. appreciate it. My intention is to merge this through my siginfo tree. If you feel it should go through your arch tree let me know. All of the prerequisites should have been merged several releases ago. Eric W. Biederman (2): signal/arc: Push siginfo generation into unhandled_exception signal/arc: Use force_sig_fault where appropriate arch/arc/kernel/traps.c | 22 ++++++++-------------- arch/arc/mm/fault.c | 20 +++++--------------- 2 files changed, 13 insertions(+), 29 deletions(-)