diff --git a/kernel/events/core.c b/kernel/events/core.c index 523106a506eed0a93afc92aea8ff8a9bc7ca4209..30d94f68c5bdbcd20694d511ebeb1a5ddeac45ab 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9759,6 +9759,9 @@ void perf_tp_event(u16 event_type, u64 count, void *record, int entry_size, continue; if (event->attr.config != entry->type) continue; + /* Cannot deliver synchronous signal to other task. */ + if (event->attr.sigtrap) + continue; if (perf_tp_event_match(event, &data, regs)) perf_swevent_event(event, count, &data, regs); }