INFO: task syz-executor.4:23073 blocked for more than 143 seconds.
Not tainted 6.1.0-next-20221220-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:25552 pid:23073 ppid:5126 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x2544/0x53f0 kernel/sched/core.c:6555
schedule+0xde/0x1b0 kernel/sched/core.c:6631
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6690
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa48/0x1360 kernel/locking/mutex.c:747
ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
ntfs_read_folio+0xf6/0x1e0 fs/ntfs3/inode.c:710
filemap_read_folio+0xdb/0x2c0 mm/filemap.c:2426
filemap_update_page mm/filemap.c:2511 [inline]
filemap_get_pages+0x10ef/0x16b0 mm/filemap.c:2624
filemap_read+0x315/0xc00 mm/filemap.c:2694
generic_file_read_iter+0x3ad/0x5b0 mm/filemap.c:2840
ntfs_file_read_iter+0x1b8/0x270 fs/ntfs3/file.c:758
call_read_iter include/linux/fs.h:2180 [inline]
generic_file_splice_read+0x182/0x4b0 fs/splice.c:309
do_splice_to+0x1b9/0x240 fs/splice.c:793
splice_direct_to_actor+0x2ab/0x8a0 fs/splice.c:865
do_splice_direct+0x1ab/0x280 fs/splice.c:974
do_sendfile+0xb19/0x1270 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64 fs/read_write.c:1309 [inline]
__x64_sys_sendfile64+0x259/0x2c0 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0459a8c0d9
RSP: 002b:00007f04585fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f0459babf80 RCX: 00007f0459a8c0d9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f0459ae7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffec7e3fb6f R14: 00007f04585fe300 R15: 0000000000022000
INFO: task syz-executor.4:23179 blocked for more than 144 seconds.
Not tainted 6.1.0-next-20221220-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:28576 pid:23179 ppid:5126 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x2544/0x53f0 kernel/sched/core.c:6555
schedule+0xde/0x1b0 kernel/sched/core.c:6631
io_schedule+0xbe/0x130 kernel/sched/core.c:8811
folio_wait_bit_common+0x394/0x9b0 mm/filemap.c:1297
folio_lock include/linux/pagemap.h:938 [inline]
truncate_inode_pages_range+0xb2e/0xec0 mm/truncate.c:421
truncate_inode_pages mm/truncate.c:448 [inline]
truncate_pagecache+0x67/0x90 mm/truncate.c:743
ntfs_truncate fs/ntfs3/file.c:395 [inline]
ntfs3_setattr+0x554/0xd30 fs/ntfs3/file.c:696
notify_change+0xca7/0x1420 fs/attr.c:482
do_truncate+0x143/0x200 fs/open.c:65
do_sys_ftruncate+0x51f/0x710 fs/open.c:193
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0459a8c0d9
RSP: 002b:00007f04503dd168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f0459bac050 RCX: 00007f0459a8c0d9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007f0459ae7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffec7e3fb6f R14: 00007f04503dd300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8c791cf0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8c7919f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
#0: ffffffff8c792840 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x2c2 kernel/locking/lockdep.c:6494
2 locks held by getty/4755:
#0: ffff88802bb4b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177
3 locks held by kworker/0:14/10756:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
#1: ffffc900032ffda8 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
#2: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xf/0x70 net/core/link_watch.c:277
2 locks held by kworker/u4:4/18462:
#0: ffff8880b983b598 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:537
#1: ffffc9000352fda8 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
3 locks held by syz-executor.4/23073:
#0: ffff88801c818460 (sb_writers#22){.+.+}-{0:0}, at: __do_sys_sendfile64 fs/read_write.c:1323 [inline]
#0: ffff88801c818460 (sb_writers#22){.+.+}-{0:0}, at: __se_sys_sendfile64 fs/read_write.c:1309 [inline]
#0: ffff88801c818460 (sb_writers#22){.+.+}-{0:0}, at: __x64_sys_sendfile64+0x259/0x2c0 fs/read_write.c:1309
#1: ffff88807b5bb8e0 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline]
#1: ffff88807b5bb8e0 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: filemap_update_page mm/filemap.c:2478 [inline]
#1: ffff88807b5bb8e0 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: filemap_get_pages+0x795/0x16b0 mm/filemap.c:2624
#2: ffff88807b5bb4a0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
#2: ffff88807b5bb4a0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_read_folio+0xf6/0x1e0 fs/ntfs3/inode.c:710
3 locks held by syz-executor.4/23179:
#0: ffff88801c818460 (sb_writers#22){.+.+}-{0:0}, at: do_syscall_x64 arch/x86/entry/common.c:50 [inline]
#0: ffff88801c818460 (sb_writers#22){.+.+}-{0:0}, at: do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
#1: ffff88807b5bb740 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#1: ffff88807b5bb740 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: do_truncate+0x131/0x200 fs/open.c:63
#2: ffff88807b5bb4a0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
#2: ffff88807b5bb4a0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_truncate fs/ntfs3/file.c:393 [inline]
#2: ffff88807b5bb4a0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs3_setattr+0x545/0xd30 fs/ntfs3/file.c:696
2 locks held by kworker/1:0/29488:
#0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
#0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
#0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
#0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
#1: ffffc900030afda8 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
1 lock held by syz-executor.1/3336:
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:75 [inline]
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e9/0xca0 net/core/rtnetlink.c:6138
1 lock held by syz-executor.1/3502:
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: xsk_bind+0x15f/0x10c0 net/xdp/xsk.c:895
1 lock held by syz-executor.0/3383:
#0: ffffffff8c79d3c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x6d0 kernel/rcu/tree.c:3997
2 locks held by syz-executor.3/3400:
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:75 [inline]
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e9/0xca0 net/core/rtnetlink.c:6138
#1: ffffffff8c79d4f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
#1: ffffffff8c79d4f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x5df/0x780 kernel/rcu/tree_exp.h:946
1 lock held by syz-executor.4/3508:
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:75 [inline]
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e9/0xca0 net/core/rtnetlink.c:6138
1 lock held by syz-executor.5/3509:
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:75 [inline]
#0: ffffffff8e0bfd28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e9/0xca0 net/core/rtnetlink.c:6138
1 lock held by syz-executor.2/3517:
#0: ffff8880a829f318 (&mm->mmap_lock){++++}-{3:3}, at: mmap_write_lock_killable include/linux/mmap_lock.h:87 [inline]
#0: ffff8880a829f318 (&mm->mmap_lock){++++}-{3:3}, at: vm_mmap_pgoff+0x159/0x280 mm/util.c:518
2 locks held by syz-executor.2/3518:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-next-20221220-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x32f/0x3c0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
watchdog+0xc75/0xfc0 kernel/hung_task.c:377
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 28493 Comm: kworker/0:17 Not tainted 6.1.0-next-20221220-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: events xdp_umem_release_deferred
RIP: 0010:task_wait_context kernel/locking/lockdep.c:4669 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4750 [inline]
RIP: 0010:__lock_acquire+0x5df/0x56d0 kernel/locking/lockdep.c:5005
Code: 01 65 8b 05 9b eb 9e 7e 85 c0 0f 85 cc 0a 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5c 24 40 48 89 da 48 c1 ea 03 0f b6 14 02 <48> 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 4b 4b 00 00 41
RSP: 0018:ffffc90003a0f8c8 EFLAGS: 00000807
RAX: dffffc0000000000 RBX: ffff8880adad449c RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff91342859
RBP: ffff8880adad44b1 R08: 0000000000000000 R09: dffffc0000000000
R10: fffffbfff2268158 R11: 0000000000000001 R12: ffff8880adad4508
R13: ffff8880adad3a80 R14: 0000000000000000 R15: 0000000000000002
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33221000 CR3: 000000003e9eb000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire.part.0+0x11a/0x350 kernel/locking/lockdep.c:5668
rcu_lock_acquire include/linux/rcupdate.h:325 [inline]
rcu_read_lock include/linux/rcupdate.h:764 [inline]
page_ext_get+0x3c/0x2e0 mm/page_ext.c:157
__reset_page_owner+0x36/0x180 mm/page_owner.c:144
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1446 [inline]
free_pcp_prepare+0x4d0/0x9e0 mm/page_alloc.c:1496
free_unref_page_prepare mm/page_alloc.c:3369 [inline]
free_unref_page+0x1d/0x490 mm/page_alloc.c:3464
__folio_put_small mm/swap.c:106 [inline]
__folio_put+0xc5/0x140 mm/swap.c:129
folio_put_refs include/linux/mm.h:1243 [inline]
gup_put_folio+0x1d9/0x230 mm/gup.c:191
unpin_user_pages_dirty_lock mm/gup.c:354 [inline]
unpin_user_pages_dirty_lock+0x21b/0x4d0 mm/gup.c:314
xdp_umem_unpin_pages net/xdp/xdp_umem.c:26 [inline]
xdp_umem_release net/xdp/xdp_umem.c:61 [inline]
xdp_umem_release_deferred+0x126/0x2c0 net/xdp/xdp_umem.c:71
process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
worker_thread+0x669/0x1090 kernel/workqueue.c:2436
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308