aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-04-25 17:35:10 -0700
committerDavid S. Miller <davem@davemloft.net>2019-04-27 20:17:19 -0400
commiteb3d38d5adb520435d4e4af32529ccb13ccc9935 (patch)
tree19cc2e28953e3f4b42b2e96fb83fca36f877659a /net/netlink
parentnet/tls: don't copy negative amounts of data in reencrypt (diff)
downloadlinux-dev-eb3d38d5adb520435d4e4af32529ccb13ccc9935.tar.xz
linux-dev-eb3d38d5adb520435d4e4af32529ccb13ccc9935.zip
net/tls: fix copy to fragments in reencrypt
Fragments may contain data from other records so we have to account for that when we calculate the destination and max length of copy we can perform. Note that 'offset' is the offset within the message, so it can't be passed as offset within the frag.. Here skb_store_bits() would have realised the call is wrong and simply not copy data. 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 'net/netlink')
0 files changed, 0 insertions, 0 deletions