syzbot


WARNING: lock held when returning to user space in f2fs_ioc_start_atomic_write

Status: fixed on 2024/10/22 12:20
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+733300ca0a9baca7e245@syzkaller.appspotmail.com
Fix commit: b2c160f4f3cf f2fs: atomic: fix to forbid dio in atomic_file
First crash: 112d, last: 109d
Cause bisection: introduced by (bisect log) :
commit 374a8881ce4ccf787f5381a39f825cb17a3f6b14
Author: Chao Yu <chao@kernel.org>
Date: Tue Jun 25 03:13:51 2024 +0000

  f2fs: atomic: fix to forbid dio in atomic_file

Crash: WARNING: lock held when returning to user space in f2fs_ioc_start_atomic_write (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_ioc_start_atomic_write 2 (5) 2024/09/05 01:29
Re: [PATCH] f2fs: fix unreleased reader lock on return 1 (1) 2024/08/15 15:29
[PATCH] f2fs: fix unreleased reader lock on return 2 (2) 2024/08/15 00:51
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/08/14 13:36 29m eadavis@qq.com patch git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 9e6869691724 report log
2024/08/14 18:59 25m djahchankoike@gmail.com patch linux-next OK log

Sample crash report:
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5
syz-executor312: attempt to access beyond end of device
loop0: rw=10241, sector=45096, nr_sectors = 8 limit=40427
================================================
WARNING: lock held when returning to user space!
6.11.0-rc3-next-20240812-syzkaller #0 Not tainted
------------------------------------------------
syz-executor312/5227 is leaving the kernel with locks still held!
1 lock held by syz-executor312/5227:
 #0: ffff8880695aa0e0 (&fi->i_gc_rwsem[READ]){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2196 [inline]
 #0: ffff8880695aa0e0 (&fi->i_gc_rwsem[READ]){+.+.}-{3:3}, at: f2fs_ioc_start_atomic_write+0x2ed/0xac0 fs/f2fs/file.c:2163

Crashes (34):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/13 02:17 linux-next 9e6869691724 7b0f4b46 .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_ioc_start_atomic_write
2024/08/12 16:49 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_ioc_start_atomic_write
2024/08/15 06:44 linux-next edd1ec2e3a9f 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_ioc_start_atomic_write
2024/08/15 06:44 linux-next edd1ec2e3a9f 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_ioc_start_atomic_write
2024/08/14 21:00 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_ioc_start_atomic_write
2024/08/14 11:21 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_ioc_start_atomic_write
2024/08/14 11:21 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_ioc_start_atomic_write
2024/08/14 09:55 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_ioc_start_atomic_write
2024/08/14 03:01 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_ioc_start_atomic_write
2024/08/13 21:46 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_ioc_start_atomic_write
2024/08/13 21:22 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_ioc_start_atomic_write
2024/08/13 21:21 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_ioc_start_atomic_write
2024/08/13 17:15 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_ioc_start_atomic_write
2024/08/13 14:11 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_ioc_start_atomic_write
2024/08/13 06: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_ioc_start_atomic_write
2024/08/12 21:23 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_ioc_start_atomic_write
2024/08/12 20:50 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_ioc_start_atomic_write
2024/08/12 17:53 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_ioc_start_atomic_write
2024/08/12 17:53 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_ioc_start_atomic_write
2024/08/12 10:04 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_ioc_start_atomic_write
2024/08/12 09:38 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_ioc_start_atomic_write
2024/08/12 09:33 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_ioc_start_atomic_write
2024/08/12 08:33 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_ioc_start_atomic_write
2024/08/12 08:32 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_ioc_start_atomic_write
2024/08/12 06:38 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_ioc_start_atomic_write
2024/08/12 06:37 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_ioc_start_atomic_write
2024/08/12 06:20 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_ioc_start_atomic_write
2024/08/12 06:00 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_ioc_start_atomic_write
2024/08/12 05:59 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_ioc_start_atomic_write
2024/08/12 05:59 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_ioc_start_atomic_write
2024/08/12 05:59 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_ioc_start_atomic_write
2024/08/12 05:59 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_ioc_start_atomic_write
2024/08/12 05:56 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_ioc_start_atomic_write
2024/08/12 05:56 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_ioc_start_atomic_write
* Struck through repros no longer work on HEAD.