mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
1c86a188e0
The variable kfence_metadata is initialized in kfence_init_pool(), then,
it is not initialized if kfence is disabled after booting. In this case,
kfence_metadata will be used (e.g. ->lock and ->state fields) without
initialization when reading /sys/kernel/debug/kfence/objects. There will
be a warning if you enable CONFIG_DEBUG_SPINLOCK. Fix it by creating
debugfs files when necessary.
Link: https://lkml.kernel.org/r/20230315034441.44321-1-songmuchun@bytedance.com
Fixes:
|
||
---|---|---|
.. | ||
.kunitconfig | ||
core.c | ||
kfence_test.c | ||
kfence.h | ||
Makefile | ||
report.c |