INFO: task syz.1.460:7036 blocked for more than 144 seconds.
Not tainted 6.10.0-next-20240719-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.460 state:D stack:25424 pid:7036 tgid:7010 ppid:5103 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5239 [inline]
__schedule+0x1800/0x4a60 kernel/sched/core.c:6603
__schedule_loop kernel/sched/core.c:6680 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6695
io_schedule+0x8d/0x110 kernel/sched/core.c:7480
folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1307
invalidate_inode_pages2_range+0x4e4/0x1030 mm/truncate.c:639
kiocb_invalidate_pages+0x317/0x3b0 mm/filemap.c:2738
blkdev_direct_write+0x49/0x140 block/fops.c:648
blkdev_write_iter+0x41a/0x5d0 block/fops.c:713
iter_file_splice_write+0xbd7/0x14e0 fs/splice.c:743
do_splice_from fs/splice.c:941 [inline]
direct_splice_actor+0x11e/0x220 fs/splice.c:1164
splice_direct_to_actor+0x58e/0xc90 fs/splice.c:1108
do_splice_direct_actor fs/splice.c:1207 [inline]
do_splice_direct+0x28c/0x3e0 fs/splice.c:1233
do_sendfile+0x56d/0xe20 fs/read_write.c:1295
__do_sys_sendfile64 fs/read_write.c:1362 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1348
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5539975f19
RSP: 002b:00007f553a6d8048 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f5539b06110 RCX: 00007f5539975f19
RDX: 0000000000000000 RSI: 000000000000000c RDI: 000000000000000c
RBP: 00007f55399e4e68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000020003 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f5539b06110 R15: 00007ffcae80ecf8
Showing all locks held in the system:
5 locks held by kworker/u8:0/11:
#0: ffff888015edd948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
#0: ffff888015edd948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc90000107d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
#1: ffffc90000107d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
#2: ffffffff8f5fddd0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:594
#3: ffffffff8f60a948 (rtnl_mutex){+.+.}-{3:3}, at: default_device_exit_batch+0xe9/0xa90 net/core/dev.c:11874
#4:
ffffffff8e33ce38 (rcu_state.exp_mutex
){+.+.}-{3:3}
, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline]
, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:967
3 locks held by kworker/u8:1/12:
#0: ffff88802a28e948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}
, at: process_one_work kernel/workqueue.c:3206 [inline]
, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc90000117d00
(
(work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
(work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
#2: ffffffff8f60a948 (
rtnl_mutex
){+.+.}-{3:3}
, at: addrconf_dad_work+0xd0/0x16f0 net/ipv6/addrconf.c:4194
1 lock held by khungtaskd/30:
#0: ffffffff8e337a60 (rcu_read_lock
){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline]
){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6695
8 locks held by kworker/1:1/46:
2 locks held by kworker/u8:4/61:
1 lock held by kswapd0/88:
1 lock held by kswapd1/89:
2 locks held by kworker/u8:10/2481:
2 locks held by kworker/u8:12/2862:
#0:
ffff8880b943ea18 (
&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:568
#1: ffff8880b9428948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}
, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:989
1 lock held by dhcpcd/4771:
#0: ffffffff8f60a948
(rtnl_mutex
){+.+.}-{3:3}
, at: rtnl_lock net/core/rtnetlink.c:149 [inline]
, at: rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731
2 locks held by getty/4857:
#0:
ffff88802adeb0a0 (&tty->ldisc_sem){++++}-{0:0}
, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900031232f0
(&ldata->atomic_read_lock){+.+.}-{3:3}
, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211
1 lock held by sshd/5087:
#0:
ffff88801d6ee948 (
mapping.invalidate_lock
){++++}-{3:3}
, at: filemap_invalidate_lock_shared include/linux/fs.h:854 [inline]
, at: filemap_fault+0xb5b/0x1760 mm/filemap.c:3321
3 locks held by kworker/0:3/5104:
#0: ffff888015080948
((wq_completion)events){+.+.}-{0:0}
, at: process_one_work kernel/workqueue.c:3206 [inline]
, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc9000391fd00
(
(linkwatch_work).work){+.+.}-{0:0}
, at: process_one_work kernel/workqueue.c:3207 [inline]
, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
#2: ffffffff8f60a948
(
rtnl_mutex){+.+.}-{3:3}
, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:276
1 lock held by syz.3.155/5786:
1 lock held by syz-executor/8578:
#0:
ffffffff8f60a948
(
rtnl_mutex
){+.+.}-{3:3}
, at: rtnl_lock net/core/rtnetlink.c:149 [inline]
, at: rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731
1 lock held by syz-executor/8651:
#0:
ffffffff8f60a948
(
rtnl_mutex){+.+.}-{3:3}
, at: rtnl_lock net/core/rtnetlink.c:149 [inline]
, at: rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731
4 locks held by syz-executor/8740:
#0:
ffff88807b444420
(
sb_writers
#8){.+.+}-{0:0}
, at: file_start_write include/linux/fs.h:2876 [inline]
, at: vfs_write+0x227/0xc90 fs/read_write.c:586
#1:
ffff88802f366488
(
&of->mutex
){+.+.}-{3:3}
, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325
#2: ffff888022bd31e8
(
kn->active
#49
){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326
#3: ffffffff8ef0c528 (
nsim_bus_dev_list_lock){+.+.}-{3:3}
, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216
7 locks held by syz-executor/8743:
#0: ffff88807b444420
(
sb_writers#8
){.+.+}-{0:0}
, at: file_start_write include/linux/fs.h:2876 [inline]
, at: vfs_write+0x227/0xc90 fs/read_write.c:586
#1:
ffff8880163a5488 (&of->mutex){+.+.}-{3:3}
, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325
#2: ffff888022bd31e8 (kn->active#49
){.+.+}-{0:0}
, at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326
#3:
ffffffff8ef0c528
(
nsim_bus_dev_list_lock
){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216
#4:
ffff88807e9020e8 (&dev->mutex
){....}-{3:3}
, at: device_lock include/linux/device.h:1009 [inline]
, at: __device_driver_lock drivers/base/dd.c:1094 [inline]
, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1292
#5: ffff88807e903250
(&devlink->lock_key#4){+.+.}-{3:3}
, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1672
#6:
ffffffff8f60a948
(
rtnl_mutex
){+.+.}-{3:3}
, at: unregister_nexthop_notifier+0x17/0x40 net/ipv4/nexthop.c:3899
2 locks held by syz.2.959/8923:
#0: ffffffff8f670390
(
cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218
#1: ffffffff8f60a948 (rtnl_mutex){+.+.}-{3:3}, at: nl80211_pre_doit+0x5f/0x8b0 net/wireless/nl80211.c:16547
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.10.0-next-20240719-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
watchdog+0xff4/0x1040 kernel/hung_task.c:379
kthread+0x2f0/0x390 kernel/kthread.c:389
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 5786 Comm: syz.3.155 Not tainted 6.10.0-next-20240719-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:lock_is_held_type+0xb/0x190 kernel/locking/lockdep.c:5879
Code: fc ff ff 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 41 57 41 56 41 55 <41> 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 bb
RSP: 0018:ffffc90013d2dec0 EFLAGS: 00000002
RAX: ffff88801d2d2040 RBX: ffff88813fffa000 RCX: dffffc0000000000
RDX: ffff88802a373c00 RSI: 00000000ffffffff RDI: ffff88801d2d20a8
RBP: 0000000000000001 R08: ffffffff81d44bb1 R09: 1ffffd40004008e0
R10: dffffc0000000000 R11: fffff940004008e1 R12: 0000000000000003
R13: 0000000000000740 R14: ffff88801d2d2100 R15: 1ffff11003a5a4d3
FS: 00007f4507ca46c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e148888043 CR3: 000000007966e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_is_held include/linux/lockdep.h:249 [inline]
__update_lru_size include/linux/mm_inline.h:44 [inline]
lru_gen_update_size+0x8c8/0xed0 include/linux/mm_inline.h:214
folio_inc_gen+0x346/0x4d0 mm/vmscan.c:3179
sort_folio mm/vmscan.c:4332 [inline]
scan_folios mm/vmscan.c:4412 [inline]
isolate_folios mm/vmscan.c:4537 [inline]
evict_folios+0x21c2/0x78c0 mm/vmscan.c:4568
try_to_shrink_lruvec+0x9ab/0xbb0 mm/vmscan.c:4775
shrink_one+0x3b9/0x850 mm/vmscan.c:4813
shrink_many mm/vmscan.c:4876 [inline]
lru_gen_shrink_node mm/vmscan.c:4954 [inline]
shrink_node+0x3799/0x3de0 mm/vmscan.c:5966
shrink_zones mm/vmscan.c:6228 [inline]
do_try_to_free_pages+0x5c2/0x1a50 mm/vmscan.c:6290
try_to_free_pages+0x9f0/0x10a0 mm/vmscan.c:6540
__perform_reclaim mm/page_alloc.c:3930 [inline]
__alloc_pages_direct_reclaim mm/page_alloc.c:3952 [inline]
__alloc_pages_slowpath+0xdc3/0x23d0 mm/page_alloc.c:4358
__alloc_pages_noprof+0x43e/0x6c0 mm/page_alloc.c:4744
alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263
alloc_pages_noprof mm/mempolicy.c:2343 [inline]
folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2350
filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1008
page_cache_ra_unbounded+0x1f4/0x7f0 mm/readahead.c:248
do_sync_mmap_readahead+0x49c/0x970
filemap_fault+0x828/0x1760 mm/filemap.c:3314
__do_fault+0x135/0x460 mm/memory.c:4655
do_cow_fault mm/memory.c:5091 [inline]
do_fault mm/memory.c:5193 [inline]
do_pte_missing mm/memory.c:3947 [inline]
handle_pte_fault+0xd99/0x6eb0 mm/memory.c:5522
__handle_mm_fault mm/memory.c:5665 [inline]
handle_mm_fault+0x1029/0x1980 mm/memory.c:5833
do_user_addr_fault arch/x86/mm/fault.c:1389 [inline]
handle_page_fault arch/x86/mm/fault.c:1481 [inline]
exc_page_fault+0x2b9/0x8c0 arch/x86/mm/fault.c:1539
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58
Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb
RSP: 0018:ffffc90013d2fbb0 EFLAGS: 00050246
RAX: 0000000000000000 RBX: 0000000020019ac0 RCX: 0000000000000008
RDX: 0000000000000000 RSI: ffffc90013d2fc20 RDI: 0000000020019ab8
RBP: ffffc90013d2fc90 R08: ffffc90013d2fc27 R09: 1ffff920027a5f84
R10: dffffc0000000000 R11: fffff520027a5f85 R12: 0000000000000008
R13: 0000000000018ff0 R14: 0000000020019ab8 R15: ffffc90013d2fc20
copy_user_generic arch/x86/include/asm/uaccess_64.h:110 [inline]
raw_copy_to_user arch/x86/include/asm/uaccess_64.h:131 [inline]
_inline_copy_to_user include/linux/uaccess.h:181 [inline]
_copy_to_user+0x86/0xb0 lib/usercopy.c:26
copy_to_user include/linux/uaccess.h:209 [inline]
msr_read+0x187/0x260 arch/x86/kernel/msr.c:69
vfs_read+0x204/0xbc0 fs/read_write.c:474
ksys_read+0x1a0/0x2c0 fs/read_write.c:619
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4506f75f19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4507ca4048 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f4507105f60 RCX: 00007f4506f75f19
RDX: 0000000000018ff8 RSI: 0000000020019680 RDI: 0000000000000008
RBP: 00007f4506fe4e68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f4507105f60 R15: 00007ffc37347948