syzbot
WARNING: still has locks held in __ocfs2_flush_truncate_log
Status:
upstream: reported on 2026/09/13 05:05
Reported-by: syzbot+5cf6a130c89e7e65a0b2@syzkaller.appspotmail.com
First crash: 9d04h, last: 9d04h
Sample crash report:
(syz.3.48,4525,0):ocfs2_write_begin_nolock:1878 ERROR: status = -30
(syz.3.48,4525,0):ocfs2_dio_end_io:2448 ERROR: Direct IO failed, bytes = -5
====================================
WARNING: syz.3.48/4525 still has locks held!
syzkaller #0 Not tainted
------------------------------------
3 locks held by syz.3.48/4525:
#0: ffff888077d82650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5938 [inline]
#0: ffff888077d82650 (sb_internal#2){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x49f/0x1110 fs/ocfs2/alloc.c:6052
#1: ffff888061c2d4e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374
#2: ffff88805911c990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x12d5/0x1560 fs/jbd2/transaction.c:462
stack backtrace:
CPU: 1 PID: 4525 Comm: syz.3.48 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/08/2026
Call Trace:
<TASK>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
try_to_freeze include/linux/freezer.h:66 [inline]
get_signal+0xfb/0x12e0 kernel/signal.c:2703
arch_do_signal_or_restart+0xe6/0x12a0 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:154 [inline]
exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f94097e4159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9407a3c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: 0000000000510000 RBX: 00007f9409a6bfa0 RCX: 00007f94097e4159
RDX: 0000000000000000 RSI: 000000000000000a RDI: 0000000000000004
RBP: 00007f940987b03b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9409a6c038 R14: 00007f9409a6bfa0 R15: 00007ffd0e8bd458
</TASK>
syz.3.48 (4525) used greatest stack depth: 19488 bytes left
* Struck through repros no longer work on HEAD.