From: Thomas Graf Date: Tue, 6 Jan 2015 00:04:21 +0000 (+0100) Subject: netlink: Warn on unordered or illegal nla_nest_cancel() or nlmsg_cancel() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~285 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=149118d89355fb0e1a898f47977f8ae9be8e14e7;p=pandora-kernel.git 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: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed