]> www.infradead.org Git - users/dwmw2/linux.git/commit
netfilter: ebtables: Fix argument order to ADD_COUNTER
authorTodd Seidelmann <tseidelmann@linode.com>
Wed, 14 Aug 2019 14:54:16 +0000 (10:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:29 +0000 (07:18 +0200)
commit399676d85515354affca656ca8d98286ba58795b
tree91311f5105de3764aa68c8e210370e134305f4f4
parent5b0d408d8ad60c431282a814c11a7d8985dbe221
netfilter: ebtables: Fix argument order to ADD_COUNTER

[ Upstream commit f20faa06d83de440bec8e200870784c3458793c4 ]

The ordering of arguments to the x_tables ADD_COUNTER macro
appears to be wrong in ebtables (cf. ip_tables.c, ip6_tables.c,
and arp_tables.c).

This causes data corruption in the ebtables userspace tools
because they get incorrect packet & byte counts from the kernel.

Fixes: d72133e628803 ("netfilter: ebtables: use ADD_COUNTER macro")
Signed-off-by: Todd Seidelmann <tseidelmann@linode.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bridge/netfilter/ebtables.c