From patchwork Thu Dec 21 18:06:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 13502501 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 210BCC35274 for ; Thu, 21 Dec 2023 18:06:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B39CC6B0083; Thu, 21 Dec 2023 13:06:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AE9CB6B0085; Thu, 21 Dec 2023 13:06:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D7B86B0087; Thu, 21 Dec 2023 13:06:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 90DFE6B0083 for ; Thu, 21 Dec 2023 13:06:44 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4C0F080E89 for ; Thu, 21 Dec 2023 18:06:44 +0000 (UTC) X-FDA: 81591605928.09.D3E59D4 Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) by imf30.hostedemail.com (Postfix) with ESMTP id A32C880024 for ; Thu, 21 Dec 2023 18:06:42 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=de36pMIh; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf30.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.176 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703182002; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=i0GLSbu+FVh1lkI5GuUWSCHjI1Tbl3xktQLpxtmlTZ0=; b=qHjBnc87iqg2JUJobzHMroFs2c/RNa9qTX8i3temsXC/dmvZ8v8CEjuBtBwWJeZPG7ZlmB NljbrxxMgASo8ufYcCTXI8YChzOeyTqzmioSr2CJu+XvfvtfpAWK9S/+vTmivPmFfst9er zCaC8sNWPg31BmQokrTI45BrBQNfxYw= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=de36pMIh; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf30.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.176 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703182002; a=rsa-sha256; cv=none; b=reEY80PEeIbEjnVFYC5ni4y0v087jkUJHSHx+1QKbDP+ERuIXhnDjApqkzN73/RtpnEvi9 twaytJQGLpEmR54Cev0F58haJPeERW1QMWgbSP7sIPC5iWE0pJ2XN5hgU/q9GvPJdQFf+M EV/Kog+Uvz3UZJ9kedZPp/cHdUR9MPU= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1703181999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=i0GLSbu+FVh1lkI5GuUWSCHjI1Tbl3xktQLpxtmlTZ0=; b=de36pMIhG8dcEtDj1hZGl0phPdkCusN9KYUxUjLrW6Qo7MOPk83R1yaVV2uQEqBzQ9Yi+I YrcwyKMDU4VHAw2fGeiuG8vGwQh9gvchz92Kt9bLVQkBDV56hk2bCBHS9o+9voTcf8YRmx 25kNS+cuLp7JEOirxbMf5QL/HnObxa0= From: andrey.konovalov@linux.dev To: Andrew Morton Cc: Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH mm] kasan: fix for "kasan: rename and document kasan_(un)poison_object_data" Date: Thu, 21 Dec 2023 19:06:37 +0100 Message-Id: <20231221180637.105098-1-andrey.konovalov@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: A32C880024 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: jimdpw174rjobd4nhhj1756z558hz1za X-HE-Tag: 1703182002-865884 X-HE-Meta: U2FsdGVkX18eSaVL3WalpnB9Ai/3qC2CZ6dn2zjDFZfY2Qpo1PzPrtWo1RwV7+SIUwPcA1UvPk7AWSodqb3cNqRSUwN7JcS43Vf4514dh3Qje3Ger71kCjg7toV7HDKEUHlBhTZKaK7YbB7fjnKodw0DP/Az7l8P/kiQpGMNuExkZDQ0BziTVKSyoDXfFlpE6rAFLnAW+h02Sxgcah0pRwHzQu2RPY3jf1f+2vShAfw08v0vMhYVA5MHctZEMHCwgqgnMAZn6esVH88uV+AYWAH/mKKtC9EIkAM3aHArAFcLRCXg8w/RLh4EL6SXogXFVjX9oViF1HsWi7s2N+zV+rEr3IoKND6/2NQVr+Kyj/uKWy6qpDKv0vCqrmWGNRhEeLHyrE+ARHju73zsIiPKZm356bWHpIToeRSoWq4AqlYKaDHKXjWQLbqvk2VbTq/hCy5wK4E1HKDtwnnxWfmMIuzg589SwwkAaO5GJpdDI6oAuDkUjAfF+vVHA3PYFmenUDmaEOKijz5WGUTeRyD2WmkbZ+u62LJltQKBWdp8MpWHdrTN3dOm22g8NWwzGnbrhEDhs75VTqW5oLC27nltmrO/vc2Vz6pLN6TplN4dAFKTd9PzgyChv42IPucT+UtKyYzvIdFAsa8WPawDCb5Ij3YtI8a+EW4Vwyn0uLTQ01CTgOXMhkiiwIi7XSEke3eWcJEb5+C70rO4DYxzoSwIhmE17CJkMheQZG6py3u4W2isTjDvChyI88z5/u5n+BaX3s7XM9THx7jQbxw0ttpnRYsf0R7CoAatLlZ9aq3tQ4l0MuUp6icsjQsxkYVisL2qTl/7wY99rk22Z/e4C7LySjJ4KMIm4gZUe/GWHjkERi0VahwAw5o8rdZzx+DF17P94Fa+nfyn2qUKmzf91+dLfGp/ixMK+sINsXywvrSP7XhIDTiGINFuAEVf/5xGhtI3HWGcrf1DP6S6AyjAtP1 5ERgnIdS cW8LnUjyTsesBAA2pJyJy9beprPiJbFp/H4rnIMDGxTgkf9rXFUKg6uCw9t1AcS3eUfvtcHBAkHS+8knTSSoRXk+HXAP32MguVv5nWEW5mLW5LbmqBbpj7I4uxSuTR+SbcjLGyKnctCMeHtz94Bec1/irUH9aw+MLAPdMKkLNvIWjrv31oQFqL7I8yN7bsm7ek3Nxp1zwY9g8BA4K8Ok2/jaYjA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Andrey Konovalov Update references to renamed functions in comments. Fixes: ac6b240e1ede ("kasan: rename and document kasan_(un)poison_object_data") Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver --- mm/kasan/shadow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c index d687f09a7ae3..0154d200be40 100644 --- a/mm/kasan/shadow.c +++ b/mm/kasan/shadow.c @@ -130,7 +130,7 @@ void kasan_poison(const void *addr, size_t size, u8 value, bool init) /* * Perform shadow offset calculation based on untagged address, as - * some of the callers (e.g. kasan_poison_object_data) pass tagged + * some of the callers (e.g. kasan_poison_new_object) pass tagged * addresses to this function. */ addr = kasan_reset_tag(addr); @@ -170,7 +170,7 @@ void kasan_unpoison(const void *addr, size_t size, bool init) /* * Perform shadow offset calculation based on untagged address, as - * some of the callers (e.g. kasan_unpoison_object_data) pass tagged + * some of the callers (e.g. kasan_unpoison_new_object) pass tagged * addresses to this function. */ addr = kasan_reset_tag(addr);