| commit | aef17509a4103715234cd87c7912ccb934d7e540 | [log] [tgz] |
|---|---|---|
| author | Andy Lutomirski <luto@kernel.org> | Tue Mar 02 07:56:57 2021 -0800 |
| committer | Andy Lutomirski <luto@kernel.org> | Wed May 26 10:24:30 2021 -0700 |
| tree | 9f24036e4c1336c51db3fe3c18528b413e7459e1 | |
| parent | df3e18a6d8f329d0efa9d6c4595af8a5ebaff9ea [diff] |
kentry: Verify kentry state in instrumentation_begin/end() Calling instrumentation_begin() and instrumentation_end() when kentry thinks the CPU is in user mode is an error. Verify the kentry state when instrumentation_begin/end() are called. Add _nocheck() variants to skip verification to avoid WARN() generating extra kentry warnings. Signed-off-by: Andy Lutomirski <luto@kernel.org>