From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0221D3346A6; Thu, 18 Dec 2025 12:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.228.1.57 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766062505; cv=none; b=edBTEhveipAc+uAZl6QlRc2OdGpRjU8WidD+8nMp5XUKkgGJ9vh0Rzp4MLEMbvnKzgDFznrhwTY/kZMPZ5Xo1mCbpc4GvFznPzcXwHghsjIeVrmkRzeNteT/6s/o9Za0oh+lP71lxQ7R1F4kuYQeMKnj2/+HtvY7rcokoxOqBiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766062505; c=relaxed/simple; bh=kbwMReahWF/IA3eRamkHo7CDmUiDY9Tn3f7plAlUrsg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b0xV7/iJ9VQdWPdSZ2t6RgchdJV8rQbYXZwf344X4rp21UaRBpDxF0X13hAFxYTt4B52sisJH8231XziQLOJBvOTC/BzL7ZfL6x82aniblef81xrRf37CJGYQST8Ezep2yvnt6+sSTNc5brfiFTlVz2AAq6diE1VZrETD4z5C4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org; spf=pass smtp.mailfrom=kernel.crashing.org; arc=none smtp.client-ip=63.228.1.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost [127.0.0.1]) by gate.crashing.org (8.18.1/8.18.1/Debian-2) with ESMTP id 5BICsdLc454691; Thu, 18 Dec 2025 06:54:40 -0600 Received: (from segher@localhost) by gate.crashing.org (8.18.1/8.18.1/Submit) id 5BICsdqL454690; Thu, 18 Dec 2025 06:54:39 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 18 Dec 2025 06:54:39 -0600 From: Segher Boessenkool To: Peter Zijlstra Cc: Marco Elver , Ard Biesheuvel , Kees Cook , Brendan Jackman , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-toolchains@vger.kernel.org Subject: Re: [PATCH 0/2] Noinstr fixes for K[CA]SAN with GCOV Message-ID: References: <20251218095112.GX3707837@noisy.programming.kicks-ass.net> <20251218121813.GA2378051@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-toolchains@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251218121813.GA2378051@noisy.programming.kicks-ass.net> Hi! On Thu, Dec 18, 2025 at 01:18:13PM +0100, Peter Zijlstra wrote: > On Thu, Dec 18, 2025 at 05:58:44AM -0600, Segher Boessenkool wrote: > > > You might have more success getting the stuff backported to some > > distro(s) you care about? Or get people to use newer compilers more > > quickly of course, "five years" before people have it is pretty > > ridiculous, two years is at the tail end of things already. > > There is a difference between having and requiring it :/ Our current > minimum compiler version is gcc-8 or clang-15 (IIRC). Very much so. If you have good reasons for requiring it, make sure you voice that with your backport request! Nothing we (again, GCC) do is *only* motivated by procedures. We can do unusual things in unusual situations. But you need extraordinary evidence for why extraordinary things would be needed, of course. Does that apply here, you think? > On the bright side, I think we can be more aggressively with compiler > versions for debug builds vs regular builds. Not being able to build a > KASAN/UBSAN/whateverSAN kernel isn't too big of a problem (IMO). Absolutely. Just document the feature as needing a recent compiler! Segher