syzbot


WARNING: lock held when returning to user space in __ocfs2_flush_truncate_log

Status: upstream: reported on 2025/07/28 01:57
Reported-by: syzbot+db84c307ff5a2a670ffd@syzkaller.appspotmail.com
First crash: 8d08h, last: 8d07h

Sample crash report:
(syz.2.15,4415,0):_ocfs2_free_clusters:2573 ERROR: status = -30
(syz.2.15,4415,1):ocfs2_replay_truncate_records:5975 ERROR: status = -30
(syz.2.15,4415,0):__ocfs2_flush_truncate_log:6056 ERROR: status = -30
(syz.2.15,4415,1):ocfs2_try_to_free_truncate_log:6136 ERROR: status = -30
(syz.2.15,4415,1):ocfs2_write_begin_nolock:1876 ERROR: status = -30
================================================
WARNING: lock held when returning to user space!
5.15.189-syzkaller #0 Not tainted
------------------------------------------------
syz.2.15/4415 is leaving the kernel with locks still held!
3 locks held by syz.2.15/4415:
 #0: ffff88807ebf6650 (sb_internal#4){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5939 [inline]
 #0: ffff88807ebf6650 (sb_internal#4){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x46a/0x1060 fs/ocfs2/alloc.c:6053
 #1: ffff888079b494e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x368/0x6c0 fs/ocfs2/journal.c:374
 #2: ffff88807987c990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x1312/0x15a0 fs/jbd2/transaction.c:462

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/28 02:15 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: lock held when returning to user space in __ocfs2_flush_truncate_log
2025/07/28 02:12 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: lock held when returning to user space in __ocfs2_flush_truncate_log
2025/07/28 02:11 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: lock held when returning to user space in __ocfs2_flush_truncate_log
2025/07/28 01:57 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: lock held when returning to user space in __ocfs2_flush_truncate_log
* Struck through repros no longer work on HEAD.