syzbot


WARNING: lock held when returning to user space in f2fs_write_single_data_page

Status: auto-obsoleted due to no activity on 2023/10/09 15:00
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+eb6201248f684e99b9f8@syzkaller.appspotmail.com
First crash: 572d, last: 510d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 5079e1c0c879311668b77075de3e701869804adf
Author: Chao Yu <chao@kernel.org>
Date: Fri Jun 2 08:36:05 2023 +0000

  f2fs: avoid dead loop in f2fs_issue_checkpoint()

  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_write_single_data_page 4 (8) 2023/09/15 05:49
[syzbot] Monthly f2fs report (Jul 2023) 0 (1) 2023/07/07 08:54
[syzbot] Monthly f2fs report (Jun 2023) 0 (1) 2023/06/06 23:21
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING: lock held when returning to user space in f2fs_write_single_data_page origin:upstream missing-backport C done 1 338d 542d 3/3 fixed on 2024/07/27 10:29
Last patch testing requests (9)
Created Duration User Patch Repo Result
2023/09/09 19:06 22m retest repro upstream OK log
2023/08/22 00:35 37m retest repro upstream OK log
2023/05/14 05:51 30m chao@kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/syzbot log
2023/05/14 03:23 53m chao@kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git master report log
2023/05/13 08:54 29m chao@kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test log
2023/05/13 02:22 33m chao@kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test log
2023/05/04 12:08 36m chao@kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test log
2023/05/03 15:29 26m chao@kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test report log
2023/05/02 01:52 28m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 58390c8ce1bd log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/09/14 22:24 7h23m bisect fix upstream OK (1) job log
2023/07/01 13:43 1h16m bisect fix upstream OK (0) job log log
2023/06/01 05:33 56m bisect fix upstream OK (0) job log log

Sample crash report:
syz-executor125: attempt to access beyond end of device
loop0: rw=2049, sector=77824, nr_sectors = 2976 limit=63271
syz-executor125: attempt to access beyond end of device
loop0: rw=2049, sector=80800, nr_sectors = 1120 limit=63271
================================================
WARNING: lock held when returning to user space!
6.3.0-syzkaller-12378-gc8c655c34e33 #0 Not tainted
------------------------------------------------
syz-executor125/4993 is leaving the kernel with locks still held!
1 lock held by syz-executor125/4993:
 #0: ffff88807effc448 (&sbi->node_write){++++}-{3:3}, at: f2fs_down_read fs/f2fs/f2fs.h:2087 [inline]
 #0: ffff88807effc448 (&sbi->node_write){++++}-{3:3}, at: f2fs_write_single_data_page+0xa10/0x1d50 fs/f2fs/data.c:2842

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/02 00:41 upstream c8c655c34e33 62df2017 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING: lock held when returning to user space in f2fs_write_single_data_page
2023/05/01 02:36 upstream 58390c8ce1bd 62df2017 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING: lock held when returning to user space in f2fs_write_single_data_page
2023/04/30 08:06 upstream 1ae78a14516b 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: lock held when returning to user space in f2fs_write_single_data_page
2023/04/30 05:32 upstream 1ae78a14516b 62df2017 .config console log report info ci-qemu-upstream-386 WARNING: lock held when returning to user space in f2fs_write_single_data_page
* Struck through repros no longer work on HEAD.