syzbot


WARNING: locking bug in rcu_pending_pcpu_dequeue

Status: upstream: reported syz repro on 2024/10/25 12:19
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+e103923b16da1cda0ae0@syzkaller.appspotmail.com
First crash: 188d, last: 18d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] WARNING: locking bug in rcu_pending_pcpu_dequeue 0 (2) 2025/01/15 10:06
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/04/10 01:48 1h08m retest repro upstream report log
2025/04/10 01:48 14m retest repro upstream report log

Sample crash report:
bcachefs (loop3): done starting filesystem
------------[ cut here ]------------
Looking for class "lock" with key rcu_pending_init.__key, but found a different class "&p->lock" with the same key
WARNING: CPU: 1 PID: 7279 at kernel/locking/lockdep.c:941 look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:938
Modules linked in:
CPU: 1 UID: 0 PID: 7279 Comm: syz.3.144 Not tainted 6.14.0-rc6-syzkaller-00003-g4d872d51bc9d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:938
Code: 01 0f 85 8a 00 00 00 c6 05 1b e1 24 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 80 d5 2a 8c e8 45 97 80 f5 90 <0f> 0b 90 90 eb 61 90 e8 88 2c e9 f8 e8 73 99 a0 f5 48 c7 c7 c0 d4
RSP: 0018:ffffc90003606550 EFLAGS: 00010046
RAX: 15a5ed5ff30ba600 RBX: ffffffff93eef058 RCX: ffff888035e80000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003606660 R08: ffffffff81819d62 R09: 1ffff110170e519a
R10: dffffc0000000000 R11: ffffed10170e519b R12: ffffe8ffffd34158
R13: ffffe8ffffd34158 R14: ffffe8ffffd34158 R15: ffffffff9a7c0620
FS:  00007f10567936c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ebe3ff000 CR3: 000000003414e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 register_lock_class+0x102/0x980 kernel/locking/lockdep.c:1292
 __lock_acquire+0xf3/0x2100 kernel/locking/lockdep.c:5103
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:170
 spin_lock_irq include/linux/spinlock.h:376 [inline]
 rcu_pending_pcpu_dequeue+0x29/0x2b0 fs/bcachefs/rcu_pending.c:538
 bkey_cached_alloc fs/bcachefs/btree_key_cache.c:143 [inline]
 btree_key_cache_create fs/bcachefs/btree_key_cache.c:222 [inline]
 btree_key_cache_fill+0x496/0x3850 fs/bcachefs/btree_key_cache.c:319
 bch2_btree_path_traverse_cached+0x8b2/0xc60 fs/bcachefs/btree_key_cache.c:381
 bch2_btree_path_traverse_one+0x46a/0x2930 fs/bcachefs/btree_iter.c:1179
 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:249 [inline]
 bch2_btree_iter_peek_slot+0x8c0/0x27c0 fs/bcachefs/btree_iter.c:2784
 __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:585 [inline]
 bch2_bkey_get_iter fs/bcachefs/btree_iter.h:599 [inline]
 __bch2_inode_peek+0x206/0x5b0 fs/bcachefs/inode.c:347
 bch2_inode_peek fs/bcachefs/inode.h:136 [inline]
 bch2_inode_find_by_inum_trans+0xc3/0x150 fs/bcachefs/inode.c:1136
 bch2_vfs_inode_get+0x15f/0x310 fs/bcachefs/fs.c:504
 bch2_fs_get_tree+0x120e/0x17a0 fs/bcachefs/fs.c:2267
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3560
 do_mount fs/namespace.c:3900 [inline]
 __do_sys_mount fs/namespace.c:4111 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f105598e90a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1056792e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f1056792ef0 RCX: 00007f105598e90a
RDX: 00004000000058c0 RSI: 0000400000005900 RDI: 00007f1056792eb0
RBP: 00004000000058c0 R08: 00007f1056792ef0 R09: 0000000000010000
R10: 0000000000010000 R11: 0000000000000246 R12: 0000400000005900
R13: 00007f1056792eb0 R14: 00000000000058b4 R15: 0000400000000000
 </TASK>

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/11 02:21 upstream 4d872d51bc9d 16256247 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/01/15 10:06 upstream 619f0b6fad52 7315a7cf .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/02/17 23:43 upstream 2408a807bfc3 429ea007 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/02/10 11:02 upstream a64dcfb451e2 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/02/10 06:31 upstream 69b54314c975 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/01/28 02:49 upstream 805ba04cb7cc 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/01/22 08:51 upstream c4b9570cfb63 da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2024/12/19 19:13 upstream baaa2567a712 5905cb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2024/12/06 14:33 upstream b8f52214c61a 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in rcu_pending_pcpu_dequeue
2024/10/21 12:10 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/03/26 17:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a2392f333575 89d30d73 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/03/24 13:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a2392f333575 875573af .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/03/15 17:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5618886fdab e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/03/04 02:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e056da87c780 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/02/19 01:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e6747d19291c 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2025/01/16 22:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6251d1776bc5 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2024/12/13 06:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e7aff49b5da 3547e30f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2024/12/12 07:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e7aff49b5da ff949d25 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2024/12/07 15:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
2024/11/09 08:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca3a5c08a5ef 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in rcu_pending_pcpu_dequeue
* Struck through repros no longer work on HEAD.