aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2021-05-06 13:21:37 +0000
committerPaolo Bonzini <[email protected]>2021-05-07 10:06:21 +0000
commit3f804f6d201ca93adf4c3df04d1bfd152c1129d6 (patch)
tree157c4afa56821edc51819324cdd118df21a7fd9f /tools/perf/scripts/python/intel-pt-events.py
parentKVM: x86: Cancel pvclock_gtod_work on module removal (diff)
downloadkernel-3f804f6d201ca93adf4c3df04d1bfd152c1129d6.tar.gz
kernel-3f804f6d201ca93adf4c3df04d1bfd152c1129d6.zip
KVM: x86: Prevent deadlock against tk_core.seq
syzbot reported a possible deadlock in pvclock_gtod_notify(): CPU 0 CPU 1 write_seqcount_begin(&tk_core.seq); pvclock_gtod_notify() spin_lock(&pool->lock); queue_work(..., &pvclock_gtod_work) ktime_get() spin_lock(&pool->lock); do { seq = read_seqcount_begin(tk_core.seq) ... } while (read_seqcount_retry(&tk_core.seq, seq); While this is unlikely to happen, it's possible. Delegate queue_work() to irq_work() which postpones it until the tk_core.seq write held region is left and interrupts are reenabled. Fixes: 16e8d74d2da9 ("KVM: x86: notifier for clocksource changes") Reported-by: [email protected] Signed-off-by: Thomas Gleixner <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions