Re: [PATCH 2/4] tee: Remove vmalloc page support

From: Al Viro
Date: Mon Oct 10 2022 - 13:58:07 EST


On Mon, Oct 10, 2022 at 10:20:15AM -0700, Linus Torvalds wrote:
> On Mon, Oct 10, 2022 at 12:42 AM Christoph Hellwig <hch@xxxxxx> wrote:
> >
> > I suspect the best long term option would be to just pass an iov_iter..
>
> Hmm. Yeah, that sounds like a workable model, and solves the problem
> JensW pointed out with my simplistic "just pass a page array" approach
> where you also need to keep track of how to release things.

Except that then you need to get iov_iter_get_pages analogue that would
work for ITER_KVEC, which is exact same problem right back.