aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2024-02-07 02:30:33 -0800
committerKalle Valo <[email protected]>2024-02-12 17:37:59 +0200
commit14ddc470ba22057f7734245a6a521d764f8a7fbe (patch)
tree2708dff39e69a8c685dbe769753492c8693b88bc /tools/perf/scripts/python
parentc08a986344a5eb80ae3651f33d0f386cd9e97252 (diff)
wifi: mwifiex: Refactor 1-element array into flexible array in struct mwifiex_ie_types_chan_list_param_set
struct mwifiex_ie_types_chan_list_param_set::chan_scan_param is treated as a flexible array, so convert it into one so that it doesn't trip the array bounds sanitizer[1]. Only a few places were using sizeof() on the whole struct, so adjust those to follow the calculation pattern to avoid including the trailing single element. Examining binary output differences doesn't appear to show any literal size values changing, though it is obfuscated a bit by the compiler adjusting register usage and stack spill slots, etc. Link: https://github.com/KSPP/linux/issues/51 [1] Cc: Brian Norris <[email protected]> Cc: Kalle Valo <[email protected]> Cc: Dmitry Antipov <[email protected]> Cc: Johannes Berg <[email protected]> Cc: zuoqilin <[email protected]> Cc: Ruan Jinjie <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Christophe JAILLET <[email protected]> Cc: Gustavo A. R. Silva <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions