Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7142950rwd; Tue, 6 Jun 2023 07:00:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dR0l3v7H57s/+ySTee+ts491yYb5T4Wr9+M2M8+MzCp0uvGFTRpBlMZXdOJA+1vZfQwyG X-Received: by 2002:a05:620a:8294:b0:75b:23a1:43c with SMTP id ox20-20020a05620a829400b0075b23a1043cmr2078077qkn.2.1686060032079; Tue, 06 Jun 2023 07:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686060032; cv=none; d=google.com; s=arc-20160816; b=bvy5tOA8nF7UQBwyK/g4eJIgma304YKgLWpmNIXVjWfWmaBX6ltkmFZUGfKz9mKg8z CqV8LSvES4kCr1Kzp/D+w+yxKC9sNDE2CM6ZGyRoaecPJz1yD+tzbsVFXEC4GTYrHmy0 fZnrAi1ZNN5/IboEFKDAbbeerhzJXJ13ZF5iTmcVRJXeMUUAvZB/7HloF/EReg6OiQDY kkVro4bvLVcSJfHWQkQOxcmavweM2pFDBpqBMzEK9YrdyxJMOJQoekHGQB61oM5o/buU Spp0OEXZwKGsnyn0nHInPzq3hRC7cvucP4I0FITEH9EnHZxwnPpl5gs+uHyCWK+o53d+ xX4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=4GE9WjdAFKVw1j/LBC/tJ3tEETtCjZm6/3ok9EzRiww=; b=tg2Y5CTWKxrivnkeYwo2SVK4tN+7USqiwAFSfDvY3JMFgWkxCfDluFN2kEcAKwAkyT aJ+4HX7DaHFVaZEbRVE6/lE+ubVFmXCn+M1xMlPqXmEjeaG9j5Lza8chv5TU3Uj5YyzV UfpvHiz086PHR8FpJQaM0YTUIy6sjvWwFHdyhZvkbuIE0Kbg/LFvr1m/g4zrctYq3CLS UKDYnRck3Icled5xLeqoY1OnuDcLlebVsmb9Jeh3tuaIfDU8v8ZllLPCMgtPAtm3BzpW 8jrBpWYIiyvmELa6xRoyDXmw164FGK+C/dtywUj4zxUkgSgGMUvhIboguzMZa7QdwZU9 n/rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=w5R70kFW; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a05620a030e00b0075d422ab619si4428816qkm.661.2023.06.06.07.00.15; Tue, 06 Jun 2023 07:00:32 -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=@linutronix.de header.s=2020 header.b=w5R70kFW; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236400AbjFFN1a (ORCPT + 99 others); Tue, 6 Jun 2023 09:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231431AbjFFN13 (ORCPT ); Tue, 6 Jun 2023 09:27:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3521118; Tue, 6 Jun 2023 06:27:27 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686058046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4GE9WjdAFKVw1j/LBC/tJ3tEETtCjZm6/3ok9EzRiww=; b=w5R70kFWsU64r33qYY+R3GNo4WBUNJSWY3CITWeMB8Ho1DaAglb56jHjjyHPUdrv0xPFtI 5mVQK8m+4uvVDtb0PQ04IOvf+Nxe7vbfrUesgfPsikP/YsWsH1P+FFdWBwyfUf64h/LZvF fFWNnm46QdtmJKPKnu3m2XwFtDTmwbhp7seekB0dxQ0yqEfBGFF+GFsXK/orl1Zzr2DUFn LhZDlI+aJNabFjlfG0h5Mt8G9qm4kNPmhx4HrfCLjDkr4/hDh3LJHMXkniebEdr9m9IiFf dQ6EmrUfZn0XPcSvFtp6RdIiC65U8/2DYMYqMqHFTELKgtQh4HlM7H7+2EIvVg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686058046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4GE9WjdAFKVw1j/LBC/tJ3tEETtCjZm6/3ok9EzRiww=; b=te48p/rqwl0Wh/jc2Vr4qpI19ykvDLPW9ambOLCElI800bdN5cVIUOd3midi7weyXM/aaQ uWeQsj/BVGfDvRBA== To: "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" , "hpa@zytor.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 In-Reply-To: References: <20230410081438.1750-1-xin3.li@intel.com> <20230410081438.1750-31-xin3.li@intel.com> <87wn0i578t.ffs@tglx> Date: Tue, 06 Jun 2023 15:27:25 +0200 Message-ID: <87fs74lo02.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain 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_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 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. >> >> And thereby remove the useful comment and replace it with an undocumented >> macro mess. >> >> I'm simply refusing to review this. It's not my job to understand this >> undocumented hackery. >> > > I believe it's a nice idea to allow dynamic stack frame size, at least for > FRED. Believe belongs in the realm of religion. What we need here are proper facts, explanations and justifications. Nice ideas are not helpful when they are not having a value. > 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. > > 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. Making this FRED only is going to need even more justification. > and such corner cases are hard to test (self-tests needed?) There is a test. It's not that hard to find: # git grep -li ESPFIX tools/testing/selftests/ tools/testing/selftests/x86/sigreturn.c Thanks, tglx