Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3996742rdg; Wed, 18 Oct 2023 11:40:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzc3FFdj5xp0I+wIfn4CNdw9ANqejmHqdn828sauZktco+eKxOvwf37cAB6dqGbUrpWiHz X-Received: by 2002:a05:6a00:2d86:b0:6bd:3157:2dfe with SMTP id fb6-20020a056a002d8600b006bd31572dfemr6286427pfb.7.1697654406708; Wed, 18 Oct 2023 11:40:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697654406; cv=pass; d=google.com; s=arc-20160816; b=WndOzjdqSGNXm4F76vw0/Sp9nbRcJY1irRSd3JDiZmU3XuU8bRbbloy+U/h1b7F6gs xF7lcSQAKg+7GBuOHV4t2wXGbD3owr3EKefjKxrPkW+WSMyLAbmlA149Y/XwgLU/Bam0 hVDPHVkqBHdfh42Z0eN+wM96vVHIO2zrn3jxrMaail86WnQH5wpdIBGpm4R9569eaYsU SUd2Y2+L7PmeDvHPdUAlaW7PbmZN0h72DZJDGchc138CXZNIDR9LyVZAnNPX4Ke3ykyA yaYy9mVjNKBNGl/h3hmIq0W0j8TCDZwuDZorBGehmfMN4D4+FZHVFO4ZAQaWWlSDE0LV nGWw== 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=OU6nctpme4VBYwdNpPP+ppDPSlae2DuoX26bmDkya8g=; fh=TJBwo7s7+J6Q8G+N0xdeAzC+TMAZygTwr2BHHiqWBHI=; b=BN8N0/5OGeyMyGtQBhZg1OTDBrkkTlm9IaB9EAW4u6mdRsxVs9CtRXxi3Sgz1x49i8 MfSbMpFw3xloyIm3sySrVE4QR6npu+luKI3y69N569+6ctReBo4h5urpMpLArtsI8Xvd WJ38uopZ49m3dSmpGCahfjF9gYyxxvf/WdXTu7ZcsEhk9XGQ+OqOpZ0hCN0LkYmBePI3 uFJBlGCQWEfBP7uAE9lsBpdNXKyHpCNi5jISZdmXi7PlY2gGg90CdGk6JIHew8CdL0fo kwpXE3462hAAdGVH7jVzw1hB7WhzN99NrDHZpjnSamM70S0kdTNYWcGy5COwiPdXLOfG kdzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=OwmQtJKw; 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.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id g2-20020a636b02000000b005b837c29d10si1205890pgc.106.2023.10.18.11.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=OwmQtJKw; 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.37 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 snail.vger.email (Postfix) with ESMTP id A0FCC80C65FD; Wed, 18 Oct 2023 11:40:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230296AbjJRSj7 (ORCPT + 99 others); Wed, 18 Oct 2023 14:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjJRSj6 (ORCPT ); Wed, 18 Oct 2023 14:39:58 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2049.outbound.protection.outlook.com [40.107.95.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7CC9F7; Wed, 18 Oct 2023 11:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iwT/cYsslehnFX+AXR4e4VZaklxi79wZZcNYzpANLXTeOKGd1VoiZLFAl9bcuFYbLYi5MvOO473oquCwkuv/o/wP84kjiMkmFEpW9H09JvAhv0uEphscmYqDOvIr1gbM0RxpOTW2hh9yA3Vo3yH1TrNdF5MRTJ8cVDoxvMytk25xNrepJx67qaEYVHY339HDzwVwckZcZ+WG9PehIpqLeqfrZeq6qP75VvHzWBLD8Uwe5WqX7NrVk2ptpxH/nb51Fsauj2Bt2gD95VfZqdzWHAoU1aN4+b9YyBAJXeOZuF2df8/LMdMzk6XO185zt2PFyIB1CB+OY3P2pd3gKApGwA== 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=OU6nctpme4VBYwdNpPP+ppDPSlae2DuoX26bmDkya8g=; b=SizUYLF//lEiKjwcxHumnVgDJP8puUlJUcUKBy0zyVzz329Bm/6ZNVnr7ziZwrzsQ+NhfXPUuk2/cEDwUuqdfQ4mllsa+rUJnccDxK1PcjMIqVIJpe1wYizQ9OoQg3XUA/V3fCQpDGghrxsGEWmybpqrGM+NSN7f0vJYLWluPJnUrkU+Ng3a6+y8jXiN9zB5vNo8wye60AMyq3LwG424vE3e62f9d0/5mJRFhqnLCeEoh8q1M/+kLnVY9hUwV2JUnp0ngC6Lz7NkkAh6sDip3aUuWm8MV7huwEZXGVo6Q0+zrbmz9rOfBngyulIXrBMPWK2+MlPfQxv1qUWwqBhklg== 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=OU6nctpme4VBYwdNpPP+ppDPSlae2DuoX26bmDkya8g=; b=OwmQtJKwddk3eC52CndBT8qI2qLaQE4F/Fd1E7XhhTFRTt6vef3awybIvbSk3AKfYK352qLf7EuHDoDb2YBp/9EDD/p6WRI/wjzvbchffUgy6LzaZYC9/67xi5xAlTTC3qd8hFbTfElUBroVxX9bkMIchCZyHRXfAvBR4xehpYw= 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 IA1PR12MB7759.namprd12.prod.outlook.com (2603:10b6:208:420::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.44; Wed, 18 Oct 2023 18:39:53 +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 18:39:52 +0000 Message-ID: Date: Wed, 18 Oct 2023 14:39:48 -0400 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] lib/Kconfig.debug: disable FRAME_WARN for kasan and kcsan Content-Language: en-US To: Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, Rodrigo Siqueira , Harry Wentland , Alex Deucher , Arnd Bergmann , stable@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Nick Terrell , Nathan Chancellor , Nick Desaulniers , Tom Rix , Andrew Morton , "Masami Hiramatsu (Google)" , Randy Dunlap , Kees Cook , Zhaoyang Huang , Li Hua , Alexander Potapenko , Geert Uytterhoeven , Rae Moar , rust-for-linux@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev References: <20231018182412.80291-1-hamza.mahfooz@amd.com> From: Hamza Mahfooz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YQBPR0101CA0255.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:68::16) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|IA1PR12MB7759:EE_ X-MS-Office365-Filtering-Correlation-Id: f4dc2bcf-2bab-4f3f-431d-08dbd0099de7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nh1d9aWG59PxpJzKHLDyKN2xy3VVPnqbKEmk0YAi/e8H2/RxIK7dMdRuLsZFZUJpBZ+ebZa8qsFAXmYHClCEL9GbJRDkAv631tpqw0MXUV50slTEdnM8Uypc6Kr/pg2ulcKcRlF+xmhOkBRvZ6o6558gNu65dshbUY4f4vC4ek5akrM3Z9/R/yX8SGPgTJ0fT6n91G1tJLUQS1ZNjEw2epWSYHXFP2ml4xFupnG7DM3H8QA0Wpbqm2RMvrLHycXBwgfS6xm2ThP4KduiNvPcmC7H7M4nZu+MtysYBzyoD8KJK1TKdomzgc0mlSR9gkanI7XojZFJPzE+6IV9k0AF4oXiLWMvqczwGamxpr5FQAD9cQDwJQzs/fTY31FfXZxsA+mgXQqK1RyXbvU8KS3v8t8R5M1RYRFLBty7xYfMTYCgIaymINR6KfS1LTEo5DXKhMBhGslefu5IytgB7Bh19UifR8gCifw7QOlLx7IwsHGON0oiBKM4WHorPAuYpHLgHvlIVL3UyYLng0HOjuWZQKyXsMf6zCRzuYHkghN6CBc+nOk2wL2EvYUtLX+foHs/NNFcRPqD7rMXFW/tQznQZvF2uHFcwb3MAU7Ima/nnUOXaLq1Yj2+B17540L1V2jAg1l02BRBtJ6OywU7STb28Q== 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)(396003)(39860400002)(366004)(136003)(376002)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(6486002)(6916009)(2616005)(26005)(66556008)(66476007)(54906003)(66946007)(4326008)(8936002)(8676002)(316002)(53546011)(6512007)(36756003)(2906002)(478600001)(31696002)(6666004)(7416002)(6506007)(86362001)(83380400001)(5660300002)(38100700002)(31686004)(44832011)(41300700001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aEhBcUlKeHF2WjRIcHR4Ym5MazVyUWVOVVRScHZGUXFLVjZKTGRFVjI2L3U3?= =?utf-8?B?Ty85SGtpSlloQzhyeDRXRWxnZC8rWWxSd1FaRk15TkYwOUdvbjR0OU1ZOHJs?= =?utf-8?B?U2I0c2MyVFdYczlUOWthblp5UjVvNE0xMkZyNVdsWFE0QUdvSy9UUXVTdkZT?= =?utf-8?B?L2trSDFKUktpLzlEcnRhaFZFdWVuRmFPNnBKYWYzY2MxN1ptWGtUQ1J2NEIr?= =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WhsU0hkTW5y?= =?utf-8?B?TEZ4eG8vSmpYMmtwZjREalNTd2dvQ0hNOUhGVGJaQ1hLZUFiWlIrRjA3eDJu?= =?utf-8?Q?f5UPbdn/fMl31rSoUa9jVNofW?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4dc2bcf-2bab-4f3f-431d-08dbd0099de7 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 18:39:52.7230 (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: PZjSgYglR0s5ZTXu8GLHDWLG67Pmzgq+hnEDwAi+9MLjp8O2mrhfbjOWE/zaNxL8DbZ9VOAlybzlefA/4pFWBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7759 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 11:40:05 -0700 (PDT) On 10/18/23 14:29, Geert Uytterhoeven wrote: > Hi Hamza, > > On Wed, Oct 18, 2023 at 8:24 PM Hamza Mahfooz wrote: >> With every release of LLVM, both of these sanitizers eat up more and >> more of the stack. So, set FRAME_WARN to 0 if either of them is enabled >> for a given build. >> >> Cc: stable@vger.kernel.org >> Signed-off-by: Hamza Mahfooz > > Thanks for your patch! > >> --- a/lib/Kconfig.debug >> +++ b/lib/Kconfig.debug >> @@ -429,11 +429,10 @@ endif # DEBUG_INFO >> config FRAME_WARN >> int "Warn for stack frames larger than" >> range 0 8192 >> - default 0 if KMSAN >> + default 0 if KASAN || KCSAN || KMSAN > > Are kernels with KASAN || KCSAN || KMSAN enabled supposed to be bootable? They are all intended to be used for runtime debugging, so I'd imagine so. > Stack overflows do cause crashes. It is worth noting that FRAME_WARN has been disabled for KMSAN for quite a while and as far as I can tell no one has complained. > >> default 2048 if GCC_PLUGIN_LATENT_ENTROPY >> default 2048 if PARISC >> default 1536 if (!64BIT && XTENSA) >> - default 1280 if KASAN && !64BIT >> default 1024 if !64BIT >> default 2048 if 64BIT >> help > > Gr{oetje,eeting}s, > > Geert > -- Hamza