Files
linux/net
Florian Westphal cef0e9eb22 netfilter: ebtables: also count base chain policies
commit 3b48300d5c upstream.

ebtables doesn't include the base chain policies in the rule count,
so we need to add them manually when we call into the x_tables core
to allocate space for the comapt offset table.

This lead syzbot to trigger:
WARNING: CPU: 1 PID: 9012 at net/netfilter/x_tables.c:649
xt_compat_add_offset.cold+0x11/0x36 net/netfilter/x_tables.c:649

Reported-by: syzbot+276ddebab3382bbf72db@syzkaller.appspotmail.com
Fixes: 2035f3ff8e ("netfilter: ebtables: compat: un-break 32bit setsockopt when no rules are present")
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>
2019-08-25 10:47:50 +02:00
..
2019-06-22 08:15:13 +02:00
2019-03-23 20:09:51 +01:00
2019-07-10 09:53:46 +02:00
2018-07-24 14:10:42 -07:00
2019-03-19 13:12:40 +01:00
2019-01-09 17:38:33 +01:00
2018-07-24 14:10:43 -07:00