linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kasan: update function name in comments
@ 2022-02-19  1:24 Peter Collingbourne
  2022-02-19  2:00 ` Miaohe Lin
  2022-02-22 16:38 ` Andrey Konovalov
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Collingbourne @ 2022-02-19  1:24 UTC (permalink / raw)
  To: Andrey Konovalov, Marco Elver
  Cc: Peter Collingbourne, Andrew Morton, linux-mm

The function kasan_global_oob was renamed to kasan_global_oob_right,
but the comments referring to it were not updated. Do so.

Link: https://linux-review.googlesource.com/id/I20faa90126937bbee77d9d44709556c3dd4b40be
Signed-off-by: Peter Collingbourne <pcc@google.com>
Fixes: e5f4728767d2 ("kasan: test: add globals left-out-of-bounds test")
---
 lib/test_kasan.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/test_kasan.c b/lib/test_kasan.c
index 26a5c9007653..a8dfda9b9630 100644
--- a/lib/test_kasan.c
+++ b/lib/test_kasan.c
@@ -780,7 +780,7 @@ static void ksize_uaf(struct kunit *test)
 static void kasan_stack_oob(struct kunit *test)
 {
 	char stack_array[10];
-	/* See comment in kasan_global_oob. */
+	/* See comment in kasan_global_oob_right. */
 	char *volatile array = stack_array;
 	char *p = &array[ARRAY_SIZE(stack_array) + OOB_TAG_OFF];
 
@@ -793,7 +793,7 @@ static void kasan_alloca_oob_left(struct kunit *test)
 {
 	volatile int i = 10;
 	char alloca_array[i];
-	/* See comment in kasan_global_oob. */
+	/* See comment in kasan_global_oob_right. */
 	char *volatile array = alloca_array;
 	char *p = array - 1;
 
@@ -808,7 +808,7 @@ static void kasan_alloca_oob_right(struct kunit *test)
 {
 	volatile int i = 10;
 	char alloca_array[i];
-	/* See comment in kasan_global_oob. */
+	/* See comment in kasan_global_oob_right. */
 	char *volatile array = alloca_array;
 	char *p = array + i;
 
-- 
2.35.1.473.g83b2b277ed-goog



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-24  4:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-19  1:24 [PATCH] kasan: update function name in comments Peter Collingbourne
2022-02-19  2:00 ` Miaohe Lin
2022-02-21 11:15   ` Marco Elver
2022-02-23 22:30     ` Peter Collingbourne
2022-02-23 23:35       ` Marco Elver
2022-02-24  4:07         ` Andrew Morton
2022-02-22 16:38 ` Andrey Konovalov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox