INFO: task syz-executor.4:7766 blocked for more than 143 seconds. Not tainted 6.4.0-rc3-syzkaller-00190-g0d85b27b0cc6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23384 pid:7766 ppid:5044 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:775 [inline] btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:178 btrfs_buffered_write+0x239/0x1600 fs/btrfs/file.c:1202 btrfs_do_write_iter+0x429/0x1270 fs/btrfs/file.c:1677 do_iter_write+0x7b1/0xcb0 fs/read_write.c:860 iter_file_splice_write+0x843/0xfe0 fs/splice.c:795 do_splice_from fs/splice.c:873 [inline] direct_splice_actor+0xe7/0x1c0 fs/splice.c:1039 splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:994 do_splice_direct+0x283/0x3d0 fs/splice.c:1082 do_sendfile+0x620/0xff0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd905e8c169 RSP: 002b:00007fd906bb5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fd905fac120 RCX: 00007fd905e8c169 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000006 RBP: 00007fd905ee7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc5bd0239f R14: 00007fd906bb5300 R15: 0000000000022000 INFO: task syz-executor.4:7768 blocked for more than 144 seconds. Not tainted 6.4.0-rc3-syzkaller-00190-g0d85b27b0cc6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23328 pid:7768 ppid:5044 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 wait_on_state fs/btrfs/extent-io-tree.c:707 [inline] wait_extent_bit+0x50c/0x670 fs/btrfs/extent-io-tree.c:751 lock_extent+0x1ce/0x280 fs/btrfs/extent-io-tree.c:1742 btrfs_page_mkwrite+0x556/0xc90 fs/btrfs/inode.c:8130 do_page_mkwrite+0x1a4/0x600 mm/memory.c:2931 wp_page_shared mm/memory.c:3280 [inline] do_wp_page+0x501/0x3690 mm/memory.c:3362 handle_pte_fault mm/memory.c:4964 [inline] __handle_mm_fault mm/memory.c:5089 [inline] handle_mm_fault+0x2371/0x5860 mm/memory.c:5243 do_user_addr_fault arch/x86/mm/fault.c:1440 [inline] handle_page_fault arch/x86/mm/fault.c:1534 [inline] exc_page_fault+0x7d2/0x910 arch/x86/mm/fault.c:1590 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x33/0xb0 arch/x86/lib/copy_user_64.S:56 Code: 46 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 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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:ffffc900168df4d0 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000158 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900168df580 RDI: 0000000020000120 RBP: ffffc900168df638 R08: dffffc0000000000 R09: fffff52002d1beb7 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038 R13: ffffc900168df580 R14: 0000000020000120 R15: ffffc900168df580 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user+0x86/0xa0 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:144 emit_fiemap_extent+0x259/0x410 fs/btrfs/extent_io.c:2846 extent_fiemap+0xed4/0x1fc0 fs/btrfs/extent_io.c:3336 btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7802 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x19ba/0x2b10 fs/ioctl.c:810 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x81/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd905e8c169 RSP: 002b:00007fd906b94168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd905fac1f0 RCX: 00007fd905e8c169 RDX: 0000000020000100 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007fd905ee7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc5bd0239f R14: 00007fd906b94300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8cf276f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8cf27ab0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:2/41: #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90000b27d20 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:2/758: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90003d5fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by getty/4755: #0: ffff88802d702098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176 1 lock held by syz-executor.2/5032: #0: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992 2 locks held by kworker/0:3/5090: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90004b7fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:4/5093: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90004b9fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:5/5094: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90004bafd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:6/5096: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90004bcfd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:7/5097: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90004bdfd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:8/5101: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90004c37d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 3 locks held by kworker/u4:6/5125: #0: ffff88814564d938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90004c97d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 #2: ffff88807f3000e0 (&type->s_umount_key#53){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 2 locks held by kworker/0:9/5328: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc900057bfd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:12/5469: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90006417d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0} , at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:13/5470: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90006427d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:14/5471: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90006437d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:16/5877: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc900160e7d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:17/6198: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90016b2fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:18/6373: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc9001768fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by kworker/0:19/6374: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc900174efd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 2 locks held by syz-executor.4/7766: #0: ffff88807f300460 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1253 #1: ffff8880772c9848 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline] #1: ffff8880772c9848 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:178 4 locks held by syz-executor.4/7768: #0: ffff8880772c9848 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline] #0: ffff8880772c9848 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:170 #1: ffff88807b777668 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:161 [inline] #1: ffff88807b777668 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1381 [inline] #1: ffff88807b777668 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1534 [inline] #1: ffff88807b777668 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x1b9/0x910 arch/x86/mm/fault.c:1590 #2: ffff88807f300558 (sb_pagefaults#3){.+.+}-{0:0}, at: do_page_mkwrite+0x1a4/0x600 mm/memory.c:2931 #3: ffff8880772c96d0 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x427/0xc90 fs/btrfs/inode.c:8119 2 locks held by syz-executor.3/10205: #0: ffffffff8e09fa48 (rtnl_mutex){+.+.}-{3:3}, at: ppp_release+0x8a/0x1f0 drivers/net/ppp/ppp_generic.c:405 #1: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992 1 lock held by syz-executor.5/10218: #0: ffff88802935a0e0 (&type->s_umount_key#50/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc3-syzkaller-00190-g0d85b27b0cc6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x2b8/0x350 kernel/kthread.c:379 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: 41 Comm: kworker/u4:2 Not tainted 6.4.0-rc3-syzkaller-00190-g0d85b27b0cc6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/2023 Workqueue: phy7 ieee80211_iface_work RIP: 0010:krc_count kernel/rcu/tree.c:3050 [inline] RIP: 0010:schedule_delayed_monitor_work+0x3d/0x200 kernel/rcu/tree.c:3060 Code: ff df 4c 8d 77 10 4c 89 f7 be 04 00 00 00 e8 1a bf 6e 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 68 01 00 00 8b 6b 10 <4c> 8d 73 38 4c 89 f7 be 04 00 00 00 e8 f2 be 6e 00 4c 89 f0 48 c1 RSP: 0018:ffffc90000b27190 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffff8880b9829228 RCX: ffffffff817493a6 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b9829238 RBP: 0000000000000001 R08: dffffc0000000000 R09: ffffed1017305248 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000246 R14: ffff8880b9829238 R15: 1ffff92000164e40 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000002edc8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvfree_call_rcu+0x64d/0x8d0 kernel/rcu/tree.c:3353 cfg80211_update_known_bss+0x166/0x9e0 cfg80211_bss_update+0x171/0x20d0 net/wireless/scan.c:1732 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2482 [inline] cfg80211_inform_bss_frame_data+0xc5b/0x22c0 net/wireless/scan.c:2515 ieee80211_bss_info_update+0x801/0xf00 net/mac80211/scan.c:190 ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline] ieee80211_ibss_rx_queued_mgmt+0x192f/0x2cf0 net/mac80211/ibss.c:1638 ieee80211_iface_process_skb net/mac80211/iface.c:1594 [inline] ieee80211_iface_work+0x7bd/0xd00 net/mac80211/iface.c:1648 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308