Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp1234374rwb; Sat, 3 Sep 2022 10:57:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR5z+robWAqZdbiX/QOJlKwtvuJip5J1ys6k94YMe8Lr2/Ccx2WtVg24luuHKeFRnjTfNNKX X-Received: by 2002:a17:903:245:b0:16f:85be:f33b with SMTP id j5-20020a170903024500b0016f85bef33bmr40851846plh.96.1662227851755; Sat, 03 Sep 2022 10:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662227851; cv=none; d=google.com; s=arc-20160816; b=RJ/S5KGiMZKDv0vY9QIK4rYhqv1mn+U/PtehksBdM0yrwhH2tfIQwUsLR0Td0vO5+B 67kUxihw9wKiDX6BeeXUFVvQfPDCERQfOhK7w7tPU2ytoLq+c2b/lk0cAnW5+UxGY0jz TKiZVFtpmnHkryZIlMSk9gJC+RvxyyLmV5ZODix5Ugijp5NF6LP/rF/OtKOHe0dX1s2c 0qTZVMf3pHRtQ2mi3vPI7FNPL7d7E2SGAVaImTjp0I9YpVBDcKuuL9mHznoR3Z5+CFkq UDeFnVEbKgNR7kM4s0xemc2ZtMytRqZlQ2nKhd3hEwM+G20psYhbHZSf1BIL3VDf1vqg 94IQ== 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=6Zew9P4ZCPse5+99+pbN99tpIeaKYGurGm8E2KQ/Iqc=; b=GJ9HI/tMY2XW9HTdUX3OtLurm8O2xROGHRCTqjoF1aHOG8ExhBVMKv17hEyLYYi/oo E9YnFyMgjSIuIzkUxyZXqqFaF0d8Ujk+u0FpBaNVax+uZuyN5nKXLFGAKvjaoK+XhCu7 5duVkAxnRGnyTNF4p1bM6mH+qFq17j7AwzHHGowh6y5AQoV42BP3Bh+AeFqxPWsBCeUz UMZ90SQdvvAmZXbWEuzouzQReiquv+72jAPsIFSkSq6Rz5wY7ZDRTwMcbmXJxoswOB5s rpPJp57c/7jc+nYkWX60SLvQ5J10pOIy34LmHoCMetiz+9NX0CuGiJXI/nQHeaiU/iOv emOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cLoOMXVE; 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 t17-20020a639551000000b0042b45077b64si5705430pgn.675.2022.09.03.10.57.13; Sat, 03 Sep 2022 10:57:31 -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=@linux-foundation.org header.s=google header.b=cLoOMXVE; 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 S231496AbiICR1I (ORCPT + 99 others); Sat, 3 Sep 2022 13:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiICR1G (ORCPT ); Sat, 3 Sep 2022 13:27:06 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 544E556BB1 for ; Sat, 3 Sep 2022 10:27:05 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id gb36so9442366ejc.10 for ; Sat, 03 Sep 2022 10:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=6Zew9P4ZCPse5+99+pbN99tpIeaKYGurGm8E2KQ/Iqc=; b=cLoOMXVEzLAYI6/u/OLVdw/Cd5F6Ag28KB2pq2gZzugt2NlOgYAFEH+4THRyDfciWk WUh9eLW5+O/oVLjJn36zqO0hZp5iQlIc1ZMBBAL9xg7AGgTx0jGH/R4cSWVPM8mDR9gY R+Krqcgfx0+ZnW3d/8AWDjpCgyBNhnjUMmHhY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=6Zew9P4ZCPse5+99+pbN99tpIeaKYGurGm8E2KQ/Iqc=; b=e24Zj1ux5N4C0aB1BE9yTc9uSeaH+L6aT/+JP0jSk3YkfloG6Zc0lWHuedx5WBKZ2+ asBDoq8gav4Eh2US84q7FpnSvlBrQsgF5dWlwpBRPKdCWR7tmSfClsgkzlxXxLu56Lzk 5xUoSr96UoxkDjRHeMy9DGQdLXQHgUGWoHrR1KKLlNBHcYlPGdjPsm2qIXqAeligqyIs KLwBn+93fCKx8Y9neU8dPMvG+OOp/liqhUA2Mjs5UFnm53r1hon9x25I5LtOh0aBSqW1 7gvXp1TIRu8nHOMPWYbvvfqYEqGgsVhNk8CyIlPhYwqpJFalKjpEO8wJzeGZJFu2Z4Rg Iwew== X-Gm-Message-State: ACgBeo0nNiIuAj2NqrQJkOsjXGY3t8XPJ2gL2lVQRsK4adOMUa1oCE+L geuVxzeWAy79yxZoc0+4jSu6xk1pWzGP9A0Ycxk= X-Received: by 2002:a17:906:c154:b0:733:197:a8c with SMTP id dp20-20020a170906c15400b0073301970a8cmr31222281ejc.483.1662226023582; Sat, 03 Sep 2022 10:27:03 -0700 (PDT) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com. [209.85.221.53]) by smtp.gmail.com with ESMTPSA id q17-20020a1709064cd100b0073d678f50bfsm2706764ejt.164.2022.09.03.10.27.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Sep 2022 10:27:02 -0700 (PDT) Received: by mail-wr1-f53.google.com with SMTP id n17so6032135wrm.4 for ; Sat, 03 Sep 2022 10:27:01 -0700 (PDT) X-Received: by 2002:a05:6000:1888:b0:222:ca41:dc26 with SMTP id a8-20020a056000188800b00222ca41dc26mr19318106wri.442.1662226021197; Sat, 03 Sep 2022 10:27:01 -0700 (PDT) MIME-Version: 1.0 References: <20220902130625.217071627@infradead.org> <20220902130950.205726504@infradead.org> In-Reply-To: From: Linus Torvalds Date: Sat, 3 Sep 2022 10:26:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 37/59] x86/putuser: Provide room for padding To: Peter Zijlstra 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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". Oh well. Linus