syzbot


WARNING: lock held when returning to user space in f2fs_commit_atomic_write

Status: closed as invalid on 2024/09/05 01:31
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+78ff2855f26377625419@syzkaller.appspotmail.com
First crash: 31d, last: 28d
Cause bisection: introduced by (bisect log) :
commit 7566a155c666dd23b413a002a50cd9ae7b95f053
Author: Chao Yu <chao@kernel.org>
Date: Tue Jun 25 03:13:49 2024 +0000

  f2fs: atomic: fix to not allow GC to pollute atomic_file

Crash: WARNING: lock held when returning to user space in f2fs_commit_atomic_write (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_commit_atomic_write 5 (8) 2024/09/05 01:31
[syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_ioc_start_atomic_write 2 (5) 2024/09/05 01:29
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/08/14 01:01 36m eadavis@qq.com patch git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 9e6869691724 OK log
2024/08/14 00:48 2h32m eadavis@qq.com patch git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 9e6869691724 error

Sample crash report:
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): Try to recover 1th superblock, ret: 0
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
syz-executor306: attempt to access beyond end of device
loop0: rw=2049, sector=45096, nr_sectors = 64 limit=40427
================================================
WARNING: lock held when returning to user space!
6.11.0-rc3-next-20240812-syzkaller #0 Not tainted
------------------------------------------------
syz-executor306/5229 is leaving the kernel with locks still held!
1 lock held by syz-executor306/5229:
 #0: ffff8880473a18b0 (&fi->i_gc_rwsem[WRITE]){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2196 [inline]
 #0: ffff8880473a18b0 (&fi->i_gc_rwsem[WRITE]){+.+.}-{3:3}, at: f2fs_commit_atomic_write+0x105/0x1510 fs/f2fs/segment.c:388

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/12 16:50 linux-next 9e6869691724 6f4edef4 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/14 20:30 linux-next 320eb81df4f6 e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/14 20:30 linux-next 320eb81df4f6 e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/14 07:31 linux-next 320eb81df4f6 bde81f6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/14 07:31 linux-next 320eb81df4f6 bde81f6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/14 03:50 linux-next 033a4691702c bde81f6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/13 20:52 linux-next 033a4691702c f21a18ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/13 17:17 linux-next 033a4691702c f21a18ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/13 14:06 linux-next 033a4691702c f21a18ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/13 10:50 linux-next 033a4691702c 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/13 04:58 linux-next 033a4691702c 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 18:26 linux-next 9e6869691724 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 18:26 linux-next 9e6869691724 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 12:16 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 12:16 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 09:47 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 09:46 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 09:43 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 09:11 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 09:06 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 09:06 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 08:31 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 06:41 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
2024/08/12 06:25 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: lock held when returning to user space in f2fs_commit_atomic_write
* Struck through repros no longer work on HEAD.