Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1372640pxj; Wed, 19 May 2021 04:46:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypT2DiCzpdCWYdERDYAvA1pa59nmRejprM8Rd8rE3kywo6rdfih31oomBYZzB+DUmSEb+d X-Received: by 2002:a02:8308:: with SMTP id v8mr12772092jag.143.1621424787829; Wed, 19 May 2021 04:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621424787; cv=none; d=google.com; s=arc-20160816; b=BcW0qQSQVFGiV/cFm3+HxfDtLInfyTzUX+q21a20qqXfnJQnQNJYfyu5U3794dJnbT GB6Ymxw9Z4xELcmnB3sgor6/IonQP7oPD5YRip8s1XXZxnfR+ZNk1G5jcOLQ9LLGDz60 5Fgz1e6vpieJNf5wvLxMEDHwK/PsryJjF7LGRqR0Bes6g3VCuaa7DB407hWZ8v8oRCPu m1hAHm6DcV2LZ66JL0GZh8Ug0bUQ1OZoMEQ8QK3zz3OmAc3gVdeAJ/mTdQ/YzhQgaTUX gLga7I/GD2WQDulAbNiOPHMVKKjnWNJSTrwqq4Swx5oZiG27kg+ko8gQGMj83P5FCNOm 5nMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:mime-version:user-agent:message-id :in-reply-to:date:references:cc:to:from; bh=E7lpcPL4oN8ctxR6yRDvLm5glL8woT7S2Legk0iEQEM=; b=DIC/l5gqB+AYDa5Il8XBFigHqL4qfWK85UrYRzDdA3J3GZWIunph+FhQ41JUzKeUWe bURNXxchq9NuJmQW/UPD/tVzmF458VvD+5abHpVYDutX7CjODFM9r6C1FeBlsD0Z8WGk vb829WGsKxDeEVN4EYToIoxHdwHMOwdxz/l9g7u8wwpT2YLDFtFuqWls9IGBbLpRzOPN PENwvVDC3b7KuPncJ8Hi+R2mOuAPfFbVAVvL833p8wGt/S08A8WOkW/lb4xKN0RyWrSv AMSQ24sV8/y5gBKk0eMq1uXRlZdTd9vOkWbFXhKX0c2t7k2u5VmAIdTfPU7ws0pzdi88 1OaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si9971373ilu.153.2021.05.19.04.46.13; Wed, 19 May 2021 04:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239986AbhERDsT (ORCPT + 99 others); Mon, 17 May 2021 23:48:19 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:48548 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236460AbhERDsS (ORCPT ); Mon, 17 May 2021 23:48:18 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1liqgi-00AIup-W9; Mon, 17 May 2021 21:46:38 -0600 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=fess.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1liqgf-00DpMa-Cz; Mon, 17 May 2021 21:46:32 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Marco Elver Cc: Arnd Bergmann , Florian Weimer , "David S. Miller" , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Peter Collingbourne , Dmitry Vyukov , Alexander Potapenko , sparclinux , linux-arch , Linux Kernel Mailing List , Linux API , kasan-dev References: Date: Mon, 17 May 2021 22:46:19 -0500 In-Reply-To: (Marco Elver's message of "Mon, 17 May 2021 22:53:20 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1liqgf-00DpMa-Cz;;;mid=;;;hst=in02.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+Pcm16K+cqYXv6QpoQzYfCpXsEiNIW9QY= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa08.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.6 required=8.0 tests=ALL_TRUSTED,BAYES_40, DCC_CHECK_NEGATIVE,FVGT_m_MULTI_ODD,T_TM2_M_HEADER_IN_MSG, T_TooManySym_01 autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% * [score: 0.2579] * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa08 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.4 FVGT_m_MULTI_ODD Contains multiple odd letter combinations X-Spam-DCC: XMission; sa08 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Marco Elver X-Spam-Relay-Country: X-Spam-Timing: total 3037 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 14 (0.5%), b_tie_ro: 12 (0.4%), parse: 1.43 (0.0%), extract_message_metadata: 14 (0.5%), get_uri_detail_list: 2.4 (0.1%), tests_pri_-1000: 12 (0.4%), tests_pri_-950: 1.38 (0.0%), tests_pri_-900: 1.19 (0.0%), tests_pri_-90: 1552 (51.1%), check_bayes: 1550 (51.0%), b_tokenize: 8 (0.3%), b_tok_get_all: 12 (0.4%), b_comp_prob: 3.1 (0.1%), b_tok_touch_all: 1521 (50.1%), b_finish: 1.57 (0.1%), tests_pri_0: 1423 (46.8%), check_dkim_signature: 0.50 (0.0%), check_dkim_adsp: 152 (5.0%), poll_dns_idle: 149 (4.9%), tests_pri_10: 3.8 (0.1%), tests_pri_500: 11 (0.4%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v4 0/5] siginfo: ABI fixes for TRAP_PERF X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marco Elver writes: > On Mon, 17 May 2021 at 21:58, Eric W. Biederman wrote: >> >> During the merge window an issue with si_perf and the siginfo ABI came >> up. The alpha and sparc siginfo structure layout had changed with the >> addition of SIGTRAP TRAP_PERF and the new field si_perf. >> >> The reason only alpha and sparc were affected is that they are the >> only architectures that use si_trapno. >> >> Looking deeper it was discovered that si_trapno is used for only >> a few select signals on alpha and sparc, and that none of the >> other _sigfault fields past si_addr are used at all. Which means >> technically no regression on alpha and sparc. >> >> While the alignment concerns might be dismissed the abuse of >> si_errno by SIGTRAP TRAP_PERF does have the potential to cause >> regressions in existing userspace. >> >> While we still have time before userspace starts using and depending on >> the new definition siginfo for SIGTRAP TRAP_PERF this set of changes >> cleans up siginfo_t. >> >> - The si_trapno field is demoted from magic alpha and sparc status and >> made an ordinary union member of the _sigfault member of siginfo_t. >> Without moving it of course. >> >> - si_perf is replaced with si_perf_data and si_perf_type ending the >> abuse of si_errno. >> >> - Unnecessary additions to signalfd_siginfo are removed. >> >> v3: https://lkml.kernel.org/r/m1tuni8ano.fsf_-_@fess.ebiederm.org >> v2: https://lkml.kernel.org/r/m14kfjh8et.fsf_-_@fess.ebiederm.org >> v1: https://lkml.kernel.org/r/m1zgxfs7zq.fsf_-_@fess.ebiederm.org >> >> This version drops the tests and fine grained handling of si_trapno >> on alpha and sparc (replaced assuming si_trapno is valid for >> all but the faults that defined different data). > > And just to clarify, the rest of the series (including static-asserts) > for the next merge-window will be sent once this series is all sorted, > correct? That is the plan. I really wonder about alphas use of si_trapno, and alphas use send_sig instead of force_sig. It could be worth looking into those as it has the potential to simplify the code. >> Eric W. Biederman (5): >> siginfo: Move si_trapno inside the union inside _si_fault >> signal: Implement SIL_FAULT_TRAPNO >> signal: Factor force_sig_perf out of perf_sigtrap >> signal: Deliver all of the siginfo perf data in _perf >> signalfd: Remove SIL_PERF_EVENT fields from signalfd_siginfo > > Looks good, thank you! I build-tested (defconfig -- x86_64, i386, arm, > arm64, m68k, sparc, alpha) this series together with a local patch to > pull in the static asserts from v3. Also re-ran perf_events kselftests > on x86_64 (native and 32bit compat). Thanks, Can I have your Tested-by? Eric