• James Chapman's avatar
    Fix L2TP oopses. · 7581142e
    James Chapman authored
    changeset 91781004 in mainline.
    
    [PPP]: L2TP: Fix oops in transmit and receive paths
    
    Changes made on 18-sep to fix skb handling in the pppol2tp driver
    broke the transmit and receive paths. Users are only running into this
    now because distros are now using 2.6.23 and I must have messed up
    when I tested the change.
    
    For receive, we now do our own calculation of how much to pull from
    the skb (variable length L2TP header) rather than using
    skb_transport_offset(). Also, if the skb isn't a data packet, it must
    be passed back to UDP with skb->data pointing to the UDP header.
    
    For transmit, make sure skb->sk is set up because ip_queue_xmit()
    needs it.
    Signed-off-by: default avatarJames Chapman <jchapman@katalix.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    7581142e
pppol2tp.c 64.5 KB