[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aWqIYkx-jrjbIXeS@wieczorr-mobl1.localdomain>
Date: Fri, 16 Jan 2026 18:53:28 +0000
From: Maciej Wieczor-Retman <m.wieczorretman@...me>
To: Andrey Ryabinin <ryabinin.a.a@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, Maciej Żenczykowski <maze@...gle.com>, Alexander Potapenko <glider@...gle.com>, Andrey Konovalov <andreyknvl@...il.com>, Dmitry Vyukov <dvyukov@...gle.com>, Vincenzo Frascino <vincenzo.frascino@....com>, kasan-dev@...glegroups.com, Uladzislau Rezki <urezki@...il.com>, linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] mm-kasan-kunit-extend-vmalloc-oob-tests-to-cover-vrealloc-fix
Tested on a Sierra Forest server this time, still no issues both on generic and
sw_tags.
Tested-by: Maciej Wieczor-Retman <maciej.wieczor-retman@...el.com>
On 2026-01-16 at 14:28:22 +0100, Andrey Ryabinin wrote:
>Adjust vrealloc() size to verify full-granule poisoning/unpoisoning
>in tag-based modes.
>
>Signed-off-by: Andrey Ryabinin <ryabinin.a.a@...il.com>
>Cc: Andrey Konovalov <andreyknvl@...il.com>
>---
> mm/kasan/kasan_test_c.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/mm/kasan/kasan_test_c.c b/mm/kasan/kasan_test_c.c
>index cc8fc479e13a..b4d157962121 100644
>--- a/mm/kasan/kasan_test_c.c
>+++ b/mm/kasan/kasan_test_c.c
>@@ -1881,7 +1881,7 @@ static void vmalloc_oob(struct kunit *test)
>
> vmalloc_oob_helper(test, v_ptr, size);
>
>- size--;
>+ size -= KASAN_GRANULE_SIZE + 1;
> v_ptr = vrealloc(v_ptr, size, GFP_KERNEL);
> KUNIT_ASSERT_NOT_ERR_OR_NULL(test, v_ptr);
>
>@@ -1889,7 +1889,7 @@ static void vmalloc_oob(struct kunit *test)
>
> vmalloc_oob_helper(test, v_ptr, size);
>
>- size += 2;
>+ size += 2 * KASAN_GRANULE_SIZE + 2;
> v_ptr = vrealloc(v_ptr, size, GFP_KERNEL);
> KUNIT_ASSERT_NOT_ERR_OR_NULL(test, v_ptr);
>
>--
>2.52.0
>
>
--
Kind regards
Maciej Wieczór-Retman
Powered by blists - more mailing lists