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 CCDE8C5479D for ; Tue, 10 Jan 2023 00:09:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 55DBB8E0002; Mon, 9 Jan 2023 19:09:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 50D098E0001; Mon, 9 Jan 2023 19:09:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3FC158E0002; Mon, 9 Jan 2023 19:09:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 320D48E0001 for ; Mon, 9 Jan 2023 19:09:37 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EBC1C817BD for ; Tue, 10 Jan 2023 00:09:36 +0000 (UTC) X-FDA: 80336955552.18.F8EAC3E Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf02.hostedemail.com (Postfix) with ESMTP id 5667B80015 for ; Tue, 10 Jan 2023 00:09:34 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=VaHnQYT6; spf=pass (imf02.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673309374; 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=RuNPQHoZNIkbcEAHvs3amaLbPgJ8oEj2LUwxvAsuP9o=; b=FeJn6FNPHJIQkUt7DcdtOQnqJFoYn/ftwDkXmnNv6lVoNHC5zoRDANpSbxi0ds+Az8+SAM xchdq42TB/QDkRdZ5EDZXGevwyCjwV4uuLROhX9oYcEKhcDOofNlLQt8C6c+iEzWDs7uE/ 3Gi3mH76e99PyPEgHk3hOhkslWd7Py8= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=VaHnQYT6; spf=pass (imf02.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673309374; a=rsa-sha256; cv=none; b=FSRTVb8YDLzW4gHlGoh5Agwnfts7AlKX8DracCurjI2RtvZ9NFfcAk1QfQT88BTc66oTUs lJ1teM3HcL6oWzYNMCH8AU4RDw/ji1rgZ0ryCbFx/1Kz8YdexrK1wvB7CZPB5Z8kn6PNK6 RDbRPiu91RjTZZ1546FZPiL2hqBFs64= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 743FEB81094; Tue, 10 Jan 2023 00:09:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACE57C433EF; Tue, 10 Jan 2023 00:09:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1673309371; bh=LPvjVJC9U6ObrHLTHlvaI8wbIls/TnXf56+OpsjV57M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VaHnQYT6EmqrOg4dIat1PoRQb+7cEg82lzl/MWOj8wPMRtQP29YD2AEIDP1IH9yM1 XGiDnOCapfTckFrrPXyP6HaaYJ85QieIcH/jTfwuBKBAJFmaNBbQuhWFHmnZLa6V/o RANiQTFeJqzZymla8nrnh5ZPII3JRK5yEpPcw3Nc= Date: Mon, 9 Jan 2023 16:09:29 -0800 From: Andrew Morton To: nanook@eskimo.com Cc: bugzilla-daemon@kernel.org, Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-mm@kvack.org Subject: Re: [Bug 216905] New: Kernel won't compile with KASAN Message-Id: <20230109160929.1ecacff5fb8ca2b1ae25141f@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5667B80015 X-Rspam-User: X-Stat-Signature: t7x53btrm1hknks8d7qokgnx15rh78ox X-HE-Tag: 1673309374-898492 X-HE-Meta: U2FsdGVkX1/oTDNaAh9RETtt5SFAXT5aCJyWYHtzZQbWAZOfFBbLp/EFbh3UfOvCnL0f5TWSaDMAkxZBo5lRQEShgE7n0Jdft55BflVp6zCtpowayO6Xb+9pgypkb4GNHbNqP0XJtbBW1DhxRJCqIBAQAqh+17R15c27pJVDPqLTrcyZe6LQvXtkqZRdTSQ6w6w313b5hZS51wJmduY2Bx7mhqZLhaSXrey7DVF0PmaBa/lJtqRyePRtGkMQIJwsHmQ9o0MpI6CikUgWMNQ9kunYLiafizzHNehOr82Qk6qcW++LNZH+XwptXn8HggW78WGMQuWeNB2BbUOwJGsdpGnFezAWOQOcsH3mjj+nKXNqI1RTWId8vJdbuf/hJxYjlORRT/M8k0++jLR7PKNmAYH0hYlI9RveVjWzA8ZbwxcOmpcLwqH+MArdoZ7+I6H8zPM7YUQnTUF+Y8JRpEGDO4sXSc7bLc/mfWpranRwTX8Lq8WBt5d75TMQU2+LssDBXN+9miFQMUPn4CEPGkTTWIhk2wAgeecnMDE2mhJzB0psS2aR98bFnyBirsr8C8ABJ4R3bl114aOVQdpiaf++yRj4ctawsUXAWcKHVe9yB+rF25oKEFsiafsYi2hJruA4CJYwdtGm531/c+xBMEtA2K2/1qiP35vKrlLL0kVN6oCdo9saC15gtczJZPTse4UNHCuUZsilfxm4ogEq8h3BlOxUZaVNmLXOQK+/BYQtNobbJnS6zn63O6MEDsvjGNEBZv7w4gxE8OXVmKy36BtCDZ2Z9rwGjLmSJubM7dHniUzyoRacbMt6aP4b/pIBm+u8ElO4txajQ4y1gr6SSGjEat6yLTUAcVh7gTdfB+S59aS4Sh+iAz1r8rviguaTYJn/u5OT+9VVnSG/6tD1zxbNwp6AgZc4xfFx3YEZ0Ht5H8cepUFyR8uFztc3MA7zWfEaAnyRCdfKOdHcz/+AFj/ lTsxKlAu 81tdb2aPIikN1JawoXIgcrNwmpa5Nh6YW5mjERcV1xuaTvjgMa/4qdMHeMb9hDzt3fkp+jamLA+ADPZM1LwIGDiYIeryRuLDCSeC0LFjAmB5XIBodohJB5MEghD5XCJO693fepvZqzP+ARwo= 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: (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.