]> git.baikalelectronics.ru Git - kernel.git/commit
kfence: allow use of a deferrable timer
authorMarco Elver <elver@google.com>
Tue, 22 Mar 2022 21:48:25 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:11 +0000 (15:57 -0700)
commit3dd8b4a26975ea090bc9ec9259b2e0bb92ccea63
treea8e23366c9b1d6e3a5fa2220505fc175f2862a3b
parentcd26450df25c8e8aaf4b903c292b8a7646d4b5c1
kfence: allow use of a deferrable timer

Allow the use of a deferrable timer, which does not force CPU wake-ups
when the system is idle.  A consequence is that the sample interval
becomes very unpredictable, to the point that it is not guaranteed that
the KFENCE KUnit test still passes.

Nevertheless, on power-constrained systems this may be preferable, so
let's give the user the option should they accept the above trade-off.

Link: https://lkml.kernel.org/r/20220308141415.3168078-1-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/dev-tools/kfence.rst
lib/Kconfig.kfence
mm/kfence/core.c