Re: [PATCH] mm: Fail when offset == num in first check of vm_map_pages_zero()
From: Miguel Ojeda
Date: Sat Jun 01 2019 - 06:44:59 EST
On Wed, May 29, 2019 at 9:09 AM Souptick Joarder <jrdr.linux@xxxxxxxxx> wrote:
>
> On Wed, May 29, 2019 at 1:38 AM Miguel Ojeda
> <miguel.ojeda.sandonis@xxxxxxxxx> wrote:
> >
> > If the user asks us for offset == num, we should already fail in the
> > first check, i.e. the one testing for offsets beyond the object.
> >
> > At the moment, we are failing on the second test anyway,
> > since count cannot be 0. Still, to agree with the comment of the first
> > test, we should first there.
>
> I think, we need to cc linux-mm.
Cc'ing Andrew as well as Souptick suggested me.
Cheers,
Miguel