]> 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)
commitfe7f74adbbe320b61164b866dd6f1dc3ce8b35d7
tree04f0b87fc0587d5dd25399ceb3487936138d06d1
parenta318c200aa78f5c2f08b6b548c5eb25070c6c244
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