• David S. Miller's avatar
    [NET]: Add skb->truesize assertion checking. · dc6de336
    David S. Miller authored
    
    
    Add some sanity checking.  truesize should be at least sizeof(struct
    sk_buff) plus the current packet length.  If not, then truesize is
    seriously mangled and deserves a kernel log message.
    
    Currently we'll do the check for release of stream socket buffers.
    
    But we can add checks to more spots over time.
    
    Incorporating ideas from Herbert Xu.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    dc6de336
skbuff.h 38.5 KB