diff options
author | 2022-06-11 16:44:21 -0400 | |
---|---|---|
committer | 2022-07-06 16:27:17 -0400 | |
commit | 7392ed1734c319150b5ddec3f192a6405728e8d0 (patch) | |
tree | a611a08e4d20f75cb152b750ada69fedb4db2ac1 /net/unix/af_unix.c | |
parent | iov_iter_bvec_advance(): don't bother with bvec_iter (diff) | |
download | wireguard-linux-7392ed1734c319150b5ddec3f192a6405728e8d0.tar.xz wireguard-linux-7392ed1734c319150b5ddec3f192a6405728e8d0.zip |
iov_iter_get_pages{,_alloc}(): cap the maxsize with MAX_RW_COUNT
All callers can and should handle iov_iter_get_pages() returning
fewer pages than requested. All in-kernel ones do. And it makes
the arithmetical overflow analysis much simpler...
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions