Re: [PATCH v2] vmap(): don't allow invalid pages

From: Yury Norov
Date: Tue Jan 25 2022 - 21:29:18 EST


On Tue, Jan 25, 2022 at 6:25 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Tue, 18 Jan 2022 17:21:09 -0800 Yury Norov <yury.norov@xxxxxxxxx> wrote:
>
> > vmap() takes struct page *pages as one of arguments, and user may provide
> > an invalid pointer which would lead to data abort at address translation
> > later.
>
> Does "user" mean userspace code?
>
> If so, please tell us much more about the means by which userspace can
> trigger this problem.

User means user of vmap() API. The discussion is here:

https://lore.kernel.org/linux-mm/20220118235244.540103-1-yury.norov@xxxxxxxxx/

I'll send v3 soon with more details in the patch description.