]> git.baikalelectronics.ru Git - kernel.git/commit
net: Kill skb_truesize_check(), it only catches false-positives.
authorDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 05:24:05 +0000 (21:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 05:24:05 +0000 (21:24 -0800)
commitdec115b0356863d6f8a3680e94f309b4c6829031
tree97b7663f77f8274cb52d429c8a7db97c70daf745
parentd7de85bf512b308a5002d2529482afec52def6ba
net: Kill skb_truesize_check(), it only catches false-positives.

A long time ago we had bugs, primarily in TCP, where we would modify
skb->truesize (for TSO queue collapsing) in ways which would corrupt
the socket memory accounting.

skb_truesize_check() was added in order to try and catch this error
more systematically.

However this debugging check has morphed into a Frankenstein of sorts
and these days it does nothing other than catch false-positives.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/sock.h
net/core/skbuff.c
net/core/sock.c