syzbot


BUG: soft lockup in generic_file_write_iter (2)

Status: auto-obsoleted due to no activity on 2023/10/18 13:34
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+3b5bce3e397a2c9dcac6@syzkaller.appspotmail.com
First crash: 367d, last: 289d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] BUG: soft lockup in generic_file_write_iter (2) 0 (1) 2023/07/22 14:12
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in generic_file_write_iter net 2 475d 510d 0/26 auto-obsoleted due to no activity on 2023/04/05 19:12
linux-5.15 INFO: rcu detected stall in generic_file_write_iter (2) 1 47d 47d 0/3 upstream: reported on 2024/03/08 18:29
linux-5.15 INFO: rcu detected stall in generic_file_write_iter 1 233d 233d 0/3 auto-obsoleted due to no activity on 2023/12/13 17:16
upstream INFO: rcu detected stall in generic_file_write_iter (6) cgroups mm 2 856d 913d 0/26 closed as invalid on 2022/02/08 09:50
linux-6.1 INFO: rcu detected stall in generic_file_write_iter 2 9h57m 3d17h 0/3 upstream: reported on 2024/04/21 16:23
upstream INFO: rcu detected stall in generic_file_write_iter (3) kernel 1 1604d 1604d 0/26 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in generic_file_write_iter (2) exfat 2 1818d 1858d 0/26 auto-closed as invalid on 2019/10/25 09:01
upstream INFO: rcu detected stall in generic_file_write_iter (4) cgroups 1 1536d 1532d 0/26 auto-closed as invalid on 2020/05/09 11:43
upstream INFO: rcu detected stall in generic_file_write_iter mm 58 1882d 2024d 0/26 closed as dup on 2018/10/27 15:28
upstream INFO: rcu detected stall in generic_file_write_iter (5) fs 2 1371d 1378d 0/26 auto-closed as invalid on 2020/10/22 01:02

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [syz-executor.0:3202]
Modules linked in:
irq event stamp: 50116
hardirqs last  enabled at (50115): [<ffff80000ca7e160>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline]
hardirqs last  enabled at (50115): [<ffff80000ca7e160>] exit_to_kernel_mode+0x38/0x120 arch/arm64/kernel/entry-common.c:94
hardirqs last disabled at (50116): [<ffff80000ca7fdc8>] __el1_irq arch/arm64/kernel/entry-common.c:468 [inline]
hardirqs last disabled at (50116): [<ffff80000ca7fdc8>] el1_interrupt+0x24/0x54 arch/arm64/kernel/entry-common.c:486
softirqs last  enabled at (50020): [<ffff80000801080c>] _stext+0x80c/0xd70
softirqs last disabled at (49871): [<ffff800008019484>] ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:80
CPU: 1 PID: 3202 Comm: syz-executor.0 Not tainted 6.3.0-syzkaller-00113-g1a0beef98b58 #0
Hardware name: linux,dummy-virt (DT)
pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __arch_copy_from_user+0x1b0/0x230 arch/arm64/lib/copy_template.S:164
lr : copyin lib/iov_iter.c:183 [inline]
lr : copyin+0xb8/0x118 lib/iov_iter.c:175
sp : ffff8000192a7840
x29: ffff8000192a7840 x28: ffff8000192a7c30 x27: ffff80000dddb378
x26: 0000000000001000 x25: 0000000040000000 x24: ffff000006324000
x23: 0000ffff99400000 x22: 0000ffff99454000 x21: ffff000006324000
x20: 0000ffff99454000 x19: 0000000000001000 x18: 0000000000000000
x17: 0000000000000000 x16: 0000000000000000 x15: 0000ffff99454000
x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffff000006324d80
x5 : ffff000006325000 x4 : 0000000000000000 x3 : ffff80000910e070
x2 : 0000000000000200 x1 : 0000ffff99454dc0 x0 : ffff000006324000
Call trace:
 __arch_copy_from_user+0x1b0/0x230 arch/arm64/lib/copy_template.S:158
 copy_page_from_iter_atomic+0x33c/0xe5c lib/iov_iter.c:815
 generic_perform_write+0x218/0x3ec mm/filemap.c:3934
 __generic_file_write_iter+0x1e8/0x3a0 mm/filemap.c:4054
 generic_file_write_iter+0xc0/0x294 mm/filemap.c:4086
 call_write_iter include/linux/fs.h:1851 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x4c8/0x740 fs/read_write.c:584
 ksys_write+0xec/0x1d0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x6c/0x9c fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x6c/0x260 arch/arm64/kernel/syscall.c:52
 el0_svc_common.constprop.0+0xc4/0x254 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x50/0x124 arch/arm64/kernel/syscall.c:193
 el0_svc+0x54/0x140 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0xb8/0xbc arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/24 22:42 upstream 1a0beef98b58 65320f8e .config console log report info ci-qemu2-arm64 BUG: soft lockup in generic_file_write_iter
2023/04/23 13:59 upstream 622322f53c6d 2b32bd34 .config console log report info ci-qemu2-arm64 BUG: soft lockup in generic_file_write_iter
2023/07/10 13:34 upstream 06c2afb862f9 52ae002a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in generic_file_write_iter
2023/06/29 17:17 upstream e8f75c0270d9 ca69c785 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in generic_file_write_iter
2023/06/08 08:31 upstream 5f63595ebd82 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in generic_file_write_iter
2023/05/22 01:43 upstream e2065b8c1b01 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in generic_file_write_iter
2023/07/06 14:11 linux-next c36ac601a98f 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in generic_file_write_iter
2023/05/15 20:28 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a4422ff22142 c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in generic_file_write_iter
* Struck through repros no longer work on HEAD.