syzbot


INFO: task hung in lock_page

Status: auto-obsoleted due to no activity on 2023/05/02 21:14
Subsystems: arm
[Documentation on labels]
First crash: 735d, last: 735d

Sample crash report:
INFO: task syz-executor.5:12450 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc5-syzkaller-17291-g2e84eedb182e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:0     pid:12450 ppid:4446   flags:0x00000009
Call trace:
 __switch_to+0x180/0x298 arch/arm64/kernel/process.c:556
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0x438/0x5a0 kernel/sched/core.c:6606
 schedule+0x64/0xa4 kernel/sched/core.c:6682
 io_schedule+0x38/0xbc kernel/sched/core.c:8862
 folio_wait_bit_common+0x430/0x97c mm/filemap.c:1297
 __folio_lock+0x2c/0x3c mm/filemap.c:1660
 lock_page+0xb8/0x1e0 include/linux/pagemap.h:959
 write_cache_pages+0x1c4/0x8bc mm/page-writeback.c:2439
 generic_writepages mm/page-writeback.c:2563 [inline]
 do_writepages+0x180/0x27c mm/page-writeback.c:2583
 __writeback_single_inode+0x64/0x2e4 fs/fs-writeback.c:1598
 writeback_single_inode+0x1a8/0x368 fs/fs-writeback.c:1719
 write_inode_now+0xb0/0xdc fs/fs-writeback.c:2755
 ntfs_file_fsync+0xe8/0x1a4 fs/ntfs/file.c:1966
 vfs_fsync_range+0xb0/0xcc fs/sync.c:188
 generic_write_sync include/linux/fs.h:2885 [inline]
 ntfs_file_write_iter+0x380/0x4f0 fs/ntfs/file.c:1922
 call_write_iter include/linux/fs.h:2189 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x2dc/0x46c fs/read_write.c:584
 ksys_write+0xb4/0x160 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+0x24/0x34 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x104 arch/arm64/kernel/syscall.c:193
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/11:
 #0: ffff80000d6556c8 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x450 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/12:
 #0: ffff80000d655d18 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x450 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/27:
 #0: ffff80000d6555a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:324
2 locks held by kworker/u4:3/1009:
 #0: ffff0000c0d40138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x270/0x504 kernel/workqueue.c:2262
 #1: ffff8000143c3d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x29c/0x504 kernel/workqueue.c:2264
2 locks held by getty/4078:
 #0: ffff0000c67d7098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x58 drivers/tty/tty_ldisc.c:244
 #1: ffff80000f85e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x19c/0x89c drivers/tty/n_tty.c:2177
3 locks held by syz-executor.5/12450:
 #0: ffff0000c9eef8e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x12c/0x154 fs/file.c:1046
 #1: ffff000124a8b460 (sb_writers#30){.+.+}-{0:0}, at: vfs_write+0x180/0x46c fs/read_write.c:580
 #2: ffff00011a71f0f0 (&sb->s_type->i_mutex_key#32){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #2: ffff00011a71f0f0 (&sb->s_type->i_mutex_key#32){+.+.}-{3:3}, at: ntfs_file_fsync+0x6c/0x1a4 fs/ntfs/file.c:1961
1 lock held by udevd/12604:
 #0: ffff0001fefd1298 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline]
 #0: ffff0001fefd1298 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1358 [inline]
 #0: ffff0001fefd1298 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1648 [inline]
 #0: ffff0001fefd1298 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0xa4/0x5a0 kernel/sched/core.c:6523
1 lock held by udevd/12744:

=============================================


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/24 20:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e84eedb182e 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in lock_page
* Struck through repros no longer work on HEAD.