Re: [PATCH] hv_netvsc: Add check for kvmalloc_array

From: Jakub Kicinski
Date: Mon Mar 14 2022 - 13:12:59 EST


On Mon, 14 Mar 2022 16:35:00 +0800 Jiasheng Jiang wrote:
> On Mon, Mar 14, 2022 at 04:13:59PM +0800, Greg KH wrote:
> >> The failure of allocation is not included in the tests.
> >> And as far as I know, there is not any tool that has the
> >> ability to fail the allocation.
> >
> > There are tools that do this.
> >
>
> Thanks, could you please tell me the tools?

Google "linux kernel fail allocation test"
second result is "Fault injection capabilities infrastructure"
which is what you're looking for.

Please try harder next time.