Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp237581rdb; Thu, 19 Oct 2023 03:05:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwq4lygHZ6XvPoyZiXoXxlr34VsIato51pBIqjbQ1UhRJIa7otEiLMyLZJdiPsEJZWhZWP X-Received: by 2002:a05:6a00:93a9:b0:6bc:e7f8:821e with SMTP id ka41-20020a056a0093a900b006bce7f8821emr1553006pfb.10.1697709949293; Thu, 19 Oct 2023 03:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697709949; cv=none; d=google.com; s=arc-20160816; b=sS96fTybPvgrzGZvruD0WXQfjlWbTU0+2QvHt94qYxDw0t/duHegduBHq8K0AqM741 jqdGkwoGn9bw+LK0TiLbRm+KNWFZJtOcV9CKqbkPtQRYf6mEbQDsQqvzVs7NpKG83E3A CT377zJUyQZF1TKfQvbPVr+DK+vDRMcSc9k9QP1mbOqAOgpcJ1MEixiYPxkVoSr3258e 2wgLc/YzJx18+PvbyD4SkssKSUu+oXELaDtT9ZjS2NnBfCpLvHAZ946QI9lvdHaxvHPK EHwmhMdLvViec4lNNCiXogU/UR2qThlSrip82OrXgNyN8xZsEEt7dz/PbPPUa6+/GE7c bkzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=X3bjb9rubAXmEx3BuTMzb9DXzA+Icb3ceQsdxtJC/Jk=; fh=xy720LkBorKV6cJFFR0akQM4KDoc/S4+6sBbhn0BRmQ=; b=n7qf0LyV1AHM9OWM37AdW6GgRTcnw7INNc0eIP6++RQBNcOfSLa1KEnxqe020hyJ9I EYXZ4OAtPseobj2jyt3VQ1/iiAUN1fx/xfhudnxUv5/fAYAi/AQz4WgxXdaq0NXi/oAt LE4S/vCcY2h+T5jL8V3NLVp5L3POPL2ZDj55x3tQs+fC6AXqRL23jYJslATpEMWvnL6m GDGNFUXsu++QHCG/eT3snR1xSM8QUmHFoR4m2qZo3RhNIJSTipRTLwsnkteVyvxi8ilw T3CYxDGfJ4dMIaiVcmLp5dsXylXWLAx/Hnk5VreR0LyKPKlGGnscVbMpOWlBYCn5lQP3 T62g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SXUoECpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id f11-20020a056a00228b00b0068fb8fa1e71si6086879pfe.207.2023.10.19.03.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 03:05:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SXUoECpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 63518806D7CD; Thu, 19 Oct 2023 03:05:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345162AbjJSKFK (ORCPT + 99 others); Thu, 19 Oct 2023 06:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345137AbjJSKFJ (ORCPT ); Thu, 19 Oct 2023 06:05:09 -0400 Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E6811D for ; Thu, 19 Oct 2023 03:05:06 -0700 (PDT) Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-66d03491a1eso42476526d6.2 for ; Thu, 19 Oct 2023 03:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697709906; x=1698314706; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=X3bjb9rubAXmEx3BuTMzb9DXzA+Icb3ceQsdxtJC/Jk=; b=SXUoECpe8Nqneq+LhOtX8hB3yRr55n3RE0jS7au85tbECVbOSYro3wbUKJ543rwF/c XMy7p5iZzD3sLLP47IIzzdJM5GJgOMwTlg2rhqa+NR4tpF1cx7elsQoXzYYD6tNN9gp7 6DO8LgS3MCcwvlxC6siOUI3kM/rN1VSbREuhJ39RIooSTaW4oXrqGkF75THM05pC/Xby KfuBYQSokrLJRhaGcQRNsf4X6ohd68MhTytvbZJYSlgkcKgpacxBg99SLc57noWSUpc3 ed+nQhrpjGqOCZOB2gwSgoitqEEEvCqLZg9qfRpQUa2XNsY42zRBJ7BwyBzxPzyN14ky 4hhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697709906; x=1698314706; h=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=X3bjb9rubAXmEx3BuTMzb9DXzA+Icb3ceQsdxtJC/Jk=; b=ChLGlBIKzVGBFLulCWjraoN4AzFpOGfhfvYKq6jtSzCYamNgPLqPKWuMkH0cT5j6pE 4rTLLBWWxo42eJqRlpgB4bFpdGLise6K7OMFX4vka/GfvnZ05D1HMoheZpi/IqziGwqG irLYGsxBSETYBkIXjFmsXIPqqe0aYKPeIVV5YHNbHD6Qi6ETre0X2RxQTOF8wsZEEPbg H1GA8tkT7ZExoYAWRFTHz+4O7wE7GU/DZFHqEL1F0oasOWjxi8LckGJhKMFqEHNQWOpr VD7+CaEQZROlsuprLA/EwlM+LxY6nS6YZmap/Z9om8Vgwftz5Rdz37Vt/B74wQaf97DH MXzg== X-Gm-Message-State: AOJu0YwQ9ijoHSBkL3FtZShyv/YFDXlt+VX+vzrTEyiR+aKjvQ2D48U0 1wFosAloNygjo6bWmZlv9aREgbjYpDy2wBpdk076Ng== X-Received: by 2002:ad4:5f0b:0:b0:66d:1624:2200 with SMTP id fo11-20020ad45f0b000000b0066d16242200mr1943369qvb.13.1697709905579; Thu, 19 Oct 2023 03:05:05 -0700 (PDT) MIME-Version: 1.0 References: <20231018182412.80291-1-hamza.mahfooz@amd.com> In-Reply-To: From: Alexander Potapenko Date: Thu, 19 Oct 2023 12:04:23 +0200 Message-ID: Subject: Re: [PATCH] lib/Kconfig.debug: disable FRAME_WARN for kasan and kcsan To: Geert Uytterhoeven Cc: Hamza Mahfooz , 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 , Rae Moar , rust-for-linux@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 19 Oct 2023 03:05:19 -0700 (PDT) > > > 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. > > Then I strongly suggest putting a nonzero value here. As you write > that "with every release of LLVM, both of these sanitizers eat up more and more > of the stack", don't you want to have at least some canary to detect > when "more and more" is guaranteed to run into problems? FRAME_WARN is a poor canary. First, it does not necessarily indicate that a build is faulty (a single bloated stack frame won't crash the system). Second, devs are unlikely to fix a function because its stack frame is too big under some exotic tool+compiler combination. So the remaining option would be to just increase the frame size every time a new function surpasses the limit.