Re: [PATCH 5/6] nfs: check all iov segments for correct memory access rights

Andi Kleen
2006-05-22T11:51:44Z

Chuck Lever <cel@netapp.com> writes:

> Add Badari's function to check access for all the segments in a passed-in
> iov. We can use the total byte count later.

It seems bogus to me because there is no big reason the access_ok
can't be done later together with the real access. After all the
real access has to check anyways to handle unmapped pages.

To pass checking is more error prone than single pass.

-Andi