diff options
| author | Kuan-Wei Chiu <[email protected]> | 2024-11-29 18:12:20 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-01-13 04:20:57 +0000 |
| commit | 93aa1b5c1722b697ecc4eae490fdb55c0f3cfe22 (patch) | |
| tree | 894670517b9a45aa0ceb145d6183294529d125d7 /lib/xarray.c | |
| parent | lib min_heap: improve type safety in min_heap macros by using container_of (diff) | |
| download | kernel-93aa1b5c1722b697ecc4eae490fdb55c0f3cfe22.tar.gz kernel-93aa1b5c1722b697ecc4eae490fdb55c0f3cfe22.zip | |
lib/test_min_heap: use inline min heap variants to reduce attack vector
To address concerns about increasing the attack vector, remove the select
MIN_HEAP dependency from TEST_MIN_HEAP in Kconfig.debug.
Additionally, all min heap test function calls in lib/test_min_heap.c are
replaced with their inline variants. By exclusively using inline
variants, we eliminate the need to enable CONFIG_MIN_HEAP for testing
purposes.
Link: https://lore.kernel.org/lkml/CAMuHMdVO5DPuD9HYWBFqKDHphx7+0BEhreUxtVC40A=8p6VAhQ@mail.gmail.com
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kuan-Wei Chiu <[email protected]>
Suggested-by: Geert Uytterhoeven <[email protected]>
Cc: Ching-Chun (Jim) Huang <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions
