Re: [PATCH] ring-buffer: Fix a oob in __rb_map_vma

From: Steven Rostedt
Date: Wed Dec 18 2024 - 09:33:44 EST


On Wed, 18 Dec 2024 14:31:31 +0000
Vincent Donnefort <vdonnefort@xxxxxxxxxx> wrote:

> Aside, there's a selftest to check for the overflow of subbufs with the
> mapping... but of course it didn't test with offset > nr_subbufs.
>
> Do you think it is worth to extend it to cover this case? I'm happy to do a
> quick patch.

Yes, it should check that case.

Thanks,

-- Steve