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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39008C46467 for ; Tue, 10 Jan 2023 04:58:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E9008E0002; Mon, 9 Jan 2023 23:58:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 399328E0001; Mon, 9 Jan 2023 23:58:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 260758E0002; Mon, 9 Jan 2023 23:58:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 1AB708E0001 for ; Mon, 9 Jan 2023 23:58:47 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DD6401C9412 for ; Tue, 10 Jan 2023 04:58:46 +0000 (UTC) X-FDA: 80337684252.20.5B61CD2 Received: from mail.eskimo.com (mail.eskimo.com [204.122.16.14]) by imf18.hostedemail.com (Postfix) with ESMTP id 001151C0006 for ; Tue, 10 Jan 2023 04:58:43 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=eskimo.com header.s=default header.b=CzvlkD0w; spf=pass (imf18.hostedemail.com: domain of nanook@eskimo.com designates 204.122.16.14 as permitted sender) smtp.mailfrom=nanook@eskimo.com; dmarc=pass (policy=reject) header.from=eskimo.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673326724; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=2Px0M7YyqlaKTCVUgR/Ohzq0hI9yqWISWDW7GfN+t6o=; b=amVf6JW3Uajr5zvV5eu578ttb/mAgct7TW+s5plNNCvRQXFJpCK9dMQrC4GpHrw4xKg4zQ rKbEaOh9qvg9Ps5GFeu+jr2yJ/cLZa1uGDDuyN8/xytq2bAu8wF3W+1PgPjNjXUCSniXqW 7r2sxSqdHY1U/UNfFBilaRlFKm7xoIE= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=eskimo.com header.s=default header.b=CzvlkD0w; spf=pass (imf18.hostedemail.com: domain of nanook@eskimo.com designates 204.122.16.14 as permitted sender) smtp.mailfrom=nanook@eskimo.com; dmarc=pass (policy=reject) header.from=eskimo.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673326724; a=rsa-sha256; cv=none; b=Rpwjgxf/bPiDUIYpagpRkBpFg2MsYmE2Db3hI2Urz0M6WgN3h1hOJw+Y2GEFCrq9+u2bx5 V+jujwNiM7MeM3WNFvBZmvYpXR2C7MHi82aQhue68H0pt/mmnYey/EQ0QdGgH7UgD8Dtwt k7L+OQxrR42j3M3Npt8wTUFv5EPDa0I= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eskimo.com; s=default; t=1673326722; bh=22OwVhxJiGzuJaAJkkKOQM5ioizHINxuOUVdQogg1Dc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CzvlkD0wm38j3TlLuuN+UEFLgf57lg+Gix2PWK0EyuGZK6JxYVCnHuq3vHDc/bKMP +ZpEsa90cagwi8IZlZ7de7m54snYIcXQn3ycWmulolKcajiGGkhXwdUpWsh82Yjixb siO0omuMHNYuXNKefOYTtYigau9YUGun/46dTYna0VG/20ye28XTiUhOr5judAVMOc obwhv6lvJ/cxSWZnBeSLztDKQXahuZAnr383hvOFUn/OGoUAs8l80XDtXnle8q7UdF mHv/eqwQEgD/ue0cdJPMI5u4KGS9PIgt9ye31fz01ePu3+w2Vhz3oPLqW+HlWY2T7Z +FGqIF1TXsYNw== Received: from [50.251.249.49] (nanook.eskimo.com [50.251.249.49]) by mail.eskimo.com (Postfix) with ESMTPSA id 439E43C14BF; Mon, 9 Jan 2023 20:58:42 -0800 (PST) Message-ID: <9acae081-9d4d-3dd5-8b2c-52c72592e81c@eskimo.com> Date: Mon, 9 Jan 2023 20:58:41 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [Bug 216905] New: Kernel won't compile with KASAN To: Andrew Morton Cc: bugzilla-daemon@kernel.org, Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-mm@kvack.org References: <20230109160929.1ecacff5fb8ca2b1ae25141f@linux-foundation.org> Content-Language: en-US From: Robert Dinse In-Reply-To: <20230109160929.1ecacff5fb8ca2b1ae25141f@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.6 at mail.eskimo.com X-Virus-Status: Clean X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 001151C0006 X-Stat-Signature: z1ncdery8fk15aquonord84nu15oicqu X-HE-Tag: 1673326723-636163 X-HE-Meta: U2FsdGVkX19ZL85XUlGVb+wLjN6XXaLqEcFjVOnPXsUo1ZbwH6PBTTLuJL18mgg1l1VtaYjo6hSqWP1fqYSF21VHil9vjDoNr4tePj6BL6j+kWEHb4SOCo2O7GgTkiPlUmc12vBIBeq3XElx8Pq9ig6YCGIq7Tb3dHwPEugyTrAfxlhtqfynHdoclugFzemHrV1Y6FknNA0Dydg08aMiH55kJ0N8iD3CyXXm45plS7XCiWxiLunQbHv2Usi+sLyPGf9AlUy/h2MDLLAAx0M/5ZXt/DNXf+5AvOlofAZjRon93Ta/t3KtBYFWHoS+gQwfCGwdM/hd9WZTNN5A+B75VXeSrQVfDIHzed3+x/1ZWGX3cswKPr59GqgnyQiOpEKwD34y/KTwuTg9ah1ZNjTz4Dok9wYvJmUntg5An0TV9zNNIvQRRtSxrZxkALkMbNwlwo0lOXGl8Jf9BnSNTqo+15HSoo/ul5Fftx/NW06mVkSlbZQP5P/A1hO96YxaomoEDjaD67w3HzAtvFhwGjtoULYB7VBDb7YSuK5RRwHgXUgb6ZNsNhmAz0JtoCEfeNSXvNjzJb1PllQGNlmCiGz718j99ERzGOhbfvcs5EHo/1gxc5Ngz2v0dGaeZ9LiAJ7/nqqzMMXhb8415ZNnIhSg7PU8TFoG9+dVtYdhu8CYVTau7dtVi3RUcfr/17Mbrq9KGIu5l+cjsaxv+/S/WMJzCltZip18K6S9ZwCTMyrVtvTtOEIqmTx4oq3Ufv9Wi9mph1OgtP4ja0YCDJmmeoC2ECte37J0TEh76bXZAmrlAJ1UidYFRnefYpM+ilzzeFqVoH8GqJEDNkux5UuSFqee1URQJkrDKpI2F9/rzXmBhCOTuc/CqIqpl8ghsVE4IRCq8sb+QM6qf6BFVSDEMJnwON9Sz6GWy2RmWZHyL0K9vwzNnd1k2PnT0nN66Fk3Qs/SB2T4+jCaZAh+rt+Dkwe +wVpHGcm rJuMc X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID:      Increasing to 2048 did allow kernels to compile with KASAN enabled.  I am curious why e-mail only?  It would seem bugzilla, a public forum would make this fix available to others who may be experiencing the same or related problems.  Interestingly, I could not locate the symbol with xconfig, had to hand edit the .config file in deference to the fact that it tells you not to. On 1/9/23 16:09, Andrew Morton wrote: > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > On Mon, 09 Jan 2023 23:42:40 +0000 bugzilla-daemon@kernel.org wrote: > >> https://bugzilla.kernel.org/show_bug.cgi?id=216905 >> >> Bug ID: 216905 >> Summary: Kernel won't compile with KASAN >> Product: Memory Management >> Version: 2.5 >> Kernel Version: 6.1.4 >> Hardware: All >> OS: Linux >> Tree: Mainline >> Status: NEW >> Severity: normal >> Priority: P1 >> Component: Other >> Assignee: akpm@linux-foundation.org >> Reporter: nanook@eskimo.com >> Regression: No >> >> Created attachment 303563 >> --> https://bugzilla.kernel.org/attachment.cgi?id=303563&action=edit >> These are errors when trying to compile KASAN inline >> >> Using GCC 12.2, can not compile a kernel with KASAN enabled, either inline or >> outline. >> The hardware is an i7-6700k based home brew machine, Asus motherboard. >> running Ubuntu 22.10 32GB of RAM but using gcc 12.2 rather than the Ubuntu >> compiler. > crypto/ecc.c: In function ‘ecc_point_mult_shamir’: > crypto/ecc.c:1414:1: warning: the frame size of 1168 bytes is larger than 1024 bytes [-Wframe-larger-than=] > 1414 | } > | ^ > lib/crypto/curve25519-hacl64.c: In function ‘ladder_cmult.constprop’: > lib/crypto/curve25519-hacl64.c:601:1: warning: the frame size of 1376 bytes is larger than 1024 bytes [-Wframe-larger-than=] > 601 | } > | ^ > lib/zstd/common/entropy_common.c: In function ‘HUF_readStats’: > lib/zstd/common/entropy_common.c:258:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=] > 258 | } > | ^ > > (etcetera) > > Increasing CONFIG_FRAME_WARN should fix this. Try 2048. > > Perhaps KASAN could increase it somehow to prevent others from tripping > over this.