]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: fix false-positive __read_overflow2_field() warning
authorJakub Kicinski <kuba@kernel.org>
Wed, 6 Apr 2022 21:15:21 +0000 (14:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 11:16:59 +0000 (12:16 +0100)
commitfa4a4fb42269be6b41ff21ad248dad5cbda053c1
tree04f0b87fc0587d5dd25399ceb3487936138d06d1
parent0705d82fc4a7cb5f08aeae738513bdac185541e3
flow_dissector: fix false-positive __read_overflow2_field() warning

Bounds checking is unhappy that we try to copy both Ethernet
addresses but pass pointer to the first one. Luckily destination
address is the first field so pass the pointer to the entire header,
whatever.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c