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)
commit1b808993e19447731e823b1313ee4e8da7fd92a0
tree04f0b87fc0587d5dd25399ceb3487936138d06d1
parent726e2c5929de841fdcef4e2bf995680688ae1b87
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