From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B44E0C77B7A for ; Wed, 31 May 2023 10:13:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235838AbjEaKNC (ORCPT ); Wed, 31 May 2023 06:13:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235839AbjEaKNB (ORCPT ); Wed, 31 May 2023 06:13:01 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D5A110B; Wed, 31 May 2023 03:12:54 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id B76AA32009A1; Wed, 31 May 2023 06:12:51 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 31 May 2023 06:12:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type: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=fm3; t=1685527971; x=1685614371; bh=gL q2gHiJM+KP1+NdSFVehsgQGj4GYd9hBZy1RUFLs0Y=; b=DEcPru7BTgdHj70sAp LGx4H6mvsBm+vApV8FhA2+5LYsNWA7mVHokhzH/l0mhX0NjpJKnxEXQuelTZqzs5 57qLlYMpiHW2gp7E7l7iekXWtCjz6RyWJo+9k7Av/va/c+3OQETPxekb+UDZTHaW S226KvUwFti06hkzjW5rHLzxYwJVj1WGE08Zy6L3QA3BvhiP6/CV5kjUreQJisf8 HrXkrcrcmgsCfrRd2bYg6X3XCQMVuaOieWbNV9FgRlYUKfyVrKGDtLCN5oMixvmu PD1qcCfFH5bopnUWA7yIc+0YBNocxDf2W9iU4VQXz3NCFQqw+zLZOZRjSONM/1de KKnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=fm1; t=1685527971; x=1685614371; bh=gLq2gHiJM+KP1 +NdSFVehsgQGj4GYd9hBZy1RUFLs0Y=; b=XpHnguzyG8jh82OblR0wPOi0HW7yq guz08WJU38YmvDPHVurY+G2eCezGVN+im9dV4n3bFqWWQfDbhPASvEIj6aMCiwCN GSWvS4XVdwCJsehHG/5rfhjtNApBS/n2LQQKc4EqvhwboYsFOiFpKy0iEgbcUyv0 jSTG2oETo6GQoez4hG5QXfeMxk65T1IXZSUh2miiUJYijI5aQSWmU8V4XtwJiaHE LjAMdpx3jjPfjsu8tI7CXuplA+YzZ9mv0dqjZddEwuUlEqxNXneXk0q0qb0PQ8yv ljMgUQKdSTdFy16029xzDC6wLHGFIUR+ck4vpDTCXKhAhp9TAQXQX6DNQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekledgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id CA3DBB60086; Wed, 31 May 2023 06:12:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-447-ge2460e13b3-fm-20230525.001-ge2460e13 Mime-Version: 1.0 Message-Id: <33173e7b-0ec0-4a1e-9533-0d3b6eb4c8ce@app.fastmail.com> In-Reply-To: <41c61895-59f4-449c-9e2e-d127d7f95be5@app.fastmail.com> References: <4716f9fd-0e09-4e69-a802-09ddecff2733@app.fastmail.com> <6b1a0ee6-c78b-4873-bfd5-89798fce9899@kili.mountain> <2fce7746-6d63-4853-9b20-8fa0b24d6f32@app.fastmail.com> <41c61895-59f4-449c-9e2e-d127d7f95be5@app.fastmail.com> Date: Wed, 31 May 2023 12:12:30 +0200 From: "Arnd Bergmann" To: "Dan Carpenter" Cc: stable@vger.kernel.org, "laurent.pinchart" , "Hans Verkuil" , "Mauro Carvalho Chehab" , "Randy Dunlap" , linux-kernel@vger.kernel.org, "Nick Desaulniers" Subject: Re: randconfig fixes for 5.10.y Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, May 30, 2023, at 21:20, Arnd Bergmann wrote: > On Tue, May 30, 2023, at 21:02, Arnd Bergmann wrote: >> >> CONFIG_COMPILE_TEST=y forces a number of options to be >> hidden from build tests, which is generally super useful. >> The one that ended up hiding the stack growth above is >> CONFIG_GCOV_PROFILE_ALL. I'll try enabling it for a few >> builds to see what else shows up with it. > > Update: you already pointed to UBSAN_SANITIZE_ALL causing > this, I can confirm that this is also the case. With your > config, the combination of CONFIG_GCOV_PROFILE_ALL and > CONFIG_UBSAN_SANITIZE_ALL causes the compiler to completely > mess up register allocation in this code, disabling either > of the two gets it below the boundary. After a night of randconfig builds with both UBSAN_SANITIZE_ALL and GCOV_PROFILE_ALL force-enabled, these are the ones I found, listing only the worst size for each function (using gcc-13.1). None of these show up without GCOV though: crypto/twofish_common.c:683:1: error: the frame size of 2040 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] crypto/twofish_common.c:683:1: error: the frame size of 2336 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c:1589:1: error: the frame size of 1696 bytes is larger than 1400 bytes [-Werror=frame-larger-than=] drivers/media/platform/verisilicon/hantro_g2_vp9_dec.c:754:1: error: the frame size of 1260 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] drivers/staging/media/ipu3/ipu3-css-params.c:1206:1: error: the frame size of 1080 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] drivers/staging/media/rkvdec/rkvdec-vp9.c:1042:1: error: the frame size of 1660 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] drivers/staging/media/rkvdec/rkvdec-vp9.c:1042:1: error: the frame size of 2176 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] drivers/staging/media/rkvdec/rkvdec-vp9.c:995:1: error: the frame size of 1656 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Arnd