diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-16 17:25:24 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-02-16 17:25:24 +0100 |
commit | c6b80e99694002e17f8bca611cf3b4fac3ec75bb (patch) | |
tree | 815fec65f079b6fefb0e29b37145545f814c3b77 /lib | |
parent | 0b10f83694ee9e092914a0e7a7d5561de190047e (diff) | |
parent | bc88c10d7e6900916f5e1ba3829d66a9de92b633 (diff) |
Merge branch 'locking/core'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 9db831439aa2..5bbea8b20899 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -716,6 +716,19 @@ source "lib/Kconfig.kmemcheck" source "lib/Kconfig.kasan" +config DEBUG_REFCOUNT + bool "Verbose refcount checks" + help + Say Y here if you want reference counters (refcount_t and kref) to + generate WARNs on dubious usage. Without this refcount_t will still + be a saturating counter and avoid Use-After-Free by turning it into + a resource leak Denial-Of-Service. + + Use of this option will increase kernel text size but will alert the + admin of potential abuse. + + If in doubt, say "N". + endmenu # "Memory Debugging" config ARCH_HAS_KCOV @@ -1180,6 +1193,18 @@ config LOCK_TORTURE_TEST Say M if you want these torture tests to build as a module. Say N if you are unsure. +config WW_MUTEX_SELFTEST + tristate "Wait/wound mutex selftests" + help + This option provides a kernel module that runs tests on the + on the struct ww_mutex locking API. + + It is recommended to enable DEBUG_WW_MUTEX_SLOWPATH in conjunction + with this test harness. + + Say M if you want these self tests to build as a module. + Say N if you are unsure. + endmenu # lock debugging config TRACE_IRQFLAGS |