From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A11AAECAAD5 for ; Mon, 5 Sep 2022 11:27:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238148AbiIEL1X (ORCPT ); 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: 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.