Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - S index
The Linux kernel configuration item CONFIG_SLUB_RCU_DEBUG
:
( CONFIG_SLUB_DEBUG ) && ( CONFIG_KASAN )
Make SLAB_TYPESAFE_BY_RCU caches behave approximately as if the cache was not marked as SLAB_TYPESAFE_BY_RCU and every caller used kfree_rcu() instead.
This is intended for use in combination with KASAN, to enable KASAN to detect use-after-free accesses in such caches. (KFENCE is able to do that independent of this flag.)
This might degrade performance. Unfortunately this also prevents a very specific bug pattern from triggering (insufficient checks against an object being recycled within the RCU grace period); so this option can be turned off even on KASAN builds, in case you want to test for such a bug.
If you're using this for testing bugs / fuzzing and care about catching all the bugs WAY more than performance, you might want to also turn on RCU_STRICT_GRACE_PERIOD.
WARNING: This is designed as a debugging feature, not a security feature. Objects are sometimes recycled without RCU delay under memory pressure.
If unsure, say N.
Raw data from LKDDb:
(none)
This page is automaticly generated with free (libre, open) software lkddb(see lkddb-sources).
The data is retrived from:
Popular queries:
Navigation: Linux Kernel Driver DataBase - web LKDDB: main index - S index
Automatically generated (in year 2024). See also LKDDb sources on GitLab