summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-07-29 17:58:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-25 10:47:50 +0200
commitcef0e9eb22315f7c5f3126eb5003e3ea0348ee93 (patch)
tree060fa67d7d63e84eb7d6539b7164b6fa7e6e7649 /arch/riscv/include
parent07d92caeb945093b25eaca3454263a0beca607b2 (diff)
downloadlinux-stable-cef0e9eb22315f7c5f3126eb5003e3ea0348ee93.tar.gz
linux-stable-cef0e9eb22315f7c5f3126eb5003e3ea0348ee93.tar.bz2
linux-stable-cef0e9eb22315f7c5f3126eb5003e3ea0348ee93.zip
netfilter: ebtables: also count base chain policies
commit 3b48300d5cc7c7bed63fddb006c4046549ed4aec 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: 2035f3ff8eaa ("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>
Diffstat (limited to 'arch/riscv/include')
0 files changed, 0 insertions, 0 deletions