Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3924522rdg; Wed, 18 Oct 2023 09:39:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNZi283kGoUHc4loSd6mDz81QaYAKF/x2TSBFbNeGOBZHdV3bPfwWKDApVcOqcy3bTGQkW X-Received: by 2002:a05:6870:1255:b0:1ea:406:4dff with SMTP id 21-20020a056870125500b001ea04064dffmr5814650oao.50.1697647154749; Wed, 18 Oct 2023 09:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697647154; cv=none; d=google.com; s=arc-20160816; b=AVqjXHVocqYr3998vN9dLcua9s7KSdO5ZzzBBc8yxxGGd8saSKwQOWRpXdjH333kZu wXzHGT9AaXtr2Ti+C2IEdNdlZ/Jz1qcQuwfj0LXkxNGzNiwLdXd4W3wr9QBuv+V1oRcs GAtdbR7N9S2QHV9YPcfDAAzV6qTSqajizREh+kDYYnJYbtBjRNsrFwS1TEF5Grx6JcXi xheoqprdG4yiUQiHgNtTtjdM8eP32VnvhidGjQ5hccHceKldl1aKnz5IL4po1YFZMYJL 07X2EuDHByL5dap9j+vX1Y5vgaKoVsjWjCth4QxeocEgYEiyq2QX+6OQPpAKOjehXyry fYAg== 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 :dkim-signature; bh=Z9SF8JJcd8ct9ipQtfiI/7at0EuX7KbDRsL4NAWMQ7k=; fh=BJwVMxMZvPsjUa/j28oSfHZeQm3S4VBnQwgd+fRYQU4=; b=S+P7S/bNlwtdNGEvI7Y60Evxm7p6acwMndq9XsRNAduz6nWfcmBZY820U8GBWrRmOP wsTeONKuYYY1KVM3eRxQ8inD85t8zsImD4KXQD9jiYTV/6z1CsoAVZN8/ZKK5r0V894U 6RO7Y3Jtd8UmQsVYsQhPiIzPb0hehaisVUa+GtR2umrug23Uc7Oa6eHmb4oUpeqCvQsF 93jj3B25yEHyffezalmWc8FqmixSDC+U9FGCEIAZY6FN9MhH51a+apAJWJnEB5LSWwtk KPomBJOP7k21l6otOqzbaSO3xs+2FjFPpBc6lPYRiz2ZvR6bMICMwO5eNA4QNnuObsEi 8hlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=jzhCpoyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j70-20020a638b49000000b00588fa0def24si2468647pge.777.2023.10.18.09.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 09:39:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=jzhCpoyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6D30E8022ABF; Wed, 18 Oct 2023 09:39:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230025AbjJRQjD (ORCPT + 99 others); Wed, 18 Oct 2023 12:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjJRQjC (ORCPT ); Wed, 18 Oct 2023 12:39:02 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 267E5BD for ; Wed, 18 Oct 2023 09:39:00 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4083f613272so5619345e9.1 for ; Wed, 18 Oct 2023 09:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697647138; x=1698251938; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Z9SF8JJcd8ct9ipQtfiI/7at0EuX7KbDRsL4NAWMQ7k=; b=jzhCpoyHehpixSVFJHg9d2hR18aM9qSQT76uwjxqr2PFn4jVy+rTlhSVZiQdw0S31M NHDk45W8zosV8TBywiG30sdWtuAe9YTZxjJd0a69fLQyFWxfpIIMElDublwnK3NtItao 4CA46TYtixRWETq/Soai80JWHJypQmXjVxPgY/5p5lAXmQ8WIB1w5/2bT+jOoOZgcth5 qPagvfGuNNlwtOdnuv9tL9G2c0bg33FnyFrbWGHBjLxh0dvWgOElwKGrMZHN6VHdX2WO q2b4YoCX1xDoadOqImgcoZUPv3BPnAPx7O7vm0t+K4/PTFvQZa/SneiE7Xx85SualFSo 0vjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697647138; x=1698251938; 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=Z9SF8JJcd8ct9ipQtfiI/7at0EuX7KbDRsL4NAWMQ7k=; b=Gvkb+yRVbtLH45C5kSYTJM9Y67BMk95yY/3VivD8KBjVxXFwlRgSsscU3tU8leKyRU BpBogtGFKS2lwY52COPiaQUygdV36NUu24gcr98hyMwPYF4FQDrRAp3NlsIbKXpZGRuh cgPjg3N80nsLTTcHnxci2OF5iwxmNyZC16LFWXjyEjaDncQ+8CJTnXsiHLeSHfQc2cQg n5Lp/pAHKPaaXZHo/XKfIoTADRUhjRsMFA5+LAiqY2d5s9lULZDx53pPfwmAgHQLFM3r IK/+Xx2YD2CpPPqyiwFhG05RkahNyNFH69/NTye/KtS2UGlOf/izoyP5nlL7S0BaUZ4l H1dg== X-Gm-Message-State: AOJu0YxTvgeylw6WOgAdziN/yv4m0H+wA0h2Y5wwiZzkEL4lEu69+cr/ kxTlF66Rh+09/zJ59xEv9nIxhywLFBvcRitQLHDbZWSKpfSXoT2Db0NOlg== X-Received: by 2002:a5d:4ec5:0:b0:32d:8cd1:52e4 with SMTP id s5-20020a5d4ec5000000b0032d8cd152e4mr4431912wrv.6.1697647138401; Wed, 18 Oct 2023 09:38:58 -0700 (PDT) MIME-Version: 1.0 References: <20231018153147.167393-1-hamza.mahfooz@amd.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 18 Oct 2023 09:38:43 -0700 Message-ID: Subject: Re: [PATCH] lib: Kconfig: disable dynamic sanitizers for test builds To: Marco Elver Cc: Hamza Mahfooz , linux-kernel@vger.kernel.org, Rodrigo Siqueira , Harry Wentland , Alex Deucher , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Nathan Chancellor , Tom Rix , kasan-dev@googlegroups.com, llvm@lists.linux.dev, Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 09:39:09 -0700 (PDT) On Wed, Oct 18, 2023 at 9:22=E2=80=AFAM Marco Elver wrot= e: > > 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, > 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 Some recent issues I discovered in clang that exacerbate stack usage in general, which is then amplified by KASAN: 1. https://github.com/llvm/llvm-project/issues/68746 2. https://github.com/llvm/llvm-project/issues/68747 Those are next up on my to fix list after what I'm working on now. I suspect that those aren't the last issues now that I've found a thread to pull on. --=20 Thanks, ~Nick Desaulniers