netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON
authorFlorian Westphal <fw@strlen.de>
Sun, 14 Apr 2019 22:43:00 +0000 (00:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:32:04 +0000 (09:32 +0200)
commit74da2dc3d3ded84bb9dc64568a4b6a9710828948
tree019a08ccda7163a1f31e11904d524146018c21ff
parent22aed03ea5580b71155e0a2da593506a0bc2cac5
netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON

commit 7caa56f006e9d712b44f27b32520c66420d5cbc6 upstream.

It means userspace gave us a ruleset where there is some other
data after the ebtables target but before the beginning of the next rule.

Fixes: 81e675c227ec ("netfilter: ebtables: add CONFIG_COMPAT support")
Reported-by: syzbot+659574e7bcc7f7eb4df7@syzkaller.appspotmail.com
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/netfilter/ebtables.c