syzbot


WARNING: locking bug in jbd2_alloc

Status: upstream: reported on 2024/11/28 05:37
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+92b9109f47b38b1a6657@syzkaller.appspotmail.com
First crash: 27d, last: 6d16h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] WARNING: locking bug in jbd2_alloc 0 (1) 2024/11/28 05:37

Sample crash report:
------------[ cut here ]------------
Looking for class "lock" with key init_kmem_cache_cpus.__key, but found a different class "&c->lock" with the same key
WARNING: CPU: 1 PID: 6338 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: 6338 Comm: syz.4.47 Not tainted 6.13.0-rc2-syzkaller-00292-ga446e965a188 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:936
Code: 01 0f 85 8a 00 00 00 c6 05 82 f3 41 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 e0 b8 0a 8c e8 55 87 9f f5 90 <0f> 0b 90 90 eb 61 90 e8 08 36 f6 f8 e8 83 e3 be f5 48 c7 c7 20 b8
RSP: 0018:ffffc900039bddd0 EFLAGS: 00010046
RAX: 393af37af7ac3a00 RBX: ffffffff93be89a0 RCX: 0000000000080000
RDX: ffffc9000d90c000 RSI: 0000000000006a22 RDI: 0000000000006a23
RBP: ffffc900039bdee0 R08: ffffffff81600962 R09: 1ffff110170e519a
R10: dffffc0000000000 R11: ffffed10170e519b R12: ffffe8ffffd951c0
R13: ffffe8ffffd951c0 R14: ffffe8ffffd951c0 R15: ffffffff9a3d1320
FS:  00007ff86398d6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcb5abfe108 CR3: 000000007a2ce000 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+0x119c/0x14a0 mm/slub.c:3879
 __slab_alloc+0x58/0xa0 mm/slub.c:3920
 __slab_alloc_node mm/slub.c:3995 [inline]
 slab_alloc_node mm/slub.c:4156 [inline]
 kmem_cache_alloc_noprof+0x268/0x380 mm/slub.c:4175
 jbd2_alloc+0x155/0x1b0 fs/jbd2/journal.c:2787
 jbd2_journal_get_undo_access+0x1d1/0x310 fs/jbd2/transaction.c:1395
 __ocfs2_journal_access+0x4de/0x8b0 fs/ocfs2/journal.c:692
 ocfs2_block_group_set_bits+0x29e/0x9a0 fs/ocfs2/suballoc.c:1387
 ocfs2_search_chain+0x1b27/0x26c0 fs/ocfs2/suballoc.c:1900
 ocfs2_claim_suballoc_bits+0x11ef/0x2560 fs/ocfs2/suballoc.c:1985
 __ocfs2_claim_clusters+0x332/0xa40 fs/ocfs2/suballoc.c:2395
 ocfs2_claim_clusters fs/ocfs2/suballoc.c:2432 [inline]
 ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:432 [inline]
 ocfs2_block_group_alloc fs/ocfs2/suballoc.c:699 [inline]
 ocfs2_reserve_suballoc_bits+0x115e/0x4e70 fs/ocfs2/suballoc.c:832
 ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 fs/ocfs2/suballoc.c:982
 ocfs2_mknod+0x143a/0x2b30 fs/ocfs2/namei.c:347
 ocfs2_create+0x1ab/0x470 fs/ocfs2/namei.c:674
 lookup_open fs/namei.c:3649 [inline]
 open_last_lookups fs/namei.c:3748 [inline]
 path_openat+0x1c03/0x3590 fs/namei.c:3984
 do_filp_open+0x27f/0x4e0 fs/namei.c:4014
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1402
 do_sys_open fs/open.c:1417 [inline]
 __do_sys_open fs/open.c:1425 [inline]
 __se_sys_open fs/open.c:1421 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1421
 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:0x7ff862b85d19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff86398d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007ff862d75fa0 RCX: 00007ff862b85d19
RDX: 0000000000000000 RSI: 0000000000145142 RDI: 0000000020000240
RBP: 00007ff862c01a20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ff862d75fa0 R15: 00007ffd865dd4f8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/14 21:40 upstream a446e965a188 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in jbd2_alloc
2024/11/24 05:35 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in jbd2_alloc
* Struck through repros no longer work on HEAD.