Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp812322pxy; Fri, 30 Apr 2021 17:40:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4gFE13uFPh+lHeu1GxCSXP7rUzX+bVCN31FijrC81z3xy3lF7A1ODWdC315iYdYmaLanA X-Received: by 2002:a17:907:10d8:: with SMTP id rv24mr6877700ejb.542.1619829658213; Fri, 30 Apr 2021 17:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619829658; cv=none; d=google.com; s=arc-20160816; b=lptP38FBvMbw0Trye+zLu/Lsz1pz3mjf0tiWm7kegfkI9RKE32yS4I9lq+ukIYe/z1 1TJBkSljs9qTuuBnVXUjOPmK9P87Etc3y2w6sEMC3p0kA8trv07agZgFATQGTKTeJdOI C+961wkr3BK4OV34mHekJ4TSwYAw3a65wnm8UC86Nl/fKM6cA22cmdn/BwIe5/7xaz4X d3DrjfN20YYqVtYFR03ykcdDXgR53rs7h2kh2o+Ow43vC/2WbRLD43CZtpgitmi6gdJU d7a4OS0gzX0QLl+P0LAtw2QkFjYY7ozNAV8/fKKwZFulnVhO2ktb9HcgWX8zzjsuN1US g6qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iYQeAScJs1TpMXononV3fp1ygIDD0T/s8VaH8jvt3Xw=; b=ox88r37IF/EXxChJvNYsmmlzE9HQj5Y6S+zss1i4WNXbBKbyUEMVYEKw8u0bLsfbp+ Yh20AOWCAtqB38zh++g7uJZnDrN9ffCM0a0+yeY6aqPDiJxGgcz6g0okb/RpLWVs5jQJ RMaL7F4UuR/rOSRtd/WF3qGmODlGIv5pMtNUk9q4dxZZAroz2J+Evn2/g6Lj7m97VTmU fVsrbhm3iWdGtt/i8xy67AUNYV1Gg3+ySL8EXo362k5ziVrlre12OkjOpcjB7egMGL40 vcisjuoSgTgeNkFHQM1WASLpw/2tJNxtnRWl4MPq3KJTLxgdBSmixvV275QJ3FQnzh97 ZXig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BePQGXKe; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si3497121edi.0.2021.04.30.17.40.34; Fri, 30 Apr 2021 17:40:58 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=BePQGXKe; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231266AbhEAAi0 (ORCPT + 99 others); Fri, 30 Apr 2021 20:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231173AbhEAAiZ (ORCPT ); Fri, 30 Apr 2021 20:38:25 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74BF7C06174A for ; Fri, 30 Apr 2021 17:37:34 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id t24so14350220oic.10 for ; Fri, 30 Apr 2021 17:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iYQeAScJs1TpMXononV3fp1ygIDD0T/s8VaH8jvt3Xw=; b=BePQGXKejT78YB+1Qc5q1LCPNsGstYOV9R088g5QlShgvjvM6ixO0lzCO87W+2TSwp znK2jDTneTfQHKD5uXShgkoJJolm6Bz5N/EpZXuPhYTS6BFF5IkfvoX18p4FHyHQvY4+ hXJbJoQq26tEPkPvjcG2/98QNh45edHmhZWqhkxCTc7VTF2opNFtY1Z0MIXNPxlaHsjB ZMeloEw7ihZti5Zsu/oJYJLe0bQkNbe20ExgjOelN6ADUadC/pM+rBBH/kZzZq3ZkcwK nnnsu4CBGHT3agel86Jlryxeenvqys1N+5c46cXHYT0kybVbeCNf+vY4SGwCaTNp6m1H fBIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iYQeAScJs1TpMXononV3fp1ygIDD0T/s8VaH8jvt3Xw=; b=IQ7uDY5C4kkBGAE9zPPOJ5SFKt0zT1d3H58wt4Iv/GAgKFXLW0A52q+eBB5d8Lk0V7 XkH0H0V90swsVcfZSaLOwxp88/IX+1iI5wTmeMgZjxni1o8YIPsv/O7Jpgr2oFJph96h pAGAPbci9XEAN/g0YbxzY2s7MIAzuToUpvn2lP9x9JW/uQWoR8KbwKy5i+04DS73UsAb V3gGY+Ffgs6ZKGuJ7eAFHYsMd36vbgUkl9E/++/Sa9H9pRQ0fFLJoJsgiD52LAkNN0I1 K8cb/hzbb0FZqocR0TwkaUcFiNKs6H3aVEprrF/DcEXc0IaH8xqQBA+2M5kvtEcZSGy3 pXzQ== X-Gm-Message-State: AOAM530FlGoGmpfH4QpsbWIKNqG/Boa5ylyL5zki41dGNWONOJVy3LcV xwy1jIvw2b/SIIVCMpbfIMPDZgGqHrnxpbVGCbvynA== X-Received: by 2002:aca:408a:: with SMTP id n132mr6087597oia.70.1619829453704; Fri, 30 Apr 2021 17:37:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Sat, 1 May 2021 02:37:22 +0200 Message-ID: Subject: Re: [RFC][PATCH 0/3] signal: Move si_trapno into the _si_fault union To: "Eric W. Biederman" 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 1 May 2021 at 01:48, Eric W. Biederman wrote: > > Well with 7 patches instead of 3 that was a little more than I thought > I was going to send. > > However that does demonstrate what I am thinking, and I think most of > the changes are reasonable at this point. > > I am very curious how synchronous this all is, because if this code > is truly synchronous updating signalfd to handle this class of signal > doesn't really make sense. > > If the code is not synchronous using force_sig is questionable. > > Eric W. Biederman (7): > siginfo: Move si_trapno inside the union inside _si_fault > signal: Implement SIL_FAULT_TRAPNO > signal: Use dedicated helpers to send signals with si_trapno set > signal: Remove __ARCH_SI_TRAPNO > signal: Rename SIL_PERF_EVENT SIL_FAULT_PERF_EVENT for consistency > signal: Factor force_sig_perf out of perf_sigtrap > signal: Deliver all of the perf_data in si_perf Thank you for doing this so quickly -- it looks much cleaner. I'll have a more detailed look next week and also run some tests myself. At a first glance, you've broken our tests in tools/testing/selftests/perf_events/ -- needs a s/si_perf/si_perf.data/, s/si_errno/si_perf.type/ Thanks! -- Marco