diff options
author | Pablo Neira <pablo@netfilter.org> | 2013-06-03 09:28:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-04 17:26:49 -0700 |
commit | 5e71d9d77c07fa7d4c42287a177f7b738d0cd4b9 (patch) | |
tree | 143f0f3ea5dbebf7bee5e326c73002f36d87dbb3 /samples | |
parent | 9bc297ea0622bb2a6b3abfa2fa84f0a3b86ef8c8 (diff) | |
download | op-kernel-dev-5e71d9d77c07fa7d4c42287a177f7b738d0cd4b9.zip op-kernel-dev-5e71d9d77c07fa7d4c42287a177f7b738d0cd4b9.tar.gz |
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 <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions