Re: [PATCH v2 0/3] kunit: fix a UAF bug and do some optimization

From: Brendan Higgins
Date: Thu Mar 10 2022 - 03:08:05 EST


On Wed, Mar 9, 2022 at 3:19 AM 'Peng Liu' via KUnit Development
<kunit-dev@xxxxxxxxxxxxxxxx> wrote:
>
> This series is to fix UAF when running kfence test case test_gfpzero,
> which is time costly. This UAF bug can be easily triggered by setting
> CONFIG_KFENCE_NUM_OBJECTS = 65535. Furthermore, some optimization for
> kunit tests has been done.

I was able to reproduce the error you described and can confirm that I
didn't see the UAF after applying your patches.

Tested-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>