diff options
| author | Kees Cook <[email protected]> | 2023-02-15 20:31:38 +0200 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2023-02-17 18:24:16 +0200 |
| commit | bfcc8ba45eb87bfaaff900bbad2b87b204899d41 (patch) | |
| tree | 55fc97e1efdfb1184bb0d27f553cc20a4e03d02a /tools/perf/scripts/python/sctop.py | |
| parent | 3c3ab8c9a29662ef25f8f62b8f118cd9b0eadd88 (diff) | |
wifi: ath: Silence memcpy run-time false positive warning
The memcpy() in ath_key_config() was attempting to write across
neighboring struct members in struct ath_keyval. Introduce a wrapping
struct_group, kv_values, to be the addressable target of the memcpy
without overflowing an individual member. Silences the false positive
run-time warning:
memcpy: detected field-spanning write (size 32) of single field "hk.kv_val" at drivers/net/wireless/ath/key.c:506 (size 16)
Link: https://bbs.archlinux.org/viewtopic.php?id=282254
Cc: Kalle Valo <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions