]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ebtables: use array_size() helper in copy_{from,to}_user()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 28 Sep 2021 20:06:47 +0000 (15:06 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 22 Oct 2021 12:05:48 +0000 (14:05 +0200)
commit209609fb5c1a5b9fece05a4a2284ff425a343eab
tree3551fce84d344f10617a78010f079c23f8781dc5
parente56996c9e9c079e980217839757cb140c3cb0097
netfilter: ebtables: use array_size() helper in copy_{from,to}_user()

Use array_size() helper instead of the open-coded version in
copy_{from,to}_user().  These sorts of multiplication factors
need to be wrapped in array_size().

Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebtables.c