syzbot


WARNING: lock held when returning to user space in __ocfs2_flush_truncate_log (2)

Status: upstream: reported on 2026/02/27 21:45
Reported-by: syzbot+8de411ce7790770fb427@syzkaller.appspotmail.com
First crash: 97d, last: 4d03h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: lock held when returning to user space in __ocfs2_flush_truncate_log 4 4 312d 312d 0/3 auto-obsoleted due to no activity on 2025/11/05 02:15

Sample crash report:
(syz.1.8,4291,0):ocfs2_replay_truncate_records:5974 ERROR: status = -30
(syz.1.8,4291,0):__ocfs2_flush_truncate_log:6055 ERROR: status = -30
(syz.1.8,4291,0):ocfs2_try_to_free_truncate_log:6135 ERROR: status = -30
(syz.1.8,4291,0):ocfs2_write_begin_nolock:1876 ERROR: status = -30
(syz.1.8,4291,0):ocfs2_dio_end_io:2428 ERROR: Direct IO failed, bytes = -5
================================================
WARNING: lock held when returning to user space!
syzkaller #0 Not tainted
------------------------------------------------
syz.1.8/4291 is leaving the kernel with locks still held!
3 locks held by syz.1.8/4291:
 #0: ffff88807bb80650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5938 [inline]
 #0: ffff88807bb80650 (sb_internal#2){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x4a5/0x1110 fs/ocfs2/alloc.c:6052
 #1: ffff8880226f90e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374
 #2: ffff88807bb86990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x134c/0x15c0 fs/jbd2/transaction.c:462
syz.1.8 (4291) used greatest stack depth: 18328 bytes left

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/01 00:46 linux-5.15.y 241d66fa280c 6b4a8443 .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
2026/02/27 21:44 linux-5.15.y 3330a8d33e08 2cf092b8 .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.