summaryrefslogtreecommitdiffstats
path: root/crypto/skcipher.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-05-02 17:57:37 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2021-06-10 17:45:10 +0200
commit8409a0d261e20180361e7afe6d89847d1bad4ce8 (patch)
tree1c489a52514e16da863c535465c2b4206189a4b7 /crypto/skcipher.c
parentiov_iter: optimize iov_iter_advance() for iovec and kvec (diff)
downloadlinux-8409a0d261e20180361e7afe6d89847d1bad4ce8.tar.xz
linux-8409a0d261e20180361e7afe6d89847d1bad4ce8.zip
sanitize iov_iter_fault_in_readable()
1) constify iov_iter argument; we are not advancing it in this primitive. 2) cap the amount requested by the amount of data in iov_iter. All existing callers should've been safe, but the check is really cheap and doing it here makes for easier analysis, as well as more consistent semantics among the primitives. 3) don't bother with iterate_iovec(). Explicit loop is not any harder to follow, and we get rid of standalone iterate_iovec() users - it's only used by iterate_and_advance() and (soon to be gone) iterate_all_kinds(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'crypto/skcipher.c')
0 files changed, 0 insertions, 0 deletions