From nobody Mon Dec 1 22:04:02 2025 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 99795288C81 for ; Fri, 28 Nov 2025 03:34:07 +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=1764300849; cv=none; b=m9dZu8zSzX1e0JTveadfjB4j2my45osiqGxvc8k27P9sV0h4Qfs2JNXJ+ED4Eu6VlK+scIxcWO48zSKE7ztOfVzYeMS3Sa+2h/PdjOVpkUEuZa8Jr7ycmeLebVWnYF5hhMhHnz2DOnr7Xkg8hcYvqiFT05FjFooCiQfrFoZdDFA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764300849; c=relaxed/simple; bh=zuHu4IhNijEY6qjwxc9hvHybiFvTy8FvcKfIsBVyeOI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-type; b=i99w4OxtT89CqIadKQe9wUZUmDi1yEAXrpQpDQWg7ovd0uuw3R8Y5818JYwXaomzo/tHI0ssTHj8CkSogVlcbAuPy9WKw/21rpT9qNdUphwKHmgqwBf8G1ECrQ7WHildfG1TOuTQcNQo7BLnJfCyDY5s0k9yWi3DQl34j2czzIQ= 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=F0+ZiwjR; 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="F0+ZiwjR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764300846; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/phgffaeGBCaBWv4I/S2l048MgyIWecznBSacZiKmGw=; b=F0+ZiwjR4L/C+i4TCJVbnM+ekz96s66IXvIsCmjj5yuQSRBdc8QQ44eIMFMUFIUCHeRrLd UMBaVeNkvAzga83DUKtH/EqxAcQpqC9Jc4JrmZk9t67gGsO90kEsUKjYgDmzVRkwoZYDo+ nLgEG5rUJzND9mpygbbJ1vpH9q3v2I4= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-591-g_ehcwKEPAiWXVHUWxLKOg-1; Thu, 27 Nov 2025 22:34:02 -0500 X-MC-Unique: g_ehcwKEPAiWXVHUWxLKOg-1 X-Mimecast-MFC-AGG-ID: g_ehcwKEPAiWXVHUWxLKOg_1764300840 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id ABDB71956094; Fri, 28 Nov 2025 03:34:00 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (unknown [10.72.112.7]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3203D19560B0; Fri, 28 Nov 2025 03:33:52 +0000 (UTC) From: Baoquan He To: linux-mm@kvack.org Cc: ryabinin.a.a@gmail.com, andreyknvl@gmail.com, glider@google.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, Baoquan He Subject: [PATCH v4 03/12] mm/kasan/sw_tags: don't initialize kasan if it's disabled Date: Fri, 28 Nov 2025 11:33:11 +0800 Message-ID: <20251128033320.1349620-4-bhe@redhat.com> In-Reply-To: <20251128033320.1349620-1-bhe@redhat.com> References: <20251128033320.1349620-1-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Content-Type: text/plain; charset="utf-8" Signed-off-by: Baoquan He --- mm/kasan/sw_tags.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/kasan/sw_tags.c b/mm/kasan/sw_tags.c index 6c1caec4261a..58edb68efc09 100644 --- a/mm/kasan/sw_tags.c +++ b/mm/kasan/sw_tags.c @@ -40,6 +40,9 @@ void __init kasan_init_sw_tags(void) { int cpu; =20 + if (kasan_arg_disabled) + return; + for_each_possible_cpu(cpu) per_cpu(prng_state, cpu) =3D (u32)get_cycles(); =20 --=20 2.41.0