Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1303768pxy; Sat, 1 May 2021 09:28:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyulTdktSHncqobGGjjA0mogrSET249XG1/K9q/MCveEQXrsY80zlJuii7U0vEsxqat0h74 X-Received: by 2002:a17:902:a582:b029:ec:d002:623b with SMTP id az2-20020a170902a582b02900ecd002623bmr11128208plb.36.1619886498102; Sat, 01 May 2021 09:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619886498; cv=none; d=google.com; s=arc-20160816; b=iSn86IbIJe8aWRpajBcq7MPzGQF+AbyvVfSnGqADEG56bWdlHKLzfyxG67W8/t8cqd X4NX8M1gcVLHwRaLmmYGn2IPVh/pRn3Dj1ELdyHXBOmA7vImfVgUP2KovWOnHpEErATW Q7MGka656jmTQNJNsKN+y/tyHTw3UKHUviyiasOE03SyYAWGoqf1jc+zCj1Bq2WAHVWN n4HAYXP4lbNGhBwYy0q5QQ4+59mGBcKxSKyk12YOM9NLNE16gxOYrwNcli564qVtbnaK ty6omVl71ZGPu1BJYRZ7teazilaBRN0Sj6OsTzKpf0NGsGzFuau1srNhCWCAJ25qlZ5a RSaA== 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=64NGINXN7ynqOlzs0BXPYhgqQOU3tvwvuitkM9gE7fk=; b=cappehpNwex9fpvXHA6saBuMtvpaMP4CgtQSRVCUJKrE3gjFzgGkleJprGAuL/a2S5 XtHawTeN3EuOpgmq9Rn6qk3nMBubwgi6zBbgVwCSrsdQ50HYQ1xYZP5BVdTX8KjZLBDe qUdDfBtVp28MchFhHy9c4saQnYJl7rLLgc/NZXujn2ZJrqbOTgweiprCulkHSFZoyTgE KlLnVN/kR94CJnhz2f4ujenQuZMMJrW69MsNWDn0OUXANv9tslxt4nm7EWDyo6gSna9c aZ2S7FlEbbfXNuuoePgH+CryOToX5a2G4gNK7gWt2zbnkEUDGVOqA1S7HYMg0zxAeH+X GDfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZOy4ilx8; 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 21si784435plg.99.2021.05.01.09.28.05; Sat, 01 May 2021 09:28:18 -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=ZOy4ilx8; 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 S230195AbhEAQ1T (ORCPT + 99 others); Sat, 1 May 2021 12:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbhEAQ1T (ORCPT ); Sat, 1 May 2021 12:27:19 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C1C8C06138B for ; Sat, 1 May 2021 09:26:29 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id l17so1251077oil.11 for ; Sat, 01 May 2021 09:26:29 -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=64NGINXN7ynqOlzs0BXPYhgqQOU3tvwvuitkM9gE7fk=; b=ZOy4ilx8G6e/EJLATpOC/TY/fj94iX8L+cJ9hsNgXo2Fwdw1iGCYFuJEtRcc8/4UsI 3MDk5B6mxWDQuvRwmUkpVPa36usLK7yRP0rwQ25RDhqsA016eNkML3Uf92soKyMHPpK5 HvbnVIEPJ339ufd7qHJbUdQWNgYAoUnaRNJBREhUkPl0m0wqrFS+U6A+Wf5OFWlACIen CiPQ7B/FlCGlplOU708S9fT01eLuThQFIsksO8AMlFq+nBhn8YcEpPCQU7Ooqg550ROE 44vcQnb7GJK3P8in+Cb6BbsdwDrG62T2Yw3LbRiUDeaTrxe4/StG3eL4Trd+iWfdBUKc Ffow== 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=64NGINXN7ynqOlzs0BXPYhgqQOU3tvwvuitkM9gE7fk=; b=TN8q+Qze2zy/fiX8ctTe4P5By8gnWNRePky676CueusPRSadvsTb1HO9HdGKdVrWrw X/vLc7wxSd7A1kF6IFgXHjjjpgJoYB717SAPWGB9dotT74zFzSLcR9QqSdAV57lsqjWl cODAP6V5w/KbWVwxNUUudEv0uewG6vUb8TMtgGKSQN5wXwS1EgFPgjQ1jktGbQPZfBQz +62jV+GB64os6WiVfVpz95GdGOxRax4BuqfmSEzOV5I4FtnfL7MXOsOSIZuPfAhX3cp+ z4F8c0qn+q9tO3i14IFnloAtSpuZsY3Gfv6D+Gp8k1s+wpaOXofDxKLAw6Im3EnNP9hu 7Qlw== X-Gm-Message-State: AOAM531quTuG5AO2f+y0TFo6OakalCpowWgvhDnu0+iNd05ikxpuxRfv s34866U4YEec152k1IuC/cuth0MwyjizBW0Y5RUKHg== X-Received: by 2002:aca:408a:: with SMTP id n132mr8271992oia.70.1619886388654; Sat, 01 May 2021 09:26:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Sat, 1 May 2021 18:26:17 +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 02:37, Marco Elver wrote: > 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. Just a note on this: the reason for adding signalfd support was based on the comment at SIL_FAULT_PKUERR: > /* > * Fall through to the SIL_FAULT case. Both SIL_FAULT_BNDERR > * and SIL_FAULT_PKUERR are only generated by faults that > * deliver them synchronously to userspace. In case someone > * injects one of these signals and signalfd catches it treat > * it as SIL_FAULT. > */ The same would hold for SIL_FAULT_PERF_EVENT, where somebody injects (re-injects perhaps?) such an event. But otherwise, yes, non-synchronous handling of SIGTRAP/TRAP_PERF is pretty useless for almost all usecases I can think of. Thanks, -- Marco