From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by sourceware.org (Postfix) with ESMTPS id C890A393A41B for ; Mon, 3 May 2021 13:06:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C890A393A41B Received: from zn.tnic (p200300ec2f268e00dd8a2da2f8721c37.dip0.t-ipconnect.de [IPv6:2003:ec:2f26:8e00:dd8a:2da2:f872:1c37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id AD0D91EC0246; Mon, 3 May 2021 15:06:09 +0200 (CEST) Date: Mon, 3 May 2021 15:06:07 +0200 From: Borislav Petkov To: "Chang S. Bae" Cc: bp@suse.de, tglx@linutronix.de, mingo@kernel.org, luto@kernel.org, x86@kernel.org, len.brown@intel.com, dave.hansen@intel.com, hjl.tools@gmail.com, Dave.Martin@arm.com, jannh@google.com, mpe@ellerman.id.au, carlos@redhat.com, tony.luck@intel.com, ravi.v.shankar@intel.com, libc-alpha@sourceware.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 2/6] x86/signal: Introduce helpers to get the maximum signal frame size Message-ID: References: <20210422044856.27250-1-chang.seok.bae@intel.com> <20210422044856.27250-3-chang.seok.bae@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210422044856.27250-3-chang.seok.bae@intel.com> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2021 13:06:14 -0000 On Wed, Apr 21, 2021 at 09:48:52PM -0700, Chang S. Bae wrote: > +void __init init_sigframe_size(void) > +{ > + max_frame_size = MAX_FRAME_SIGINFO_UCTXT_SIZE + MAX_FRAME_PADDING; > + > + max_frame_size += fpu__get_fpstate_size() + MAX_XSAVE_PADDING; > + > + /* Userspace expects an aligned size. */ > + max_frame_size = round_up(max_frame_size, FRAME_ALIGNMENT); I guess we want pr_info("max sigframe size: %lu\n", max_frame_size); here so that we can keep an eye on how much this becomes, in practice. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette