Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3144346rwb; Fri, 16 Dec 2022 10:38:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Gldp2idvv2DzT616KzS2W1Ga/NrWFtUaV2hBb2U8mBMclrzGI8R909DULVbNxYDj7gDSt X-Received: by 2002:a17:906:3b5b:b0:7c1:528:bc02 with SMTP id h27-20020a1709063b5b00b007c10528bc02mr26724838ejf.41.1671215881947; Fri, 16 Dec 2022 10:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671215881; cv=none; d=google.com; s=arc-20160816; b=FXe49z+YXA6ibDPrzA9t788yVaTyjB1LLZL1bSxHO1lJvThiT+l459o5Pzoq44fURN Fbksszg/sqeMfWv5J142KXtrlrzbAn7vDFZlXZPUarXmd31ZmFtuEA0U8x/qDC8CFiKV 4qbd7c8oyG/1rqTSrtFubtUbwrX8Fa+ip5xob5XqQU+mwnwW2lKarCQH3ImaME+143aC ccSSozJtBo/w0FFJ18v0EkqrQ60FxKomDWpjQ+j53zmXxZ0koNJk6n5EoMLsa1gqFY9b DMalgARZkksDiLs0zayyZQAomDC/iZRo5BYQgJ1SgKV3dT/Xs5ueMiX7SVt1fcz0IUmA gKmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=ufIy2Gx0EmOXpkDAuEw/RWh0UGiPvw4YnMU8O/VoizQ=; b=pKWshPdESw5jzg5558rn0+YbmuvokgIhtJkxxZrZudoZxMLGe713Ho1cY51oCC7kQH d4dgHWHqwGFHq8LUM0GVBM2fsDaad0YwgOKKJbxqzo9UyMw10KGdnqP4Q3y+1l7kHMk5 RMqEtl1vhCB+93pXPlsL+va6d4WZoeSf9uyGuJIRLTUTzeWFXI84U0964Gob6AeqYQ/i ra4ZePFxmE1RLem7+H11bgRol0zrbcJSXin5JbSgIpC20iPFzfrI4hhMAnRHtB3tkGvb JJKFVV1SiuU9My3w/ucNXpfXgweB8rzltPNb43ZmgcarC+Xllx28V0GftaUxTTSKFl0A cDiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=fzWr716T; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vOZmNWey; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 hb20-20020a170907161400b007c0cb3c5a70si3505642ejc.650.2022.12.16.10.37.32; Fri, 16 Dec 2022 10:38:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=@arndb.de header.s=fm1 header.b=fzWr716T; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vOZmNWey; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231578AbiLPSaR (ORCPT + 99 others); Fri, 16 Dec 2022 13:30:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbiLPSaQ (ORCPT ); Fri, 16 Dec 2022 13:30:16 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BD9D10B5D; Fri, 16 Dec 2022 10:30:15 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CE5CF5C011B; Fri, 16 Dec 2022 13:30:14 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 16 Dec 2022 13:30:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1671215414; x=1671301814; bh=ufIy2Gx0Em OXpkDAuEw/RWh0UGiPvw4YnMU8O/VoizQ=; b=fzWr716TH55LX4yLPMQNBfMmQ9 W1ba6t6lfvEud9Id1MVtcfXNLRhZGoXcPjUQTwZsXE6fqF4A9a1Lb1dTlr80lrki zVSTypcQ+Jh4qIkJJUi/PSUAxnniNaMH7FyDrkQtnykKNmV8P3wXcAHw2Efm044O /6aQae3X13EOpiGx2pCaZIRCN5cCnKjXRtV3BNaTCQ+u27+SBLwTm9EJTJRJekyE 3O5KAxF+G7J77kM8azuJXAQegobSP+fGlraHkV/Irhg+ShSpRjMSOICRz2Z7Sc2n H53abjAzt12r6EByr1YJ+wSbujEVbi9/i6V49csI8OwMP8fTEdZXkXi05EWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1671215414; x=1671301814; bh=ufIy2Gx0EmOXpkDAuEw/RWh0UGiP vw4YnMU8O/VoizQ=; b=vOZmNWeyUTHdDlMVEkkqgToYsS1/K1D9bJCNPfj1Np98 1tu651qvHfSdIKySYtUgu2d+GgIjpbdf2INkolpqqbgPliRMSxhhoNKlcrNkGqHx nwl9qKtPKa6gkLwlRz91gs1tW4PnJlYcplTRzC+kFdbh0WRfmGPr5DXdAIHsMAAT DjP7yxqHYYME3YdhoFVf+0YDLTlTRpS3vPLZvYgywnLPDlwoQwnOqzFVk4tlHBdJ DC+BiDU6biGCSZOfjgwyXM9+YTNcwoaBCcx/VI6hEagQaXnwSkr+/STy9R9dGSSr RkEbyPAWa/CihsMItKvP5hsAVeRvhHPqSu60wTY0Rg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id EE344B60086; Fri, 16 Dec 2022 13:30:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1185-g841157300a-fm-20221208.002-g84115730 Mime-Version: 1.0 Message-Id: In-Reply-To: <20221216160841.2061759-1-glider@google.com> References: <20221215162956.4037570-1-arnd@kernel.org> <20221216160841.2061759-1-glider@google.com> Date: Fri, 16 Dec 2022 19:29:53 +0100 From: "Arnd Bergmann" To: "Alexander Potapenko" , "Arnd Bergmann" Cc: "David S . Miller" , "Herbert Xu" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: wp512: disable kmsan checks in wp512_process_buffer() Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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-crypto@vger.kernel.org On Fri, Dec 16, 2022, at 17:08, Alexander Potapenko wrote: >> The memory sanitizer causes excessive register spills in this function: > >> crypto/wp512.c:782:13: error: stack frame size (2104) exceeds limit (2048) in 'wp512_process_buffer' [-Werror,-Wframe-larger-than] > >> Assume that this one is safe, and mark it as needing no checks to >> get the stack usage back down to the normal level. > > KMSAN indeed bloats the stack frames heavily. > Wouldn't it be more preferable to further increase KMSAN's > -Wframe-larger-than limit instead? > It is not intended for production anyway, and detecting a runtime stack > overflow in the debug mode should not be a problem. I don't actually see a lot of compiler warnings with KMSAN hitting the limit, I think we can deal with them individually. I'd rather not raise the limit more, as that makes it harder to identify functions that use more stack than they should. Arnd