syzbot


WARNING: still has locks held in __bch2_trans_get

Status: moderation: reported on 2024/05/10 04:27
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+7ecd1fb462c28e0dfd83@syzkaller.appspotmail.com
First crash: 14d, last: 14d

Sample crash report:
====================================
WARNING: syz-executor.0/7273 still has locks held!
6.9.0-rc6-next-20240503-syzkaller #0 Not tainted
------------------------------------
1 lock held by syz-executor.0/7273:
 #0: ffff88807f604258 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
 #0: ffff88807f604258 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
 #0: ffff88807f604258 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x9b7/0xe00 fs/bcachefs/btree_iter.c:3202

stack backtrace:
CPU: 0 PID: 7273 Comm: syz-executor.0 Not tainted 6.9.0-rc6-next-20240503-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
 do_exit+0x1b5f/0x27e0 kernel/exit.c:904
 do_group_exit+0x207/0x2c0 kernel/exit.c:1023
 get_signal+0x16a1/0x1740 kernel/signal.c:2909
 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218
 do_syscall_64+0x102/0x240 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f118667dca9
Code: Unable to access opcode bytes at 0x7f118667dc7f.
RSP: 002b:00007f11873db0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: 0000000000001000 RBX: 00007f11867abf80 RCX: 00007f118667dca9
RDX: 0000000000002020 RSI: 0000000020000600 RDI: 0000000000000005
RBP: 00007f11873db120 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 000000000000000b R14: 00007f11867abf80 R15: 00007ffca6bf13d8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/06 04:17 linux-next 9221b2819b8a 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: still has locks held in __bch2_trans_get
* Struck through repros no longer work on HEAD.