syzbot


WARNING: lock held when returning to user space in mnt_want_write_file

Status: upstream: reported C repro on 2022/10/15 18:49
Subsystems: vfs
[Documentation on labels]
Reported-by: syzbot+495a63a784549ca60cf1@syzkaller.appspotmail.com
First crash: 803d, last: 662d

Sample crash report:
F2FS-fs (loop0): Invalid blocksize (65536), supports only 4KB
F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): Mounted with checkpoint version = 3e17dab0
================================================
WARNING: lock held when returning to user space!
4.14.296-syzkaller #0 Not tainted
------------------------------------------------
syz-executor198/7982 is leaving the kernel with locks still held!
1 lock held by syz-executor198/7982:
 #0:  (sb_writers#10){.+.+}, at: [<ffffffff818e0d3d>] sb_start_write include/linux/fs.h:1551 [inline]
 #0:  (sb_writers#10){.+.+}, at: [<ffffffff818e0d3d>] mnt_want_write_file+0xfd/0x3b0 fs/namespace.c:497
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7982 at fs/namespace.c:1178 cleanup_mnt+0x222/0x2c0 fs/namespace.c:1178
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7982 Comm: syz-executor198 Not tainted 4.14.296-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:cleanup_mnt+0x222/0x2c0 fs/namespace.c:1178
RSP: 0018:ffff8880b4b17d08 EFLAGS: 00010297
RAX: ffff8880b335a380 RBX: dffffc0000000000 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8a0932e0
RBP: 0000000000000008 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffff8880b335a380 R12: ffff8880b3a2ea00
R13: 0000000000000001 R14: 0000000000000007 R15: fffffbfff1412696
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa44/0x2850 kernel/exit.c:868
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 SYSC_exit_group kernel/exit.c:976 [inline]
 SyS_exit_group+0x19/0x20 kernel/exit.c:974
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f3d90052c89
RSP: 002b:00007fff68583ad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f3d900c9330 RCX: 00007f3d90052c89
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007f3d900c3e40
R10: 00007f3d900c3e40 R11: 0000000000000246 R12: 00007f3d900c9330
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (87):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/30 04:20 linux-4.14.y 41f36d7859a7 2a71366b .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/03/05 14:08 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/03/04 16:56 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/03/04 07:58 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/03/03 01:42 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/03/02 05:10 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/03/02 05:09 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/27 18:15 linux-4.14.y 7878a41b6cc1 9189cb53 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/26 13:27 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/26 06:46 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/25 10:23 linux-4.14.y 1e61bd26fa2c ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/22 03:30 linux-4.14.y a8ad60f2af58 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/21 16:07 linux-4.14.y a8ad60f2af58 f949448d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/20 10:22 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/20 08:08 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/19 14:44 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/18 04:08 linux-4.14.y a8ad60f2af58 cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/16 17:40 linux-4.14.y a8ad60f2af58 38b317a7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/16 03:55 linux-4.14.y a8ad60f2af58 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/13 23:25 linux-4.14.y a8ad60f2af58 957959cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/12 19:33 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/11 10:39 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/11 09:27 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/09 23:48 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/08 07:16 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/08 05:17 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/07 15:38 linux-4.14.y a8ad60f2af58 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/07 01:16 linux-4.14.y a8ad60f2af58 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/05 00:24 linux-4.14.y 3949d1610004 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/03 21:58 linux-4.14.y 3949d1610004 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/01 21:45 linux-4.14.y 3949d1610004 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/02/01 07:32 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/31 16:24 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/28 14:42 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/26 20:42 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/23 23:33 linux-4.14.y 97205fccccdc 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/22 13:10 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/21 10:53 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/18 23:00 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/18 07:40 linux-4.14.y c4215ee4771b 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/15 06:12 linux-4.14.y c4215ee4771b a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/12 18:32 linux-4.14.y c4215ee4771b 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/08 00:38 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/07 20:58 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/07 06:25 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/06 10:35 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2023/01/04 21:21 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/12/07 02:22 linux-4.14.y 179ef7fe8677 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/12/03 13:35 linux-4.14.y 179ef7fe8677 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/12/02 23:45 linux-4.14.y 179ef7fe8677 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/11/30 00:14 linux-4.14.y 179ef7fe8677 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/11/27 14:27 linux-4.14.y 179ef7fe8677 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/11/23 16:10 linux-4.14.y e911713e40ca 52fdf57a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/10/30 04:19 linux-4.14.y 41f36d7859a7 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/10/30 04:06 linux-4.14.y 41f36d7859a7 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/10/27 01:55 linux-4.14.y 41f36d7859a7 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/10/18 19:13 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
2022/10/15 18:49 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING: lock held when returning to user space in mnt_want_write_file
* Struck through repros no longer work on HEAD.