Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7801673rwd; Tue, 6 Jun 2023 17:03:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xw2vb1Spcylhprdq/oFwHHNXEojA5Urce8UGckrtsv52oS/yaZEtTBZpJOO39yrQxHaWU X-Received: by 2002:a05:687c:a:b0:19f:1df3:ffce with SMTP id yf10-20020a05687c000a00b0019f1df3ffcemr4662856oab.53.1686096215307; Tue, 06 Jun 2023 17:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686096215; cv=none; d=google.com; s=arc-20160816; b=vI7118KIkUB4V3X1tCBdEET1ZfODGgkEeCUitC6geaKw5JKvxUeTE0Xl66SOsV6vvf VR3zE8rMb4i1ecYnmDgxWyyXv6DCPJ13zCKLInY5qvc2soBrZYgl82lLjkM4sNcLuEGB L6XzWh3h+rRb8lstESvzebymskAz0xwsfpxVYglF/4/IPc6f5zpEB1zPQhFDKmRcjN9H fwuJLV1eMlu2eCGNV5aiJFrSh5+dsmyOu8c2o/0QeNM2kG3vRymhLivE1XkCOUTyQVVe 62LbO4rmEQCNyOvOHpEFXMkAPmlXN4km+bZyuqb5ZY79Z2zJJXGcG+rBbxYZlOmlxxeh SRKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=3b9xHSYvK1ODTV6BLAv0xVWIguRKDFcGaSug0CbiWIs=; b=0UXh8cWKG9wKGpipwsYaX++NAYfJJSC0VPoEEtzvqf6atQ7Ej1dqugCISR6kBgQjkc XFALKKCyO5tdw+0Gh4NLdTpn5CD3Thn/7m1TUozwfVb27KKvlViXgmhmQC3Cc3BFndFI 4fKWeLy3ZiQiux74s+PO2LYp1vcOsHDMqhpuUvpF4IvZg1rPOc/QZCL61XCky/0UonT2 7/Xd3kxGowRd2axtBlt2+q9/6+b1sOjc3f8JzSS6bHF4iO8Gq1FgaGkbpGzDswoYnVdX e2MFeo3BUwCTZQ/aJtCggVD6JFauQjG9YHjYV+lnj32CNjOYC9/aLSbXdouqmiByJ0+/ gX3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023051001 header.b=lp8OgYN8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6388c2000000b0053efcd2001dsi8141788pgd.422.2023.06.06.17.03.18; Tue, 06 Jun 2023 17:03:35 -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=@zytor.com header.s=2023051001 header.b=lp8OgYN8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240184AbjFFXJS (ORCPT + 99 others); Tue, 6 Jun 2023 19:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240177AbjFFXJR (ORCPT ); Tue, 6 Jun 2023 19:09:17 -0400 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6B91E40; Tue, 6 Jun 2023 16:09:16 -0700 (PDT) Received: from [127.0.0.1] ([73.231.166.163]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 356N8bGP252105 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 6 Jun 2023 16:08:38 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 356N8bGP252105 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023051001; t=1686092919; bh=3b9xHSYvK1ODTV6BLAv0xVWIguRKDFcGaSug0CbiWIs=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=lp8OgYN8Nx23gG0GBdp2+NF5VIeuZfk3Mo5Ojzsj+Y44jqyrVWIXOicehW2aKzVJp JqFVYxvpJSaQFciKtVPgROBTG6n5uMKrQ6XoszEuB3DWKLw+1FGssXStL/WYAbnSjM xR9oSt3qQchjTQTOHfpRuqCsHOlLmuaOY2ak401nGV7DVp1YPEoS2MNQWNvlvTvlfe Rt2E4Aw/ApX/GWC6zg+8n8f19g4//QqSuOvoc6idSr0BNyxoWM3XhyXGMqzAQs4jG6 fFhB4o7T7ttvr6C2S/EufWurDsgxwhVNLkJhqTWJeFA2AZaQpwTJC0tnaNCs3RR/vS WhCwJC/MmG/Pw== Date: Tue, 06 Jun 2023 16:08:34 -0700 From: "H. Peter Anvin" To: Thomas Gleixner , "Li, Xin3" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "kvm@vger.kernel.org" CC: "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "peterz@infradead.org" , "andrew.cooper3@citrix.com" , "Christopherson,, Sean" , "pbonzini@redhat.com" , "Shankar, Ravi V" , "jiangshanlai@gmail.com" , "Kang, Shan" Subject: RE: [PATCH v8 30/33] x86/fred: allow dynamic stack frame size User-Agent: K-9 Mail for Android In-Reply-To: <87fs74lo02.ffs@tglx> References: <20230410081438.1750-1-xin3.li@intel.com> <20230410081438.1750-31-xin3.li@intel.com> <87wn0i578t.ffs@tglx> <87fs74lo02.ffs@tglx> Message-ID: <0CE0EA20-DCD8-43D0-8C66-562207CE0F97@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 June 6, 2023 6:27:25 AM PDT, Thomas Gleixner wrot= e: >On Tue, Jun 06 2023 at 06:18, Xin3 Li wrote: >>> > A FRED stack frame could contain different amount of information for >>> > This approach also works for IDT, thus we unify the code=2E >>>=20 >>> And thereby remove the useful comment and replace it with an undocumen= ted >>> macro mess=2E >>>=20 >>> I'm simply refusing to review this=2E It's not my job to understand th= is >>> undocumented hackery=2E >>>=20 >> >> I believe it's a nice idea to allow dynamic stack frame size, at least = for >> FRED=2E > >Believe belongs in the realm of religion=2E What we need here are proper >facts, explanations and justifications=2E Nice ideas are not helpful when >they are not having a value=2E > >> It's totally my bad that I didn't make it meet the minimum standards, >> I will rewrite the commit message and add better comments=2E >> >> After a second thought, I probably should only apply the change to FRED= for >> 2 reasons, the change seems problematic with ESPFIX (which FRED >> doesn't need), > >Indeed=2E Making this FRED only is going to need even more justification= =2E > >> and such corner cases are hard to test (self-tests needed?) > >There is a test=2E It's not that hard to find: > ># git grep -li ESPFIX tools/testing/selftests/ >tools/testing/selftests/x86/sigreturn=2Ec > >Thanks, > > tglx For what it is worth, I am working on a FRED forward compatibly document a= t the moment=2E