Commit ff5860f
Peter Zijlstra
perf: Ensure swevent hrtimer is properly destroyed
With the change to hrtimer_try_to_cancel() in
perf_swevent_cancel_hrtimer() it appears possible for the hrtimer to
still be active by the time the event gets freed.
Make sure the event does a full hrtimer_cancel() on the free path by
installing a perf_event::destroy handler.
Fixes: eb3182e ("perf/core: Fix system hang caused by cpu-clock usage")
Reported-by: CyberUnicorns <a101e_iotvul@163.com>
Tested-by: CyberUnicorns <a101e_iotvul@163.com>
Debugged-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>1 parent 9ace475 commit ff5860f
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11906 | 11906 | | |
11907 | 11907 | | |
11908 | 11908 | | |
| 11909 | + | |
| 11910 | + | |
| 11911 | + | |
| 11912 | + | |
| 11913 | + | |
11909 | 11914 | | |
11910 | 11915 | | |
11911 | 11916 | | |
| |||
11914 | 11919 | | |
11915 | 11920 | | |
11916 | 11921 | | |
| 11922 | + | |
11917 | 11923 | | |
11918 | 11924 | | |
11919 | 11925 | | |
| |||
0 commit comments