syzbot


WARNING: locking bug in collect_percpu_times

Status: upstream: reported on 2024/05/25 21:52
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+97f26f162079653e77b8@syzkaller.appspotmail.com
First crash: 26d, last: 7d13h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] WARNING: locking bug in collect_percpu_times 1 (2) 2024/05/27 15:47

Sample crash report:
------------[ cut here ]------------
Looking for class "p->pcpu, cpu)->seq" with key __key.9, but found a different class "&per_cpu_ptr(group->pcpu, cpu)->seq" with the same key
WARNING: CPU: 3 PID: 5274 at kernel/locking/lockdep.c:932 look_up_lock_class+0x133/0x140 kernel/locking/lockdep.c:932
Modules linked in:
CPU: 3 PID: 5274 Comm: kworker/3:4 Not tainted 6.10.0-rc2-syzkaller-00366-g771ed66105de #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events psi_avgs_work
RIP: 0010:look_up_lock_class+0x133/0x140 kernel/locking/lockdep.c:932
Code: c7 c7 20 b9 2c 8b e8 ec 63 74 f6 90 0f 0b 90 90 90 31 db eb be c6 05 95 91 ef 04 01 90 48 c7 c7 40 bc 2c 8b e8 ce 63 74 f6 90 <0f> 0b 90 90 e9 62 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900038876f8 EFLAGS: 00010086
RAX: 0000000000000000 RBX: ffffffff94203060 RCX: ffffffff81511289
RDX: ffff8880205cc880 RSI: ffffffff81511296 RDI: 0000000000000001
RBP: ffffffff92e30be0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 20676e696b6f6f4c R12: ffffe8ffad146ac8
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff94ad8be0
FS:  0000000000000000(0000) GS:ffff88802c300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000f5ec1fe8 CR3: 000000005fc7e000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 register_lock_class+0xb1/0x1230 kernel/locking/lockdep.c:1284
 __lock_acquire+0x111/0x3b30 kernel/locking/lockdep.c:5014
 lock_acquire kernel/locking/lockdep.c:5754 [inline]
 lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719
 seqcount_lockdep_reader_access include/linux/seqlock.h:72 [inline]
 get_recent_times kernel/sched/psi.c:261 [inline]
 collect_percpu_times+0x6cf/0xb70 kernel/sched/psi.c:359
 psi_avgs_work+0x9c/0x210 kernel/sched/psi.c:566
 process_one_work+0x958/0x1ad0 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/09 16:00 upstream 771ed66105de c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: locking bug in collect_percpu_times
2024/05/21 21:44 upstream 2a8120d7b482 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: locking bug in collect_percpu_times
* Struck through repros no longer work on HEAD.