Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1106282rwd; Thu, 8 Jun 2023 12:11:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wSUxA+tZtMg7Npxvc7uoF/fohde3eGIhoQ2F1acOjBZwoFdZ5N5JMTGbRZvN3V4wPxbOG X-Received: by 2002:a17:902:ecc2:b0:1b0:42d1:ecd0 with SMTP id a2-20020a170902ecc200b001b042d1ecd0mr11399331plh.66.1686251503318; Thu, 08 Jun 2023 12:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686251503; cv=none; d=google.com; s=arc-20160816; b=BjE9m7pTemCm6R3fsYQkRddhOHd9+tcB9WKmHaJea6cfoRhn3FRDuQNc4xTMDu60QY G3DC7cMiBVLhp07ynrfx2NmCccRFFCju/WROxNAfuzvV/JaSchy0bfFS4sZsRLH2aL6R f7C89dUWjladnyApPnjRhwMvPzRjsJz3RjbrXDgvPJMcFOKspwk375GiRiUWAvXymf3o b8GZTHjsG3VY3WN5ajT1MjcRUOyxr3zknk1YUSXeyXvz5zAQaLetJEGy67gh2LFBZhqi Fn9S5p1EcoT45CCO8DWLoW+9yMNgA6U4PJUR8HaJvRHqQQfBgGWXIr+gPqpLgATDPLxl CrGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=crfd50VGMNO8tIlX6qr1NtBRBI1ze8Ei5RCfvhQ3fkc=; b=SPAs+UGIhQUjkzJG4HuqVVTIx7yRXI5sIK+EqL2bjolyxGJs3E4pKisyzlVp4PUhb8 azQMPVJCJ7hxeu/4gK10MbIefQZ5auasluZf7O1oI8dtls08nTLBKcGwcuJw/AiC7/+q xkq2ks/SIIISe3SW6coay9mNu1x2cHEtsUsVwv7kQT6qzJT3fDYMNNAvmX/O59EIYsks Vzwd8E/tvLNbYpx0dmtewkYaBzlEFD3JVmLrpcjz7mk3RGI+n4fMwH9I0xzhtAnmIBxy twVMlC1AjpVxTLaQirVNCyx/ihYJetn8IFHqwU+kn4LCV5kKG1cleFtXyN/3dFsGKsyZ 1FcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=IxZve4Sa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kr4-20020a170903080400b001ae5fe35b6esi1398500plb.261.2023.06.08.12.11.28; Thu, 08 Jun 2023 12:11:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=IxZve4Sa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234053AbjFHSwU (ORCPT + 99 others); Thu, 8 Jun 2023 14:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233682AbjFHSwS (ORCPT ); Thu, 8 Jun 2023 14:52:18 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5EFD26BA; Thu, 8 Jun 2023 11:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=crfd50VGMNO8tIlX6qr1NtBRBI1ze8Ei5RCfvhQ3fkc=; b=IxZve4SadNgmUqrtkxvp/OIOXR 01gNgQ/27IPCcKCc1pFi/x9M0k38ewUI29ohP01xqRla86eChSmQLhYYBP8gDP7cGTIEiu/IEWC9S IZb7pM16hmXJCklCu4cSYy9jOijZ6fPkhscHmTECEkwhJD39ofPqClJxrCl+6T4lVnEFiHSp8fgFX YGPztrmBKmmga+qo8CD28PONL9EWOzcP0GDLo55uZjiwaVr+F3okK+umbUINAAjbElmHBFGOv4u73 E8Ba3VuKhJ0f61wdi04JzeVVD3UI+etkz6q6SMSiLpx24ZBYLtTVX7lmfFAXYpFcGcQMV2QR1j9Ik X5GSFBvQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q7KjZ-006IRw-0z; Thu, 08 Jun 2023 18:51:45 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B216F3001E7; Thu, 8 Jun 2023 20:51:42 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6A73B244EC37C; Thu, 8 Jun 2023 20:51:42 +0200 (CEST) Date: Thu, 8 Jun 2023 20:51:42 +0200 From: Peter Zijlstra To: Nick Desaulniers Cc: Kees Cook , Linus Torvalds , gregkh@linuxfoundation.org, pbonzini@redhat.com, linux-kernel@vger.kernel.org, ojeda@kernel.org, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, paulmck@kernel.org, frederic@kernel.org, quic_neeraju@quicinc.com, joel@joelfernandes.org, josh@joshtriplett.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, rcu@vger.kernel.org, tj@kernel.org, tglx@linutronix.de, linux-toolchains@vger.kernel.org Subject: Re: [PATCH v2 0/2] Lock and Pointer guards Message-ID: <20230608185142.GA1019250@hirez.programming.kicks-ass.net> References: <20230606134005.GE905437@hirez.programming.kicks-ass.net> <20230606180806.GA942082@hirez.programming.kicks-ass.net> <20230607094101.GA964354@hirez.programming.kicks-ass.net> <20230608085248.GA1002251@hirez.programming.kicks-ass.net> <202306080917.C0B16C8@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 08, 2023 at 10:20:19AM -0700, Nick Desaulniers wrote: > Presumably, one could simply just not use RAII(/SBRM someone else > corrected me about this recently coincidentally; I taught them my fun > C++ acronym IDGAF) when working with a value that conditionally > "escapes" the local scope. But then you're back to the error goto :/