]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NETFILTER: nfnetlink_queue: fix computation of allocated size for netlink skb
authorEric Leblond <eric@inl.fr>
Mon, 17 Mar 2008 14:41:46 +0000 (15:41 +0100)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:49 +0000 (11:47 -0700)
commitc5251ae9027b9d2dcc413335bf834e896f769c30
treee463e3a4586bd6da7976e1f0b2c49540d3af3062
parent32b4faa2b264717b37114bdbf0f799ab9d8a850b
NETFILTER: nfnetlink_queue: fix computation of allocated size for netlink skb

Upstream commit cabaa9bf:

Size of the netlink skb was wrongly computed because the formula was using
NLMSG_ALIGN instead of NLMSG_SPACE. NLMSG_ALIGN does not add the room for
netlink header as NLMSG_SPACE does. This was causing a failure of message
building in some cases.

On my test system, all messages for packets in range [8*k+41, 8*k+48] where k
is an integer were invalid and the corresponding packets were dropped.

Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/netfilter/nfnetlink_queue.c