From: Pablo Neira Date: Mon, 3 Jun 2013 09:28:43 +0000 (+0000) Subject: net: fix sk_buff head without data area X-Git-Tag: v3.10-rc5~25^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e71d9d77c07fa7d4c42287a177f7b738d0cd4b9;p=pandora-kernel.git net: fix sk_buff head without data area Eric Dumazet spotted that we have to check skb->head instead of skb->data as skb->head points to the beginning of the data area of the skbuff. Similarly, we have to initialize the skb->head pointer, not skb->data in __alloc_skb_head. After this fix, netlink crashes in the release path of the sk_buff, so let's fix that as well. This bug was introduced in (0ebd0ac net: add function to allocate sk_buff head without data area). Reported-by: Eric Dumazet Signed-off-by: Pablo Neira Ayuso Signed-off-by: David S. Miller --- Reading git-diff-tree failed