Dear Linux maintainers and Syzkaller team,
We would like to report a bug found by our modified Syzkaller. This bug involves perf_event_open(), which triggers an Intel PMU event, causing an unchecked MSR access and a lockdep circular locking warning. The first visible error is:
unchecked MSR access error: WRMSR to 0x186
tried to write 0x00000001045106fb
intel_pmu_enable_event+0xd37/0x12a0 arch/x86/events/intel/core.c:3309
After that, printk emits the MSR warning while perf is still holding &ctx->lock, so lockdep reports:
WARNING: possible circular locking dependency detected
possible deadlock in console_lock_spinning_enable
Linux kernel commit: 4edcdefd4083ae04b1a5656f4be6cd83ae919ef4 (7.1.0-14063-g4edcdefd4083).
Attached to this email:
This is the command used to run the repro (please change “/path-to” to the actual path):
On one terminal:
On another terminal (set the $SSHKEY, $PORT):
Please let me know if any additional information is needed.
Thank you and have a good day!
Best,
Rani