aboutsummaryrefslogtreecommitdiff
path: root/lib/test_dynamic_debug.c
diff options
context:
space:
mode:
authorPierre Gondois <[email protected]>2023-01-04 19:30:26 +0100
committerSudeep Holla <[email protected]>2023-01-18 09:58:31 +0000
commitde0df442ee49cb1f6ee58f3fec5dcb5e5eb70aab (patch)
treea205974497e42d131301082ff540f3526700e7f5 /lib/test_dynamic_debug.c
parent8844c3df001bc1d8397fddea341308da63855d53 (diff)
cacheinfo: Check 'cache-unified' property to count cache leaves
The DeviceTree Specification v0.3 specifies that the cache node '[d-|i-|]cache-size' property is required. The 'cache-unified' property is specifies whether the cache level is separate or unified. If the cache-size property is missing, no cache leaves is accounted. This can lead to a 'BUG: KASAN: slab-out-of-bounds' [1] bug. Check 'cache-unified' property and always account for at least one cache leaf when parsing the device tree. [1] https://lore.kernel.org/all/[email protected]/ Reported-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Pierre Gondois <[email protected]> Tested-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'lib/test_dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions