Skip to contentSkip to conversation

kasan: fix for "kasan: rename and document kasan_(un)poison_object_data"

PATCH In review [email protected] 2 participants 2 messages Dec 21, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kasan: fix for "kasan: rename and document kasan_(un)poison_object_data"

From: Andrey Konovalov <[email protected]>

Update references to renamed functions in comments.

Fixes ac6b240e1ede ("kasan: rename and document kasan_(un)poison_object_data")
---
 mm/kasan/shadow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/kasan/shadow.c +2 -2
index d687f09a7ae3..0154d200be40 100644
@@ -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);
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Thu, 21 Dec 2023 at 19:06, <[email protected]> wrote:

From: Andrey Konovalov <[email protected]>

Update references to renamed functions in comments.

Fixes ac6b240e1ede ("kasan: rename and document kasan_(un)poison_object_data")
Quoted 29 lines
---
 mm/kasan/shadow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/kasan/shadow.c +2 -3
index d687f09a7ae3..0154d200be40 100644
@@ -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);
--

2.25.1