aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipvlan/ipvlan_main.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-04-05 11:49:39 +0000
committerDavid S. Miller <[email protected]>2024-04-08 12:19:01 +0000
commit86d43e2bf93ccac88ef71cee36a23282ebd9e427 (patch)
tree0150f62547726eade11ed8e800f38122ee7b3d49 /drivers/net/ipvlan/ipvlan_main.c
parentnet: handle HAS_IOPORT dependencies (diff)
downloadkernel-86d43e2bf93ccac88ef71cee36a23282ebd9e427.tar.gz
kernel-86d43e2bf93ccac88ef71cee36a23282ebd9e427.zip
af_packet: avoid a false positive warning in packet_setsockopt()
Although the code is correct, the following line copy_from_sockptr(&req_u.req, optval, len)); triggers this warning : memcpy: detected field-spanning write (size 28) of single field "dst" at include/linux/sockptr.h:49 (size 16) Refactor the code to be more explicit. Reported-by: syzbot <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Cc: Kees Cook <[email protected]> Cc: Willem de Bruijn <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ipvlan/ipvlan_main.c')
0 files changed, 0 insertions, 0 deletions