Commit 645f224
committed
kprobes: Tell lockdep about kprobe nesting
Since the kprobe handlers have protection that prohibits other handlers from
executing in other contexts (like if an NMI comes in while processing a
kprobe, and executes the same kprobe, it will get fail with a "busy"
return). Lockdep is unaware of this protection. Use lockdep's nesting api to
differentiate between locks taken in INT3 context and other context to
suppress the false warnings.
Link: https://lore.kernel.org/r/20201102160234.fa0ae70915ad9e2b21c08b85@kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent 561ca66 commit 645f224
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
1252 | | - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1253 | 1259 | | |
1254 | 1260 | | |
1255 | 1261 | | |
| |||
1258 | 1264 | | |
1259 | 1265 | | |
1260 | 1266 | | |
1261 | | - | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1262 | 1274 | | |
1263 | 1275 | | |
1264 | 1276 | | |
| |||
2028 | 2040 | | |
2029 | 2041 | | |
2030 | 2042 | | |
2031 | | - | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
2032 | 2049 | | |
2033 | 2050 | | |
2034 | 2051 | | |
| |||
2039 | 2056 | | |
2040 | 2057 | | |
2041 | 2058 | | |
2042 | | - | |
| 2059 | + | |
2043 | 2060 | | |
2044 | 2061 | | |
2045 | 2062 | | |
| |||
0 commit comments