Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10112295rwb; Fri, 25 Nov 2022 00:53:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YsmrjGfCix7zn4rZuRsAWBho95FRBKW0Ehpzbz5A4M2C8lHGEHrdHcsmQzCn5IHBvMNZY X-Received: by 2002:a62:3306:0:b0:56b:8181:fe3e with SMTP id z6-20020a623306000000b0056b8181fe3emr39319677pfz.57.1669366428994; Fri, 25 Nov 2022 00:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669366428; cv=none; d=google.com; s=arc-20160816; b=yeGV44s8GdaU+JlpJ5gERPki1JBTn/jNSiLu0N6FmwRhuwlhjwChJCv6XHxImMslUC leoz3xBbm0gd9ebp98am2w9m4mJJUpFy4LdwY1O9vezwty0T9zTygvM9JG3iDe+OtCoq NdQndGv191JFS83ashXXgJ+5K7myNMBuAFQ4fluVf3Mnbxjy7pfRc5ny+vQ/PQYr4jBN IfBufym0PNmeoXNJAjjFXdHI03uq8Rbz1rALcJo779vcacqv1nVS4SbgI10YwTGs/pXA OevOGxZlnH7/LlmrFvsUwnVkEn+WkX+CdC2S0TPGp7XqRavFWrUXKrC1Vh2Esqn82Ddx lj+g== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=nvdAlIgOG5yqCLw/uf3CjVt0knMtHQ2HViq7mDKGha0=; b=iRQy8Q3VRwIMrPVwJg9s5seD+E5w/Nin2xi8jZPMzNpL7Y798XaJclr6dB6RuXcmaG UurEP6mms/2GnDX1EMkbZiEahHX0V+eFE4UuHeXTnt/3VML7VrKSe6qbDtsskn8e0Nt7 HFUFocurdlLekCaOeVn1YwbyhyZ7UwhxHQLIFGv0ZHn5hI+zJEUVIRgIKYJYB7oAoi+7 7ri4F/brA7DH0+Tawn3Qt6cUCd057+HPnnW7PL83PvExD6VxwlwHZXn4/+ssd66jg6GG 6JjdcGtQq5+P1EWOd5oE+Fm53BByYbmNJ9asqGrQMVOEcnAQwWJcZQaxO5KZqdLz63Kd HYPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=UfA+KLDH; dkim=neutral (no key) header.i=@suse.cz header.b=hFbVrf2f; 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 n16-20020a170902e55000b0018907d64909si3528538plf.325.2022.11.25.00.53.37; Fri, 25 Nov 2022 00:53: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=UfA+KLDH; dkim=neutral (no key) header.i=@suse.cz header.b=hFbVrf2f; 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 S229606AbiKYHum (ORCPT + 87 others); Fri, 25 Nov 2022 02:50:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiKYHul (ORCPT ); Fri, 25 Nov 2022 02:50:41 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F2B01BEBB; Thu, 24 Nov 2022 23:50:37 -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 0D86E21AE4; Fri, 25 Nov 2022 07:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1669362636; 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=nvdAlIgOG5yqCLw/uf3CjVt0knMtHQ2HViq7mDKGha0=; b=UfA+KLDHvqCfxZkPL8VzkpPT/Fhn6znGTJkr9TAm8Df/6osHNjpPZL3bpjXCNW9Y6CO+bV 55yDsVYkDD1XCL4UB9UYWsXIiUbxJpK1nR1ijkPRl3MAS0DNrX3yo0Osn0cL7Uhod8zhw2 6Jmj/Fl9CPemw02qixisQW8yEpz74O8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1669362636; 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=nvdAlIgOG5yqCLw/uf3CjVt0knMtHQ2HViq7mDKGha0=; b=hFbVrf2fTew+nsw0hgcUxNXADJWFG/z1U07cXA+HsRBXofEjbI5gIqoncmK8d81yaEwaT8 DibuSqZrI/DVt/AA== 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 E840413A08; Fri, 25 Nov 2022 07:50:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kKr+N8tzgGMTFgAAMHmgww (envelope-from ); Fri, 25 Nov 2022 07:50:35 +0000 Message-ID: <14bd73b0-5480-2b35-7b89-161075d9f444@suse.cz> Date: Fri, 25 Nov 2022 08:50:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: linux-next: build failure after merge of the slab tree To: Stephen Rothwell Cc: Linux Kernel Mailing List , Linux Next Mailing List , Marco Elver , kasan-dev References: <20221125124934.462dc661@canb.auug.org.au> Content-Language: en-US From: Vlastimil Babka In-Reply-To: <20221125124934.462dc661@canb.auug.org.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 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_SOFTFAIL 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 11/25/22 02:49, Stephen Rothwell wrote: > Hi all, > > After merging the slab tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > mm/slub.c:965:13: error: 'freelist_corrupted' defined but not used [-Werror=unused-function] > 965 | static bool freelist_corrupted(struct kmem_cache *s, struct slab *slab, > | ^~~~~~~~~~~~~~~~~~ > > Caused by commit > > f6e94ad44e77 ("mm, slub: remove percpu slabs with CONFIG_SLUB_TINY") > > I have used the slab tree from next-20221123 again. I tried the allmodconfig and: WARNING: unmet direct dependencies detected for SLUB_DEBUG Depends on [n]: SLUB [=y] && SYSFS [=y] && !SLUB_TINY [=y] Selected by [y]: - KASAN_GENERIC [=y] && && HAVE_ARCH_KASAN [=y] && CC_HAS_KASAN_GENERIC [=y] && CC_HAS_WORKING_NOSANITIZE_ADDRESS [=y] && SLUB [=y] Wasn't aware it's possible that it will leave a combination of configs that's not allowed and just warn about it. Oh well. I'll solve it by: --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -37,7 +37,7 @@ menuconfig KASAN (HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS)) && \ CC_HAS_WORKING_NOSANITIZE_ADDRESS) || \ HAVE_ARCH_KASAN_HW_TAGS - depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) + depends on (SLUB && SYSFS && !SLUB_TINY) || (SLAB && !DEBUG_SLAB) select STACKDEPOT_ALWAYS_INIT help Enables KASAN (Kernel Address Sanitizer) - a dynamic memory safety