aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-04-05 11:49:39 +0000
committerDavid S. Miller <[email protected]>2024-04-08 13:19:01 +0100
commit86d43e2bf93ccac88ef71cee36a23282ebd9e427 (patch)
tree0150f62547726eade11ed8e800f38122ee7b3d49 /tools/perf/scripts/python
parenta29689e60ed3e65463d6462390caad669d08a6b7 (diff)
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions