From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 637323CE499 for ; Mon, 13 Apr 2026 13:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776088504; cv=none; b=DJA1j8gRLgy7vPa/xHzk2mDv22qaUQmhI8gcGu0ivMRQKU/tIJJcKU23N6iJnLogZvzb2sRcEdglOTu3BqSFQ0tpfYO0cm7llyWDWz2QPjjAXg5zyJWP+H0GV7TVCChNHNsSmU4B9VGUoYhdX+kFVKHTNznaCz5YVpe8bSUgbC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776088504; c=relaxed/simple; bh=g9MvET/533PJPNjqE6DRzQsMWOZZVgOd4QYxZM9qOEI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=K8inC1q6Bpesl6Lgz+2EhWCWtDevnd2eOPCD1BFHVkk2JG7Bn7ZubvpUbma1+dsbUqYO+Txr8Bz5/q/R4TsKm+5a9A5uJvx+eyRP8FQzmdJfR5dqzKhQawb7XWuo3ERN1k5yAYnGXPAij6D22CSw7xJ54RTz3O3UftS4z4MxWuU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [141.14.220.42] (g42.guest.molgen.mpg.de [141.14.220.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 4FB7F4C2C37D5B; Mon, 13 Apr 2026 15:54:37 +0200 (CEST) Message-ID: Date: Mon, 13 Apr 2026 15:54:34 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] kasan: Add abbreviation KASAN to init log To: Andrey Konovalov Cc: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Vincenzo Frascino , Andrew Morton , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20260413094034.6944-1-pmenzel@molgen.mpg.de> Content-Language: en-US From: Paul Menzel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Andrey, Am 13.04.26 um 14:37 schrieb Andrey Konovalov: > On Mon, Apr 13, 2026 at 11:40 AM Paul Menzel wrote: >> >> `sudo dmesg | grep -i kasan` comes back empty, at least confusing me. >> So, include the abbreviation in the log line. >> >> Before: >> >> KernelAddressSanitizer initialized (generic) >> >> After: >> >> KernelAddressSanitizer (KASAN) initialized (generic) >> >> Signed-off-by: Paul Menzel >> --- >> mm/kasan/generic.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/mm/kasan/generic.c b/mm/kasan/generic.c >> index 2b8e73f5f6a7..1fccf7cc9fce 100644 >> --- a/mm/kasan/generic.c >> +++ b/mm/kasan/generic.c >> @@ -44,7 +44,7 @@ void __init kasan_init_generic(void) >> { >> kasan_enable(); >> >> - pr_info("KernelAddressSanitizer initialized (generic)\n"); >> + pr_info("KernelAddressSanitizer (KASAN) initialized (generic)\n"); > > I think a better change would be to add: > > #define pr_fmt(fmt) "kasan: " fmt > > to generic.c. > > Similar to how this is done in sw/hw_tags.c. Isn’t there only this one log line in `generic.c`, so the generalization is not really needed? > And arguably, we could also drop the "KernelAddressSanitizer" part > from init messages, to make them look like: > > kasan: initialized (generic) Some analysis scripts might already depend on KernelAddressSanitizer, so I’d keep it. Kind regards, Paul