syzbot


WARNING: locking bug in __perf_event_task_sched_in

Status: auto-closed as invalid on 2020/08/05 16:27
Subsystems: perf
[Documentation on labels]
Reported-by: syzbot+3daecb3e8271380aeb51@syzkaller.appspotmail.com
First crash: 1511d, last: 1473d
Discussions (1)
Title Replies (including bot) Last reply
WARNING: locking bug in __perf_event_task_sched_in 2 (3) 2020/03/04 14:01
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in __perf_event_task_sched_in (2) perf 79 446d 464d 22/26 fixed on 2023/06/08 14:41

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 0 PID: 15471 at kernel/locking/lockdep.c:183 hlock_class kernel/locking/lockdep.c:183 [inline]
WARNING: CPU: 0 PID: 15471 at kernel/locking/lockdep.c:183 hlock_class kernel/locking/lockdep.c:172 [inline]
WARNING: CPU: 0 PID: 15471 at kernel/locking/lockdep.c:183 check_wait_context kernel/locking/lockdep.c:4043 [inline]
WARNING: CPU: 0 PID: 15471 at kernel/locking/lockdep.c:183 __lock_acquire+0x1a45/0x4e00 kernel/locking/lockdep.c:4294
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 15471 Comm: syz-executor.2 Not tainted 5.6.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x27b/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:175 [inline]
 fixup_bug arch/x86/kernel/traps.c:170 [inline]
 do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:hlock_class kernel/locking/lockdep.c:183 [inline]
RIP: 0010:hlock_class kernel/locking/lockdep.c:172 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4043 [inline]
RIP: 0010:__lock_acquire+0x1a45/0x4e00 kernel/locking/lockdep.c:4294
Code: 89 8a e8 3e ae 57 00 44 8b 1d 47 d8 2f 09 45 85 db 0f 85 89 ed ff ff 48 c7 c6 80 8f 2b 88 48 c7 c7 00 8f 2b 88 e8 73 2c eb ff <0f> 0b 31 d2 e9 7a ec ff ff 8b 8c 24 58 01 00 00 85 c9 0f 84 60 03
RSP: 0018:ffffc9000879f520 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000000000
RDX: 0000000040000002 RSI: ffffffff815ce291 RDI: fffff520010f3e96
RBP: 0000000000000000 R08: ffff888043894600 R09: fffffbfff1336121
R10: ffffffff899b0903 R11: fffffbfff1336120 R12: ffff888043894600
R13: 000000000000096a R14: 0000000000000001 R15: dffffc0000000000
 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4923
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151
 perf_ctx_lock kernel/events/core.c:155 [inline]
 perf_event_context_sched_in kernel/events/core.c:3717 [inline]
 __perf_event_task_sched_in+0x50f/0x7c0 kernel/events/core.c:3775
 perf_event_task_sched_in include/linux/perf_event.h:1199 [inline]
 finish_task_switch+0x2a8/0x750 kernel/sched/core.c:3215
 context_switch kernel/sched/core.c:3381 [inline]
 __schedule+0x93f/0x1ff0 kernel/sched/core.c:4094
 preempt_schedule_irq+0xb0/0x150 kernel/sched/core.c:4351
 retint_kernel+0x1b/0x2b
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline]
RIP: 0010:lock_acquire+0x267/0x8f0 kernel/locking/lockdep.c:4926
Code: 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 c6 05 00 00 48 83 3d 35 0e 3b 08 00 0f 84 65 04 00 00 48 8b 3c 24 57 9d <0f> 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 03 44 24 08 48 c7
RSP: 0018:ffffc9000879fa70 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff132925c RBX: ffff888043894600 RCX: dffffc0000000000
RDX: dffffc0000000000 RSI: ffffffff8c3664b8 RDI: 0000000000000282
RBP: 0000000000000000 R08: ffff888043894600 R09: fffffbfff188a3c0
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffff888094ea8938 R14: 0000000000000000 R15: 0000000000000000
 flush_workqueue+0x11f/0x14f0 kernel/workqueue.c:2777
 hci_dev_open+0xdb/0x280 net/bluetooth/hci_core.c:1651
 hci_sock_bind+0x427/0x1140 net/bluetooth/hci_sock.c:1200
 __sys_bind+0x20e/0x250 net/socket.c:1662
 __do_sys_bind net/socket.c:1673 [inline]
 __se_sys_bind net/socket.c:1671 [inline]
 __x64_sys_bind+0x6f/0xb0 net/socket.c:1671
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c879
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f4d4e1f8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007f4d4e1f96d4 RCX: 000000000045c879
RDX: 0000000000000006 RSI: 0000000020000080 RDI: 0000000000000006
RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000002c R14: 00000000004c2d06 R15: 000000000076bf0c
Shutting down cpus with NMI
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/07 16:27 upstream 7e63420847ae 99a96044 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/29 12:37 upstream f8788d86ab28 59b57593 .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.