Skip to content
Commit 149118d8 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

netlink: Warn on unordered or illegal nla_nest_cancel() or nlmsg_cancel()



Calling nla_nest_cancel() in a different order as the nesting was
built up can lead to negative offsets being calculated which
results in skb_trim() being called with an underflowed unsigned
int. Warn if mark < skb->data as it's definitely a bug.

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a515abd7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment