syzbot


WARNING: locking bug in ext4_mb_add_groupinfo (2)

Status: upstream: reported on 2024/10/27 00:58
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+883742a0b3b485018df5@syzkaller.appspotmail.com
First crash: 43d, last: 4d11h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] WARNING: locking bug in ext4_mb_add_groupinfo (2) 0 (1) 2024/10/27 00:58
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in ext4_mb_add_groupinfo ext4 29 162d 201d 0/28 auto-obsoleted due to no activity on 2024/09/04 10:24

Sample crash report:
------------[ cut here ]------------
Looking for class "c->lock" with key init_kmem_cache_cpus.__key, but found a different class "&c->lock" with the same key
WARNING: CPU: 1 PID: 6379 at kernel/locking/lockdep.c:939 look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:936
Modules linked in:
CPU: 1 UID: 0 PID: 6379 Comm: syz.2.67 Not tainted 6.12.0-syzkaller-12113-gbcc8eda6d349 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:936
Code: 01 0f 85 8a 00 00 00 c6 05 a3 7d 3a 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 00 b8 0a 8c e8 b5 44 98 f5 90 <0f> 0b 90 90 eb 61 90 e8 a8 67 f6 f8 e8 f3 a0 b7 f5 48 c7 c7 40 b7
RSP: 0018:ffffc9000439f350 EFLAGS: 00010046
RAX: bf663fec6a63ce00 RBX: ffffffff93bfc9a0 RCX: ffff888026075a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000439f460 R08: ffffffff81601b22 R09: 1ffff110170e519a
R10: dffffc0000000000 R11: ffffed10170e519b R12: ffffe8ffffd6e340
R13: ffffe8ffffd6e340 R14: ffffe8ffffd6e340 R15: ffffffff9a3e5320
FS:  00007fb9490f36c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8df09ff000 CR3: 000000007dc9e000 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:1290
 __lock_acquire+0xf3/0x2100 kernel/locking/lockdep.c:5101
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
 local_lock_acquire+0x20/0x80 include/linux/local_lock_internal.h:29
 ___slab_alloc+0x11e2/0x14b0 mm/slub.c:3864
 __slab_alloc+0x58/0xa0 mm/slub.c:3905
 __slab_alloc_node mm/slub.c:3980 [inline]
 slab_alloc_node mm/slub.c:4141 [inline]
 kmem_cache_alloc_noprof+0x268/0x380 mm/slub.c:4160
 ext4_mb_add_groupinfo+0x6c3/0xfa0 fs/ext4/mballoc.c:3356
 ext4_mb_init_backend fs/ext4/mballoc.c:3435 [inline]
 ext4_mb_init+0x15ab/0x27e0 fs/ext4/mballoc.c:3733
 __ext4_fill_super fs/ext4/super.c:5559 [inline]
 ext4_fill_super+0x5f54/0x6e60 fs/ext4/super.c:5733
 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
 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:0x7fb948381fea
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:00007fb9490f2e88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fb9490f2f10 RCX: 00007fb948381fea
RDX: 0000000020000040 RSI: 0000000020000000 RDI: 00007fb9490f2ed0
RBP: 0000000020000040 R08: 00007fb9490f2f10 R09: 0000000000004006
R10: 0000000000004006 R11: 0000000000000246 R12: 0000000020000000
R13: 00007fb9490f2ed0 R14: 0000000000000443 R15: 00000000200001c0
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 09:40 upstream bcc8eda6d349 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in ext4_mb_add_groupinfo
2024/11/27 03:07 upstream 798bb342e041 e9a9a9f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in ext4_mb_add_groupinfo
2024/11/09 04:29 upstream 50643bbc9eb6 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in ext4_mb_add_groupinfo
2024/11/06 15:47 upstream 2e1b3cc9d7f7 df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in ext4_mb_add_groupinfo
2024/11/18 12:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in ext4_mb_add_groupinfo
2024/11/14 21:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 887407160d72 77f3eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in ext4_mb_add_groupinfo
2024/11/09 07:34 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 ext4_mb_add_groupinfo
2024/10/23 00:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 526116b79e8c 9d74f456 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in ext4_mb_add_groupinfo
* Struck through repros no longer work on HEAD.