Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2974339rwb; Mon, 5 Sep 2022 04:41:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7sROp+ySYD1NacPngZOQltbJcbA7IrGhqwMLVeicCqOht5eZaPsrBUhroZjCogDGqnAdv/ X-Received: by 2002:a17:906:505:b0:73d:b188:17d9 with SMTP id j5-20020a170906050500b0073db18817d9mr33959870eja.97.1662378105844; Mon, 05 Sep 2022 04:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662378105; cv=none; d=google.com; s=arc-20160816; b=Q6pw6BmxNBK/rM6kBtZMPVJAMIIGvqzvnY2Ce/S+cYT36H1EXSiC1hoBogqRof3Au6 b8MrGCcS7+EWQLxej5R6WqX2WIPBSvEne5aM5M+Mwnp0PZtR9Q4oSfbAZv9owyZbMZ4S +BAIXnhOlCbLqlUSyO2mCewFabZ1Rg0ERujDN7BenAuk/dR9c+Cs7E7ujXN/dUe5dx1k amo9gVceQURVB/pKQ7QXgIJjgxdeveL3Te6rI7+lP4Bur6ZapwXx3esaYgo7LpEiceMC qOLkmvK87ZWGZx5mDd9NhFPcsPqk+DFnP6677UW3fK2zEBpfNyHMcexG7k+7iKzvTyG1 h5MA== 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=NOIJXXUqg3U8/X8EiDWGuB2/xy05hD+zopi5XxmYMYY=; b=Cx+dMz/HWlT+8Vtqqyt2cNbZsuIUHoDIV8yKFnOpTJSJ4MglF/2dvCGGKI76MiBirP K2nJh3mIm1WklpxzlfWtXqmnWxYCLG/DlqkILBwErN7pI8qk+MAUfwjqFi21PCJms249 RTPkkWX8Ho59NK69cEVWp77JWQSSMEcYgKuV0jjBC39BblO3M0zIzV70pMiCjlbqvdL5 2xS6BZTJcrCN1hXTtAmpX3wtA2SB/3SoW3HfmwqncEwYZFPGA3kmnBzk9pe+f3ziOWVb xISM9af65Xe+I27xcqfXNylIU1IWLG7qN960oqKuXX7+lBV7wOO8ucmiFSyEgWTkX2ff NG7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cZZyZMrz; 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 kx23-20020a170907775700b0072b3305dbbesi5908254ejc.520.2022.09.05.04.41.19; Mon, 05 Sep 2022 04:41:45 -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=casper.20170209 header.b=cZZyZMrz; 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 S238116AbiIEL1X (ORCPT + 99 others); Mon, 5 Sep 2022 07:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237631AbiIEL1R (ORCPT ); Mon, 5 Sep 2022 07:27:17 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CFB258B53 for ; Mon, 5 Sep 2022 04:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=NOIJXXUqg3U8/X8EiDWGuB2/xy05hD+zopi5XxmYMYY=; b=cZZyZMrzzoPUDSHrlouFF8yWXS UuIvyGs8XYVwBEQwQ1H4dtt+Mv+xKrvBQTcaEtOJmJW8emKWyLK36rTvkwueb6gLEP3LV3A7BX2kC oHGIXBg6Nafn8Gnk8qRETACmSwGT01yyl2YMkdEGUdvtEUVjcapMHtFZ5S9S8x/+owt2bg1V4GBQy S860MU4piKkD9q6emxPjFOO8USFTbstaKMhBVxgBaKl4V6kJshjfaQMkoRrVkYoi2NgKflg1q/MlL UsCb7UGpGMYOiq4ZnWzxdnZf4xOrUo00y0+0ayXnjZk38lTW/QE5QW9IV6/cHwPKW70T78YYrQQig +Y1R8NBA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVAFe-009QoO-8a; Mon, 05 Sep 2022 11:26:50 +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)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 56A9A3001FD; Mon, 5 Sep 2022 13:26:47 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3CD2423643B27; Mon, 5 Sep 2022 13:26:47 +0200 (CEST) Date: Mon, 5 Sep 2022 13:26:47 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org, Tim Chen , Josh Poimboeuf , Andrew Cooper , Pawan Gupta , Johannes Wikner , Alyssa Milburn , Jann Horn , "H.J. Lu" , Joao Moreira , Joseph Nuzman , Steven Rostedt , Juergen Gross , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann , K Prateek Nayak , Eric Dumazet Subject: Re: [PATCH v2 37/59] x86/putuser: Provide room for padding Message-ID: References: <20220902130625.217071627@infradead.org> <20220902130950.205726504@infradead.org> 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 Mon, Sep 05, 2022 at 09:16:43AM +0200, Peter Zijlstra wrote: > On Sat, Sep 03, 2022 at 10:26:45AM -0700, Linus Torvalds wrote: > > On Fri, Sep 2, 2022 at 2:46 PM Linus Torvalds > > wrote: > > > > > > Hmm. It doesn't look too horrible, but yeah, fi it still ends up > > > getting the same padding overhead I'm not sure it ends up really > > > mattering. > > > > Oh, and I think it's buggy anyway. > > > > If there are any tail-calls to a leaf function, the tracking now gets > > out of whack. So it's no longer a "don't bother counting the last > > level", now it ends up being a "count got off by one". > > See validate_sibling_call(), it too calls validate_call(). > > (Although prehaps I should go s/sibling/tail/ on all that for clarity) Ah, no, you're right and I needed more wake-up juice.