netfilter: ebtables: fix compat entry padding
authorAlin Nastac <alin.nastac@gmail.com>
Wed, 30 May 2018 13:19:36 +0000 (15:19 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Jun 2018 16:54:30 +0000 (18:54 +0200)
commit9e8c8dabb78e886ace989729e763d28c76f5169e
tree6f8b688a0caae3589815824ff36b634a8c8dcc9d
parent6fcc02e3c2bddeaf628fde3c6a5ab3216d45691a
netfilter: ebtables: fix compat entry padding

On arm64, ebt_entry_{match,watcher,target} structs are 40 bytes long
while on 32-bit arm these structs have a size of 36 bytes.

COMPAT_XT_ALIGN() macro cannot be used here to determine the necessary
padding for the CONFIG_COMPAT because it imposes an 8-byte boundary
alignment, condition that is not found in 32-bit ebtables application.

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebtables.c