From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 BB64636D51B for ; Sun, 30 Nov 2025 02:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764470976; cv=none; b=AOCXrdNB3ZGc+edLexNou3uNgMQY4OgCrgtXQVjDKtSg1Igptbrl+TyByxZcWk64OoBPDlFcG6k+hzfzyqpg43zT8nLCC8qqyQVqz5h9pSHocAPXukWS5XrNbReJinha8eCqJCOJmT60y2DnRODEmN6Kp4Tr6jCL4Sr0hPI4wXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764470976; c=relaxed/simple; bh=ZK0HlAPB6sKqrub+m9/mxRsNQ0zYMIvACBel4hThH34=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=he2y9FaKU1H8SRBOixjGyMr45zmBKsPwB5Gu6wIzRdtYk4GxwaSffZ6Ce71BXHTssS+hFlyWWeXn3h7/givil/qir9EmSRTBGJLj76ltm0EpmQiP44c3ojtgEmO5+9czpUmhNlcm0pL1gF/xetucR8+aqDEtZ+wH7AbCdv5T9RM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=W4aOeLTK; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="W4aOeLTK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764470973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Og04/bt+yhEkeXfMP3slZPqApRz+VQNIptaZnXqjJQA=; b=W4aOeLTKIwManqtLXiGw/Zwzx4FkydBFBc5B4vnK4hXAtu1XUXi6vEPtwVtiZ8cSpj0cpb UPUtOZl/yQOUkcyIbjVso1pIe/4/OwxCGGtQy33k1Zja61hceME7+m2ZYEn2gbzMz4VWoz Go1rOpu4AqK+4ZwEFZatCzcrVCfsEr4= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-449--EjyqyECN-2YKkxJ_5cbUA-1; Sat, 29 Nov 2025 21:49:29 -0500 X-MC-Unique: -EjyqyECN-2YKkxJ_5cbUA-1 X-Mimecast-MFC-AGG-ID: -EjyqyECN-2YKkxJ_5cbUA_1764470967 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BC3C1180048E; Sun, 30 Nov 2025 02:49:25 +0000 (UTC) Received: from localhost (unknown [10.72.112.6]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5839F1955F1A; Sun, 30 Nov 2025 02:49:22 +0000 (UTC) Date: Sun, 30 Nov 2025 10:49:18 +0800 From: Baoquan He To: Alexander Potapenko Cc: linux-mm@kvack.org, ryabinin.a.a@gmail.com, andreyknvl@gmail.com, dvyukov@google.com, vincenzo.frascino@arm.com, akpm@linux-foundation.org, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, elver@google.com, sj@kernel.org, lorenzo.stoakes@oracle.com, snovitoll@gmail.com, christophe.leroy@csgroup.eu Subject: Re: [PATCH v4 12/12] mm/kasan: make kasan=on|off take effect for all three modes Message-ID: References: <20251128033320.1349620-1-bhe@redhat.com> <20251128033320.1349620-13-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@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: X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 On 11/28/25 at 04:50pm, Alexander Potapenko wrote: > > @@ -30,7 +30,7 @@ static inline void kasan_enable(void) > > /* For architectures that can enable KASAN early, use compile-time check. */ > I think the behavior of kasan_enabled() is inconsistent with this comment now. You are right, that line should be removed. Thanks for careful checking. > > static __always_inline bool kasan_enabled(void) > > { > > - return IS_ENABLED(CONFIG_KASAN); > > + return false; > > } >