summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-04-26 03:35:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-05 15:43:40 +0300
commitf7f4d4b85b83d0296dcf805b61f64c50833f5f5a (patch)
tree7dc29717f91a672cef7205a97e3d14328db4b6c0 /lib/mpi/mpi-bit.c
parent126255f1ef2b61d3ca59488d02cdd81219cb84d2 (diff)
downloadlinux-f7f4d4b85b83d0296dcf805b61f64c50833f5f5a.tar.xz
net/tls: don't copy negative amounts of data in reencrypt
[ Upstream commit 97e1caa517e22d62a283b876fb8aa5f4672c83dd ] There is no guarantee the record starts before the skb frags. If we don't check for this condition copy amount will get negative, leading to reads and writes to random memory locations. Familiar hilarity ensues. Fixes: 4799ac81e52a ("tls: Add rx inline crypto offload") Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: John Hurley <john.hurley@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions