Commit 030a976
Peter Zijlstra
perf: Consider OS filter fail
Some PMUs (notably the traditional hardware kind) have boundary issues
with the OS filter. Specifically, it is possible for
perf_event_attr::exclude_kernel=1 events to trigger in-kernel due to
SKID or errata.
This can upset the sigtrap logic some and trigger the WARN.
However, if this invalid sample is the first we must not loose the
SIGTRAP, OTOH if it is the second, it must not override the
pending_addr with a (possibly) invalid one.
Fixes: ca6c213 ("perf: Fix missing SIGTRAPs")
Reported-by: Pengfei Xu <pengfei.xu@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Marco Elver <elver@google.com>
Tested-by: Pengfei Xu <pengfei.xu@intel.com>
Link: https://lkml.kernel.org/r/Y3hDYiXwRnJr8RYG@xpf.sh.intel.com1 parent af169b7 commit 030a976
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9273 | 9273 | | |
9274 | 9274 | | |
9275 | 9275 | | |
| 9276 | + | |
| 9277 | + | |
| 9278 | + | |
| 9279 | + | |
| 9280 | + | |
| 9281 | + | |
| 9282 | + | |
| 9283 | + | |
| 9284 | + | |
| 9285 | + | |
| 9286 | + | |
| 9287 | + | |
| 9288 | + | |
9276 | 9289 | | |
9277 | 9290 | | |
9278 | 9291 | | |
| |||
9306 | 9319 | | |
9307 | 9320 | | |
9308 | 9321 | | |
| 9322 | + | |
| 9323 | + | |
| 9324 | + | |
| 9325 | + | |
| 9326 | + | |
| 9327 | + | |
| 9328 | + | |
9309 | 9329 | | |
9310 | 9330 | | |
9311 | 9331 | | |
9312 | 9332 | | |
9313 | 9333 | | |
9314 | 9334 | | |
9315 | 9335 | | |
9316 | | - | |
| 9336 | + | |
9317 | 9337 | | |
9318 | 9338 | | |
9319 | 9339 | | |
| |||
9330 | 9350 | | |
9331 | 9351 | | |
9332 | 9352 | | |
9333 | | - | |
| 9353 | + | |
9334 | 9354 | | |
9335 | 9355 | | |
9336 | 9356 | | |
| |||
0 commit comments