• H
    [NET]: Fix segmentation of linear packets · c8884edd
    Herbert Xu 提交于
    skb_segment fails to segment linear packets correctly because it
    tries to write all linear parts of the original skb into each
    segment.  This will always panic as each segment only contains
    enough space for one MSS.
    
    This was not detected earlier because linear packets should be
    rare for GSO.  In fact it still remains to be seen what exactly
    created the linear packets that triggered this bug.  Basically
    the only time this should happen is if someone enables GSO
    emulation on an interface that does not support SG.
    Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    c8884edd
skbuff.c 50.6 KB