Skip to content
Snippets Groups Projects
Commit dc6de336 authored by David S. Miller's avatar David S. Miller
Browse files

[NET]: Add skb->truesize assertion checking.


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>
parent b60b49ea
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment