• Steffen Klassert's avatar
    esp: Fix skb tailroom calculation · 54ffd790
    Steffen Klassert authored
    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: cac2661c ("esp4: Avoid skb_cow_data whenever possible")
    Fixes: 03e2a30f ("esp6: Avoid skb_cow_data whenever possible")
    Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
    54ffd790
esp4.c 22.8 KB