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: 29d, last: 2d18h
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 147d 187d 0/28 auto-obsoleted due to no activity on 2024/09/04 10:24

Sample crash report:
loop7: detected capacity change from 0 to 2048
------------[ cut here ]------------
Looking for class "c->lock" with key __key.0, but found a different class "&c->lock" with the same key
WARNING: CPU: 1 PID: 8751 at kernel/locking/lockdep.c:936 look_up_lock_class+0x140/0x150 kernel/locking/lockdep.c:936
Modules linked in:
CPU: 1 UID: 0 PID: 8751 Comm: syz.7.586 Not tainted 6.12.0-rc6-syzkaller-00225-g50643bbc9eb6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:look_up_lock_class+0x140/0x150 kernel/locking/lockdep.c:936
Code: c7 c7 60 cf 6c 8b e8 2f 0b 2d f6 90 0f 0b 90 90 90 31 db eb be c6 05 55 d0 26 05 01 90 48 c7 c7 40 d2 6c 8b e8 11 0b 2d f6 90 <0f> 0b 90 90 e9 58 ff ff ff 0f 1f 80 00 00 00 00 90 90 90 90 90 90
RSP: 0018:ffffc9000332f460 EFLAGS: 00010086
RAX: 0000000000000000 RBX: ffffffff96e2d388 RCX: ffffc9000d0eb000
RDX: 0000000000040000 RSI: ffffffff814e6e86 RDI: 0000000000000001
RBP: ffffffff9a840370 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 000000006b6f6f4c R12: ffffe8ffffd32020
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff9a825820
FS:  00007f14730d56c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa48d884270 CR3: 0000000012432000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 register_lock_class+0xb1/0x1240 kernel/locking/lockdep.c:1290
 __lock_acquire+0x135/0x3ce0 kernel/locking/lockdep.c:5077
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825
 local_lock_acquire include/linux/local_lock_internal.h:29 [inline]
 ___slab_alloc+0x7bb/0x1880 mm/slub.c:3867
 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3908
 __slab_alloc_node mm/slub.c:3961 [inline]
 slab_alloc_node mm/slub.c:4122 [inline]
 kmem_cache_alloc_noprof+0x2a7/0x2f0 mm/slub.c:4141
 ext4_mb_add_groupinfo+0x445/0x1180 fs/ext4/mballoc.c:3356
 ext4_mb_init_backend fs/ext4/mballoc.c:3435 [inline]
 ext4_mb_init+0x11df/0x2640 fs/ext4/mballoc.c:3733
 __ext4_fill_super fs/ext4/super.c:5512 [inline]
 ext4_fill_super+0x6cf6/0xab00 fs/ext4/super.c:5686
 get_tree_bdev_flags+0x38e/0x620 fs/super.c:1636
 vfs_get_tree+0x92/0x380 fs/super.c:1814
 do_new_mount fs/namespace.c:3507 [inline]
 path_mount+0x14e6/0x1f20 fs/namespace.c:3834
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount fs/namespace.c:4034 [inline]
 __x64_sys_mount+0x294/0x320 fs/namespace.c:4034
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f147237feba
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:00007f14730d4e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f14730d4ef0 RCX: 00007f147237feba
RDX: 0000000020000780 RSI: 0000000020000240 RDI: 00007f14730d4eb0
RBP: 0000000020000780 R08: 00007f14730d4ef0 R09: 0000000002000480
R10: 0000000002000480 R11: 0000000000000246 R12: 0000000020000240
R13: 00007f14730d4eb0 R14: 0000000000000784 R15: 0000000020000280
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.