summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
authorSteffen Klassert2017-08-25 07:34:35 +0200
committerSteffen Klassert2017-08-25 09:26:24 +0200
commit54ffd790792898f05e215dce5aa593473e80e92f (patch)
tree432d194da894dfa6f0911191987e68885235513a /net/xfrm/xfrm_user.c
parentesp: Fix locking on page fragment allocation (diff)
downloadkernel-qcow2-linux-54ffd790792898f05e215dce5aa593473e80e92f.tar.gz
kernel-qcow2-linux-54ffd790792898f05e215dce5aa593473e80e92f.tar.xz
kernel-qcow2-linux-54ffd790792898f05e215dce5aa593473e80e92f.zip
esp: Fix skb tailroom calculation
We use skb_availroom to calculate the skb tailroom for the ESP trailer. skb_availroom calculates the tailroom and subtracts this value by reserved_tailroom. However reserved_tailroom is a union with the skb mark. This means that we subtract the tailroom by the skb mark if set. Fix this by using skb_tailroom instead. Fixes: cac2661c53f3 ("esp4: Avoid skb_cow_data whenever possible") Fixes: 03e2a30f6a27 ("esp6: Avoid skb_cow_data whenever possible") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
0 files changed, 0 insertions, 0 deletions