diff options
author | Kees Cook <[email protected]> | 2022-09-23 15:08:53 -0700 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2022-09-28 09:43:58 +0300 |
commit | 72c08d9f4c72787dde541ae5ed278e46771c9f2a (patch) | |
tree | 9f7d36b2cb39f66dabf3c04fe4c01b004ef374a4 /scripts/generate_rust_analyzer.py | |
parent | 6cf5e9066dd3332cf4c77ea95a116f70e7f9acf7 (diff) |
wifi: iwlwifi: Track scan_cmd allocation size explicitly
In preparation for reducing the use of ksize(), explicitly track the
size of scan_cmd allocations. This also allows for noticing if the scan
size changes unexpectedly. Note that using ksize() was already incorrect
here, in the sense that ksize() would not match the actual allocation
size, which would trigger future run-time allocation bounds checking.
(In other words, memset() may know how large scan_cmd was allocated for,
but ksize() will return the upper bounds of the actually allocated memory,
causing a run-time warning about an overflow.)
Cc: Gregory Greenman <[email protected]>
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: Luca Coelho <[email protected]>
Cc: Johannes Berg <[email protected]>
Cc: Emmanuel Grumbach <[email protected]>
Cc: Miri Korenblit <[email protected]>
Cc: Ilan Peer <[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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions