Commit 2dfd1bd9 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Linus Torvalds

kasan: update function name in comments

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
Link: https://lkml.kernel.org/r/20220219012433.890941-1-pcc@google.comSigned-off-by: default avatarPeter Collingbourne <pcc@google.com>
Reviewed-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Reviewed-by: default avatarMarco Elver <elver@google.com>
Reviewed-by: default avatarAndrey Konovalov <andreyknvl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 09eb911d
...@@ -786,7 +786,7 @@ static void ksize_uaf(struct kunit *test) ...@@ -786,7 +786,7 @@ static void ksize_uaf(struct kunit *test)
static void kasan_stack_oob(struct kunit *test) static void kasan_stack_oob(struct kunit *test)
{ {
char stack_array[10]; char stack_array[10];
/* See comment in kasan_global_oob. */ /* See comment in kasan_global_oob_right. */
char *volatile array = stack_array; char *volatile array = stack_array;
char *p = &array[ARRAY_SIZE(stack_array) + OOB_TAG_OFF]; char *p = &array[ARRAY_SIZE(stack_array) + OOB_TAG_OFF];
...@@ -799,7 +799,7 @@ static void kasan_alloca_oob_left(struct kunit *test) ...@@ -799,7 +799,7 @@ static void kasan_alloca_oob_left(struct kunit *test)
{ {
volatile int i = 10; volatile int i = 10;
char alloca_array[i]; char alloca_array[i];
/* See comment in kasan_global_oob. */ /* See comment in kasan_global_oob_right. */
char *volatile array = alloca_array; char *volatile array = alloca_array;
char *p = array - 1; char *p = array - 1;
...@@ -814,7 +814,7 @@ static void kasan_alloca_oob_right(struct kunit *test) ...@@ -814,7 +814,7 @@ static void kasan_alloca_oob_right(struct kunit *test)
{ {
volatile int i = 10; volatile int i = 10;
char alloca_array[i]; char alloca_array[i];
/* See comment in kasan_global_oob. */ /* See comment in kasan_global_oob_right. */
char *volatile array = alloca_array; char *volatile array = alloca_array;
char *p = array + i; char *p = array + i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment