summaryrefslogtreecommitdiff
path: root/init/calibrate.c
diff options
context:
space:
mode:
authorDoron Roberts-Kedes <doronrk@fb.com>2018-07-26 00:48:21 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-27 00:11:34 +0300
commit0a26cf3ff47d9e70fbed2fa79b0678ee70e25113 (patch)
tree2074e891ca6150854be948a07a4aa60d13ab3069 /init/calibrate.c
parent2ed9db3074fcd8d12709fe40ff0e691d74229818 (diff)
downloadlinux-0a26cf3ff47d9e70fbed2fa79b0678ee70e25113.tar.xz
tls: Skip zerocopy path for ITER_KVEC
The zerocopy path ultimately calls iov_iter_get_pages, which defines the step function for ITER_KVECs as simply, return -EFAULT. Taking the non-zerocopy path for ITER_KVECs avoids the unnecessary fallback. See https://lore.kernel.org/lkml/20150401023311.GL29656@ZenIV.linux.org.uk/T/#u for a discussion of why zerocopy for vmalloc data is not a good idea. Discovered while testing NBD traffic encrypted with ktls. Fixes: c46234ebb4d1 ("tls: RX path for ktls") Signed-off-by: Doron Roberts-Kedes <doronrk@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions