summaryrefslogtreecommitdiff
path: root/lib/ts_bm.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-04-26 03:35:09 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-28 03:17:19 +0300
commit97e1caa517e22d62a283b876fb8aa5f4672c83dd (patch)
tree49c0a9a8eaf6ec2c1dc548f0e68fcc2c2f8ed91b /lib/ts_bm.c
parentb2a20fd0725e8b259c528820033e29fdb3724549 (diff)
downloadlinux-97e1caa517e22d62a283b876fb8aa5f4672c83dd.tar.xz
net/tls: don't copy negative amounts of data in reencrypt
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>
Diffstat (limited to 'lib/ts_bm.c')
0 files changed, 0 insertions, 0 deletions