Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3991663rdg; Wed, 18 Oct 2023 11:30:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElCUnFkekE1FJyI59/a5D3xza3wRqcvUEBuGlsP/eq+nA6p8ni48bl4BbveL7GMAT8euoW X-Received: by 2002:a17:90a:d34a:b0:27d:98f3:21a7 with SMTP id i10-20020a17090ad34a00b0027d98f321a7mr6154608pjx.8.1697653821352; Wed, 18 Oct 2023 11:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697653821; cv=none; d=google.com; s=arc-20160816; b=kbhpCZVwcKlvsGM8iCvt1s7DBQLGCD/DkmO2WYnHdw0mko3iD8p5M46Y75KWt5lURN X4uPmH6WJCZaLN/QWHE+Hdy+gcEpRf+l/hWJUrrwTpelPUBve/I37mjde150Orl3qUPu fGGAaWeoLxnNwvVl4dy7rv94H1vzHGD81EroFayrZhPql+kq4/i8z21/CGvEh9bsvL++ vFaDvQrspdGaVxeaRtqeCOi/FQ4zRNwX71D2m1vq8bdeRb70AHgZHyUplPbeLxo1AnHK k4KeGre5f+DFjmJwX6GTwvkUeQa6M43gnq+NwMj3sHNhkUuAVrqaBPU1vzw08bjZhoca 7tPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=elI5P96e9OnX7jizGM9WYlz6DbV4XJyE6XUA4aDCIDo=; fh=z/0r49cfWvoTSR0qeUtSQbDU0D7vSyI14ff6XEQRIxQ=; b=un1HtX71a3yg8y8d5OsXrybHtcQ/BcSpnl5zW5Sb5k221YopF+nlEb9IhYMmv4QlWg leonrRNjhD9uCLWj0lm52QLnz602V5NuSbJQCwTutEaF38HL7Gn27UmeWyxhY71E5rhh thnS0pt0k8vg/xh9ixmYx8PDu3bpsi05JjE2M3+fyWog2SA9sWfbUo41P7k4i/YV5+/D PwtdXqYLsOixWEGGVkPFdMnDydoPECZfCdOskCYWp12psuRWNg316Hjs8b6Zw1+wSk5N e/J00Htp8X9CRQ/hlhMliwkGOxBLVV8nrTAVdgV/Im2WmbxpthpyH1baw0fGdmqsLufK 3WQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m9-20020a654389000000b005acba4c9bf4si2549131pgp.2.2023.10.18.11.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:30:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1BD27822113C; Wed, 18 Oct 2023 11:29:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232542AbjJRS32 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Oct 2023 14:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230396AbjJRS3Z (ORCPT ); Wed, 18 Oct 2023 14:29:25 -0400 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96CB4118; Wed, 18 Oct 2023 11:29:23 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-d9a58aa4983so8508082276.0; Wed, 18 Oct 2023 11:29:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697653762; x=1698258562; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KHdbAm9LJTdw2SIGrMx1plxM0RiwW0DhdkjBzJkwfFA=; b=PlC7PNhuqTgaY+5ZYrAXt7rwFQA/4CjUDKLzGfGYfrfIy2z9aJDA8l7KEhAdP7e84W z0GsBMukfKapg1NxO27fH1zfSE842z7lu/iTV0Ft7/7ZJASV2Dw/BaJJR3/xWFHR9WJs hEQsRXPTsQAUA0WiPkNoEIomJbxP8fS5m5Cnpa6vDDVbjikiBraBeP+85mOHuWgIV5ry dh6+UfnFamw7BV4sNyQKUnSYc4dOe51cepKHKrc7kx0lKyNXKZEIUmyTTHrOg6U8z7oL T2xaZe34YITFVBFBpqNzaouIBoBPYubHxiyNtzXxPC8iUOKDIn0U/uc9+HvP78X8J/tC WkpA== X-Gm-Message-State: AOJu0Yz7bA6boUC/HSkm320mcCIp4bTZJoL2UwC8Vf92YyQyHF+ZGXXa vxq5YjL1No9AI8atO6wG9R4oMQd4bLIAjQ== X-Received: by 2002:a25:9f8a:0:b0:d9a:c218:817c with SMTP id u10-20020a259f8a000000b00d9ac218817cmr164190ybq.4.1697653762541; Wed, 18 Oct 2023 11:29:22 -0700 (PDT) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id v1-20020a258481000000b00d9a577d8434sm1456016ybk.53.2023.10.18.11.29.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 11:29:21 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-5a7db1f864bso85298737b3.3; Wed, 18 Oct 2023 11:29:21 -0700 (PDT) X-Received: by 2002:a0d:df44:0:b0:59b:ec85:54ee with SMTP id i65-20020a0ddf44000000b0059bec8554eemr81300ywe.39.1697653760779; Wed, 18 Oct 2023 11:29:20 -0700 (PDT) MIME-Version: 1.0 References: <20231018182412.80291-1-hamza.mahfooz@amd.com> In-Reply-To: <20231018182412.80291-1-hamza.mahfooz@amd.com> From: Geert Uytterhoeven Date: Wed, 18 Oct 2023 20:29:07 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] lib/Kconfig.debug: disable FRAME_WARN for kasan and kcsan To: Hamza Mahfooz 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 11:29:53 -0700 (PDT) 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? Stack overflows do cause crashes. > 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 -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds