From nobody Tue Apr 7 22:04:28 2026 Received: from smtpbg154.qq.com (smtpbg154.qq.com [15.184.224.54]) (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 2693223BD06 for ; Wed, 11 Mar 2026 13:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=15.184.224.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773236294; cv=none; b=EZiPmaMRxvqSGRZGm1NEtqxhaziPmjjSvFIUOosp/SPqaLJCXm9E7+3dSfeLThzVBD8CdFaJyRA+hgMLnDxn08KJtXwi3Ai6jf/S8qQMRV13QUAQMWyCwzg4QbFBF5AvVulsJvweMjRb2D5qD/kv010V2TgZsHM8+FO3VZFG+2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773236294; c=relaxed/simple; bh=sN3/Y2OikYT9jgMoOryA7yHGZ69Ren2P6TwOqwyxp0A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=F+eQXaRS0NQitDLWyeeRJY8mEVLA2r+QBbULs5NG/7nNZ4IRpr0p0A2GjrVMq4ix9hDaLPA7MpHw1MWXsXuw4ifmtU3mVLf/g51J1fue8/Hio5hywceGKOpJEFCuzwHFokjrApaOuutBYZP4fk7mN8x65PvxKo67ZbwJLyr9dN4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=smail.nju.edu.cn; spf=pass smtp.mailfrom=smail.nju.edu.cn; dkim=pass (1024-bit key) header.d=smail.nju.edu.cn header.i=@smail.nju.edu.cn header.b=R94M/vCO; arc=none smtp.client-ip=15.184.224.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=smail.nju.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=smail.nju.edu.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=smail.nju.edu.cn header.i=@smail.nju.edu.cn header.b="R94M/vCO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smail.nju.edu.cn; s=iohv2404; t=1773236286; bh=5zzSgRPA82iiAdIOvCgIDUS1N4R0HEY8h9h1zhJXoYo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=R94M/vCON08nyLwDO2q+S2UXl4YzSmKSZe4jJw8XwlLan2zUix5WuF9k6GvF8bouY oFvYm15LXTOX8KXw5WogHkKX69AVlSFZ8zKKFMIT5Ii8BsaF+SPhgKql7PYuJu+jbD XMyagSFikn0p9wcUXyRfNjAgJt4VQ+V5O4GakGIM= X-QQ-mid: zesmtpgz5t1773236274t079a0750 X-QQ-Originating-IP: 9cac2cAzItmQCcu5KO5vb9CTOpudkOCs2azJ13yGGkc= Received: from localhost.localdomain ( [116.172.93.199]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 11 Mar 2026 21:37:52 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 14890899000611017582 EX-QQ-RecipientCnt: 12 From: Kexin Sun To: ryabinin.a.a@gmail.com, kasan-dev@googlegroups.com Cc: glider@google.com, andreyknvl@gmail.com, dvyukov@google.com, vincenzo.frascino@arm.com, linux-kernel@vger.kernel.org, julia.lawall@inria.fr, xutong.ma@inria.fr, yunbolyu@smu.edu.sg, ratnadiraw@smu.edu.sg, Kexin Sun Subject: [PATCH] kasan: update outdated comment Date: Wed, 11 Mar 2026 21:37:49 +0800 Message-Id: <20260311133749.798-1-kexinsun@smail.nju.edu.cn> X-Mailer: git-send-email 2.25.1 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-QQ-SENDSIZE: 520 Feedback-ID: zesmtpgz:smail.nju.edu.cn:qybglogicsvr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hfgNIjKYLCkqvn465br5RdcejG4+uT/sgnztwsL2M2bo7z+lVSfOHSFkC/Jh861XHHqhZwF 6UwYDvKgA64bcCtmOY603N8kd5LV6q0i+V/uNNx3cojcY7nwPza1/A= X-QQ-XMRINFO: Nq+8W0+stu50tPAe92KXseR0ZZmBTk3gLg== X-QQ-RECHKSPAM: 0 Content-Type: text/plain; charset="utf-8" The function kmalloc_large() was renamed kmalloc_large_noprof() by commit 7bd230a26648 ("mm/slab: enable slab allocation tagging for kmalloc and friends"), and subsequently renamed __kmalloc_large_noprof() by commit a0a44d9175b3 ("mm, slab: don't wrap internal functions with alloc_hooks()"), making it an internal implementation detail. Large kmalloc allocations are now performed through the public kmalloc() interface directly. Update the comment to remove the stale reference to kmalloc_large() accordingly. Assisted-by: unnamed:deepseek-v3.2 coccinelle Signed-off-by: Kexin Sun --- include/linux/kasan.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/kasan.h b/include/linux/kasan.h index 338a1921a50a..4cb600f5e521 100644 --- a/include/linux/kasan.h +++ b/include/linux/kasan.h @@ -352,8 +352,7 @@ bool __kasan_mempool_poison_object(void *ptr, unsigned = long ip); * kasan_mempool_unpoison_object(). * * This function operates on all slab allocations including large kmalloc - * allocations (the ones returned by kmalloc_large() or by kmalloc() with = the - * size > KMALLOC_MAX_SIZE). + * allocations (the ones returned by kmalloc() with the size > KMALLOC_MAX= _SIZE). * * Return: true if the allocation can be safely reused; false otherwise. */ @@ -381,8 +380,7 @@ void __kasan_mempool_unpoison_object(void *ptr, size_t = size, unsigned long ip); * original tags based on the pointer value. * * This function operates on all slab allocations including large kmalloc - * allocations (the ones returned by kmalloc_large() or by kmalloc() with = the - * size > KMALLOC_MAX_SIZE). + * allocations (the ones returned by kmalloc() with the size > KMALLOC_MAX= _SIZE). */ static __always_inline void kasan_mempool_unpoison_object(void *ptr, size_t size) --=20 2.25.1