Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8411043rwb; Tue, 13 Dec 2022 06:08:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Y7Obgpk0jqp+TJciJMCGyslyfOdrfYoeUyduDir+LUzxFLR3tyF9tUUznjYrPepPyXL9w X-Received: by 2002:a17:90a:f2d6:b0:219:f351:d55 with SMTP id gt22-20020a17090af2d600b00219f3510d55mr20069206pjb.44.1670940528934; Tue, 13 Dec 2022 06:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670940528; cv=none; d=google.com; s=arc-20160816; b=FfoWYl8xCd/q/usC2oSXh+BQysh6WXwDvuYQlrD68QEmo+KC0d2u4+cxGYrTNHeKbB sYhyQ6R5PUOzaNweAKkaUaX6edN7KHA3p9C4+hvBlKKvzYOOnmeHM4UNzeP7FEKckeIH mJDZXBcxjFZEJpmyrF4WT9JQWX8UsZ5F+7q11vxLlJymhe9MriGPv/dkX5tzkbwIXiZ4 NvyzX1GnG4P7r7klPial6VApyfTVhUXeE+sf5edC/cBcNJBnReV3mmeO4NfWREIbUDA+ zkmHyqRilcQjGQptzL/N1gjOeMP9bgC7zMPlvaUBD9Dw2EGDQ4dUYBxf27bhRjNTFx+U BHuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=2t/UYI9MSV5VugIDUL9AEWRw4BbvAyzLCXl4/1d9eQs=; b=DKprpKhSYiOh/k6hGuGy8Dy47/tTDJBvNasOxldBpe04aXJ/ppFvwWLsuHrfljVq+o LZTdV1omC5JP7NObORyWAxicM+5TsqTPLluelln/Ds9KSK7MnR71lcsWtl61r78lEeNs BedTS3xA16xED8DFS23Jv5NlCP51HlbLL5rqRE6PrXVSet3enTnSiLQ9Y3nbitPz4BDd ImaWUEHMPGxmM/CMPcC9X3DD8pEM1vpzBOLpCOYLDej935s4b2V0O4Q+cavRmarWPHOz pm6lpGPcpKkZNcCWOzfy1ksousnd6jWzsXyZhLJHrAK2js4PnVxRovyzMPk3k6ZR7CIl /1Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=POrVO0Y5; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 a21-20020a63e855000000b004787836f4b4si13747531pgk.420.2022.12.13.06.08.38; Tue, 13 Dec 2022 06:08:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@suse.cz header.s=susede2_rsa header.b=POrVO0Y5; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235705AbiLMN2K (ORCPT + 72 others); Tue, 13 Dec 2022 08:28:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235603AbiLMN1v (ORCPT ); Tue, 13 Dec 2022 08:27:51 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 466311A044 for ; Tue, 13 Dec 2022 05:27:49 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id EFBF0228EB; Tue, 13 Dec 2022 13:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1670938067; h=from:from:reply-to: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; bh=2t/UYI9MSV5VugIDUL9AEWRw4BbvAyzLCXl4/1d9eQs=; b=POrVO0Y5rm0fbk1MTDw+nSOp5Jmj+PXDcehIEvohtiBsqGXkE5AWRV3Wmp9B49n/YCzgA2 7TKu7GCB+ZiiHv1wIwgMcVjfjuhlWLEuCi9Z8q4/2Xr/2utSu3t+UMbYYDOB6Ev+mH02dk p2dU4OcBPgY5t7YjHLoKWv14F0BwNMw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1670938067; h=from:from:reply-to: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; bh=2t/UYI9MSV5VugIDUL9AEWRw4BbvAyzLCXl4/1d9eQs=; b=5c39LK8d0VE6+u9icsbvftW8M943k6yLUofds0ZyVTr9JPSZyG3yTvXWOxFQXEXhhINCZZ MO9Ww1cZKW/yfhDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C7810138EE; Tue, 13 Dec 2022 13:27:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4xX+L9N9mGPCTQAAMHmgww (envelope-from ); Tue, 13 Dec 2022 13:27:47 +0000 Message-ID: <48cd0d18-a13c-bf20-e064-2041f63b05bf@suse.cz> Date: Tue, 13 Dec 2022 14:27:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: mainline build failure due to e240e53ae0ab ("mm, slub: add CONFIG_SLUB_TINY") Content-Language: en-US To: Guenter Roeck , "Sudip Mukherjee (Codethink)" Cc: Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Andrew Morton , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds References: <20221213131140.GA3622636@roeck-us.net> From: Vlastimil Babka In-Reply-To: <20221213131140.GA3622636@roeck-us.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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-kernel@vger.kernel.org On 12/13/22 14:11, Guenter Roeck wrote: > On Tue, Dec 13, 2022 at 10:26:20AM +0000, Sudip Mukherjee (Codethink) wrote: >> Hi All, >> >> The latest mainline kernel branch fails to build xtensa allmodconfig >> with gcc-11 with the error: >> >> kernel/kcsan/kcsan_test.c: In function '__report_matches': >> kernel/kcsan/kcsan_test.c:257:1: error: the frame size of 1680 bytes is larger than 1536 bytes [-Werror=frame-larger-than=] >> 257 | } >> | ^ >> >> git bisect pointed to e240e53ae0ab ("mm, slub: add CONFIG_SLUB_TINY") >> > > In part that is because above commit changes Kconfig dependencies such > that xtensa:allmodconfig actually tries to build kernel/kcsan/kcsan_test.o. > In v6.1, CONFIG_KCSAN_KUNIT_TEST is not enabled for xtensa:allmodconfig. OK, so IIUC - e240e53ae0ab introduces SLUB_TINY and adds !SLUB_TINY to KASAN's depend - allyesconfig/allmodconfig will enable SLUB_TINY - thus KASAN is disabled where it was previously enabled - thus KCSAN which depends on !KASAN is enabled where it was previously disabled - also arch/xtensa/Kconfig: select ARCH_HAS_STRNCPY_FROM_USER if !KASAN > Downside of the way SLUB_TINY is defined is that it is enabled for all > allmodconfig / allyesconfig builds, which then disables building a lot > of the more sophisticated memory allocation options. It does disable KASAN, but seems that on the other hand allows enabling other stuff. Is there a way to exclude the SLUB_TINY option from all(mod/yes)config? Or it needs to be removed to SLUB_FULL and logically reversed? > Guenter