aboutsummaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-01-21 21:54:36 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-01-28 10:49:43 +0100
commit2035f3ff8eaa29cfb5c8e2160b0f6e85eeb21a95 (patch)
tree3e11285dc009f789270795b845d8e9b0d31715ad /include/linux/compiler.h
parent53ab60baa1ac4f20b080a22c13b77b6373922fd7 (diff)
netfilter: ebtables: compat: un-break 32bit setsockopt when no rules are present
Unlike ip(6)tables ebtables only counts user-defined chains. The effect is that a 32bit ebtables binary on a 64bit kernel can do 'ebtables -N FOO' only after adding at least one rule, else the request fails with -EINVAL. This is a similar fix as done in 3f1e53abff84 ("netfilter: ebtables: don't attempt to allocate 0-sized compat array"). Fixes: 7d7d7e02111e9 ("netfilter: compat: reject huge allocation requests") Reported-by: Francesco Ruggeri <fruggeri@arista.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/compiler.h')
0 files changed, 0 insertions, 0 deletions