Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3926789rdg; Wed, 18 Oct 2023 09:43:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0MJevYMuIhNy6Rm9Gk5sXwbjd5p0T41EDIQPwEfmASxuA5qZ29lX79ew4aMUhHKBvVq6b X-Received: by 2002:a05:6300:8086:b0:14c:5fa6:e308 with SMTP id ap6-20020a056300808600b0014c5fa6e308mr5637308pzc.43.1697647398447; Wed, 18 Oct 2023 09:43:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697647398; cv=pass; d=google.com; s=arc-20160816; b=hgQOgFtaa4RcgLbi78UTY+JCbwUS3DkS3QSeGnNcD48WD/VXRVHpyNdPhBxmMM2Pu3 NC/+kuKAOF/e4XGH1ov+799Gm706X/h86vXrSXuZmv0JPaoJ42ZPvSLzkIaXLLbR8Zc2 AFqWzxs7d4cAGyMRjdAVnqc+lzVGrEG93xRw6WYA4HmENiqL0EAqldE4h72Dbv0QzNQG mrTKXmDERs/qukZhlJICQzcP960qSFfL7E489574kTtwtZY03Zaf8t7+rFSNbI8xDoZw TINalc4uBOSivK0mOy4gBqju/buqJw4MRNiKmPkYcXe+6ms6C1Jv96K/GjhEDc39MwuV X31Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=YYOgGSM5VZwjEd5LHq8+dVseqn7AD+grlWvPNuKeuXY=; fh=QxZ+KF+sWD59LBrOLTboyLXGhK0zCqGcJ7neO8VfIAQ=; b=cP3pRroxjRAFJpWlVbFi4uWOGdcqHAvb0GBckY1ehNAyzva9VQrEma/qbbuVkRw6KW SY8tzycNPs5pSHWwZtGnoAulEXCQqATY9y06aLTwflG2iBUlGLv3O9ALKIMKyf86Iu+q K0ski0GMfdYun/UiJzF8fAbTgd14rqoT/WIpiiH276fI2NgDADFCQ4g7z22LStQkuwr4 6ZAi3FJ2m47qVGffWnF6tk81cZapdixmssXGjSN8k7XZsAMbSzRIMwC2SFUrBF/kvTDP 3GdIY8QP25jKH1DJI/FwK2ZcujTdRE/SbL9VyZhSHBi7+royEusl9KViAbJDYh0ASd79 sKFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pd6D9nL9; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id v4-20020a170902b7c400b001b69ede5b79si217990plz.470.2023.10.18.09.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 09:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pd6D9nL9; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B3772805F4B2; Wed, 18 Oct 2023 09:43:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbjJRQnE (ORCPT + 99 others); Wed, 18 Oct 2023 12:43:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjJRQnE (ORCPT ); Wed, 18 Oct 2023 12:43:04 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2087.outbound.protection.outlook.com [40.107.243.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D950AB for ; Wed, 18 Oct 2023 09:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GBaQnhf9BJIhvHJ7GGQuqRTNBCY2Ta7atb0KLVPHDDYxkspFavLLjHIlzIfqmugOjkgtNqulcyEQQk7Arhpp4Gf8LF3ThywXWXjgsNVgrL/Rb9X4vmlFpJ4wJas0D0lMmZj5qmB48GbZAF91YVaW7GVo2rSlZ4QlS2KAYLE1CVGB69QH9TfvqT5k6CLm/m9wzKwm1yG5ICcdy5Hi/32mLX55WA8q+MmM5h+CydzKaVkCN9iTt+17/7G96/KXueJaqs3g5Bhv2fldBPIjCI6LB/L0/u4owDqimHMvQ+zJ6jl9ZYZdrzFL0b1oLbUA2faw9p5LB9dqsPJaFcMFDoBBHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YYOgGSM5VZwjEd5LHq8+dVseqn7AD+grlWvPNuKeuXY=; b=HdSfjBbTOLnpy7RJiw0lj+S4U5qKW5jbJu2eWgthpmjbO036okZiKpmMP8kVeEeqGLyzfaMslmugXcJotMnI0ZnX5UjwehJn1MVIuDWQdRYxCZOoAqUhN7pPTKkeEGzEwlkH9U1WbZVdgN5KjayU+F0xk1ZpBU2cZvHNSAarPoigPn7f67eFwIGjifU+oAkEfThxAXc4n9/o98co1Au5zgJqkamknWJzxbTeqDZdwNkLCuanBt+8bVvpg7u+iTOI5BjZ8XXSK7fPETs13SnsW17AxnQCsM1IPRukoWYk2rqxFQLkLkHf+TUjfL5u4QhIsRjKL7CdCnbigPeFQhyGBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YYOgGSM5VZwjEd5LHq8+dVseqn7AD+grlWvPNuKeuXY=; b=pd6D9nL9qar5W/yNIUwBBbn17pBu12+z9/DL36ZXXQ34MYiOM/Z2osHIlk8Kj31lw+yFZRWcxQmxlZMTROmKtxPvXCYI8gwBp/YB4kCc79rSQMu+T/zFuq04cqjtmrnU8+XpYM14JJwcF3mRsfh0ry6kfCoiomb24dRfp2zX1n4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) by DS0PR12MB8478.namprd12.prod.outlook.com (2603:10b6:8:15a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Wed, 18 Oct 2023 16:42:59 +0000 Received: from DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::5aa2:3605:1718:3332]) by DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::5aa2:3605:1718:3332%7]) with mapi id 15.20.6886.034; Wed, 18 Oct 2023 16:42:59 +0000 Message-ID: Date: Wed, 18 Oct 2023 12:42:53 -0400 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] lib: Kconfig: disable dynamic sanitizers for test builds Content-Language: en-US To: Marco Elver Cc: linux-kernel@vger.kernel.org, Rodrigo Siqueira , Harry Wentland , Alex Deucher , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Nathan Chancellor , Nick Desaulniers , Tom Rix , kasan-dev@googlegroups.com, llvm@lists.linux.dev, Arnd Bergmann References: <20231018153147.167393-1-hamza.mahfooz@amd.com> From: Hamza Mahfooz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YQBPR0101CA0026.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00::39) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|DS0PR12MB8478:EE_ X-MS-Office365-Filtering-Correlation-Id: af30a825-6e02-400f-9192-08dbcff94967 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VIhHlTpBif5JjUYePR6m6K9NXDzxuF3xhRZPAlIAy4hQjsf2DCRQv/Lu/uUiCIx2pfnv+HtwmScKE1u7kOplBOCjwq8HxRCxqjEo0j6EnWe60GsV1R8y1wsJni2+3r1EZgds6XVYpP7msy9yhCESSVNn589m2oo57b2vekKtufzV5rdH97RFh1bc+V6/ll3ZFny0Sg2d3pkiC6Fj9CA5l6i2v1dLoaJCiAiPSx+mGM1wO9GwfbAaJsx8ZzD4ZGW07X9klYJJlRHXoWfo0cKy29WBvauCaNDz7yLx/UrSkukK1nJBisAuv84shANWt9ARG4rUJlH0UhiX8XOqbUHFgUz6TDAegrrcqLy2Q248fuFMNyG6IDbq3xcwN9L5yO5uwyCG7uI2ukvUCOgJpXmcGsnXZDmcbwPuVJrjdPCnSyG8jvYkE3C1H+QL3h1v/qNUc7pgi9+UxmdVQmWz1k3a5+INSYPytFNeG7nQTgj222kGJFsUdVpTHvXgelCBushFCwCq7hUCvFJLlrs82YvstDcox33xv8pqF6gn7b9+eynpHFbqOBzJI50eVmae1I1H+Yg7RRUu1t6mG/dh82vQkB39mg+HDFJ83QYaqRIwo/H8hlTk3ED3hgG7igh36X7Yp8XTllWRA8OE+5bwwFEI++7sY5TtmA7Ck4FtaqTDI3/vLgke81v5dahaCXXTBxkZ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB6280.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(136003)(39860400002)(396003)(366004)(230922051799003)(1800799009)(64100799003)(186009)(451199024)(6506007)(6512007)(2616005)(53546011)(83380400001)(31686004)(26005)(966005)(6666004)(6486002)(478600001)(5660300002)(41300700001)(4326008)(2906002)(86362001)(31696002)(36756003)(8676002)(44832011)(38100700002)(8936002)(66476007)(7416002)(316002)(66556008)(54906003)(6916009)(66946007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bSttd2xtT3dqOVZoNXdLZVJKOTU5MDRwMG5jZmNEV1E2cWk4TTEvZUkzeitT?= =?utf-8?B?dWRSa1VDY3NpSnlMQXNUS2tDRWI1YWIxdEh1YkJySHpuWVVsdjVtVlh5Wjl1?= =?utf-8?B?Z0pOUjdEck5xU0J4YjA0dlFxRDE1bjQvS3VueU00V2x0K1NKd2xEYTRWbFND?= =?utf-8?B?all1WkQ4L1I5WFNLYnpBQnFsVU1lTW9NNFBDKzZWNkl5bGZxeEt2ZEExREtU?= =?utf-8?B?V2hncWgyYktJNTMwNExvRFh5OVF5QllkZDRIY0RFTDVBRUxVLzFtWEY1S2dO?= =?utf-8?B?UzZ3ZGZUWG9aN1RvdHZNT2lCZDZGUzJyRG42R1pPOUxMRE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0B0l6tbv/qxA+?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: af30a825-6e02-400f-9192-08dbcff94967 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 16:42:58.9741 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7ubtQNYmqU+L8u38Cu2mOH5Km2C6SnVc4s03xDJhPcoyt5ADYdthvEmc9+VjzhTMWkaKeVgdXW+0q6A+3VNMPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8478 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 09:43:14 -0700 (PDT) On 10/18/23 12:22, Marco Elver wrote: > On Wed, 18 Oct 2023 at 17:32, 'Hamza Mahfooz' via kasan-dev > wrote: >> >> kasan, kcsan and kmsan all have the tendency to blow up the stack >> and there isn't a lot of value in having them enabled for test builds, >> since they are intended to be useful for runtime debugging. So, disable >> them for test builds. >> >> Signed-off-by: Hamza Mahfooz >> --- >> lib/Kconfig.kasan | 1 + >> lib/Kconfig.kcsan | 1 + >> lib/Kconfig.kmsan | 1 + >> 3 files changed, 3 insertions(+) > > Do you have links to discussions that motivate this change? This has > been discussed in the past. One recommendation is to adjust the Sure, you can checkout: https://lore.kernel.org/amd-gfx/CADnq5_OyO9CHqahFvdnx7-8s9654udgdfhUntyxfjae+iHey0Q@mail.gmail.com/T/#m5d227dc1ef07b1f4953312287dce4568666c5e09 > build/test scripts to exclude some combination of configs if they are > causing issues. Or we increase CONFIG_FRAME_WARN if one of them is > enabled (KMSAN sets it to 0, 32-bit KASAN increases it a bit). > > That being said, we're aware of KASAN having had more issues and there > are some suboptions that have been disabled because of that (like > KASAN_STACK). I'm not sure if Clang's KASAN instrumentation has had > some recent improvements (we did investigate it, but I can't recall > what the outcome was [1]) - maybe try a more recent compiler? However, > KCSAN and KMSAN shouldn't have any issues (if KMSAN is enabled, This patch was initially motivated by KCSAN (i.e. I am able to get it to blow up the stack with a minimal .config). I don't mind dropping the other ones since I only included them because Nathan implied that they could cause similar issues. > FRAME_WARN is 0). And having build tests with them enabled isn't > useless at all: we're making sure that these tools (even though only > for debugging), still work. We _want_ them to work during random build > testing! > > Please share the concrete problem you're having, because this change > will make things worse for everyone in the long run. > > [1] https://github.com/llvm/llvm-project/issues/38157 > >> diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan >> index fdca89c05745..fbd85c4872c0 100644 >> --- a/lib/Kconfig.kasan >> +++ b/lib/Kconfig.kasan >> @@ -38,6 +38,7 @@ menuconfig KASAN >> CC_HAS_WORKING_NOSANITIZE_ADDRESS) || \ >> HAVE_ARCH_KASAN_HW_TAGS >> depends on (SLUB && SYSFS && !SLUB_TINY) || (SLAB && !DEBUG_SLAB) >> + depends on !COMPILE_TEST >> select STACKDEPOT_ALWAYS_INIT >> help >> Enables KASAN (Kernel Address Sanitizer) - a dynamic memory safety > > This also disables KASAN_HW_TAGS, which is actually enabled in > production kernels and does not use any compiler instrumentation. > >> diff --git a/lib/Kconfig.kcsan b/lib/Kconfig.kcsan >> index 609ddfc73de5..7bcefdbfb46f 100644 >> --- a/lib/Kconfig.kcsan >> +++ b/lib/Kconfig.kcsan >> @@ -14,6 +14,7 @@ menuconfig KCSAN >> bool "KCSAN: dynamic data race detector" >> depends on HAVE_ARCH_KCSAN && HAVE_KCSAN_COMPILER >> depends on DEBUG_KERNEL && !KASAN >> + depends on !COMPILE_TEST >> select CONSTRUCTORS >> select STACKTRACE >> help >> diff --git a/lib/Kconfig.kmsan b/lib/Kconfig.kmsan >> index ef2c8f256c57..eb05c885d3fd 100644 >> --- a/lib/Kconfig.kmsan >> +++ b/lib/Kconfig.kmsan >> @@ -13,6 +13,7 @@ config KMSAN >> depends on HAVE_ARCH_KMSAN && HAVE_KMSAN_COMPILER >> depends on SLUB && DEBUG_KERNEL && !KASAN && !KCSAN >> depends on !PREEMPT_RT >> + depends on !COMPILE_TEST > > KMSAN already selects FRAME_WARN of 0 and should not cause you any > issues during build testing. > > Nack. -- Hamza