INFO: task syz-executor.4:20500 blocked for more than 143 seconds. Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:24896 pid:20500 tgid:20499 ppid:5099 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0xedb/0x5af0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0xe9/0x270 kernel/sched/core.c:6778 wait_extent_bit fs/btrfs/extent-io-tree.c:799 [inline] lock_extent+0x657/0x730 fs/btrfs/extent-io-tree.c:1843 btrfs_page_mkwrite+0x653/0x11e0 fs/btrfs/inode.c:8158 do_page_mkwrite+0x17a/0x380 mm/memory.c:2944 wp_page_shared mm/memory.c:3339 [inline] do_wp_page+0xaa9/0x36b0 mm/memory.c:3479 handle_pte_fault mm/memory.c:5055 [inline] __handle_mm_fault+0x1d7d/0x3d70 mm/memory.c:5180 handle_mm_fault+0x47a/0xa10 mm/memory.c:5345 do_user_addr_fault+0x3d1/0x1000 arch/x86/mm/fault.c:1413 handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x5d/0xc0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 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 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 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:ffffc900169b78d8 EFLAGS: 00050206 RAX: 0000000000001000 RBX: 0000000000000038 RCX: 0000000000000038 RDX: fffff52002d36f32 RSI: ffffc900169b7958 RDI: 00000000200015e0 RBP: 00000000200015e0 R08: 0000000000000000 R09: fffff52002d36f31 R10: ffffc900169b798f R11: 0000000000000001 R12: ffffc900169b7958 R13: 0000000020001618 R14: 0000000000000000 R15: 0000000000000000 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 lib/usercopy.c:41 [inline] _copy_to_user+0xa8/0xb0 lib/usercopy.c:34 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x232/0x380 fs/ioctl.c:145 emit_last_fiemap_cache fs/btrfs/extent_io.c:2511 [inline] extent_fiemap+0x13e0/0x19f0 fs/btrfs/extent_io.c:3038 btrfs_fiemap+0xe4/0x160 fs/btrfs/inode.c:7830 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x339/0x1920 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x112/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f9790e7cba9 RSP: 002b:00007f9791afa0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9790f9bf80 RCX: 00007f9790e7cba9 RDX: 00000000200015c0 RSI: 00000000c020660b RDI: 0000000000000004 RBP: 00007f9790ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9790f9bf80 R15: 00007ffd3cb14658 Showing all locks held in the system: 3 locks held by kworker/u4:1/12: 1 lock held by khungtaskd/29: #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614 2 locks held by getty/4817: #0: ffff88814b0dd0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.3/5113: #0: ffffffff8cfb71b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8cfb71b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3ff/0x800 kernel/rcu/tree_exp.h:996 2 locks held by kworker/0:1/28202: #0: ffff888013072938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2602 #1: ffffc900058a7d80 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2603 5 locks held by kworker/u4:9/31469: #0: ffff88814c4e5938 ((wq_completion)ext4-rsv-conversion){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2602 #1: ffff8880b9828888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:988 #2: ffff8880b98297d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5d/0x200 kernel/time/timer.c:999 #3: ffff8880b9828888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:988 #4: ffffffff929b38e0 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:1020 [inline] #4: ffffffff929b38e0 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0xe1/0x4c0 lib/debugobjects.c:1063 2 locks held by kworker/u4:12/31484: #0: ffff8880b993c718 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558 #1: ffff8880b9928888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:988 4 locks held by syz-executor.4/20500: #0: ffff888077a3eba0 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888077a3eba0 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: btrfs_inode_lock+0xf9/0x100 fs/btrfs/inode.c:370 #1: ffff888028de94a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff888028de94a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5372 [inline] #1: ffff888028de94a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x35/0x580 mm/memory.c:5432 #2: ffff88801a3fa510 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x17a/0x380 mm/memory.c:2944 #3: ffff888077a3ea28 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x6e4/0x11e0 fs/btrfs/inode.c:8147 3 locks held by syz-executor.4/20627: 4 locks held by syz-executor.0/20684: #0: ffff888077a3f4e8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888077a3f4e8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: btrfs_inode_lock+0xf9/0x100 fs/btrfs/inode.c:370 #1: ffff888027c401a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff888027c401a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5372 [inline] #1: ffff888027c401a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x35/0x580 mm/memory.c:5432 #2: ffff8880309ec510 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x17a/0x380 mm/memory.c:2944 #3: ffff888077a3f370 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x6e4/0x11e0 fs/btrfs/inode.c:8147 1 lock held by dhcpcd/21828: #0: ffff88801c6b4130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline] #0: ffff88801c6b4130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf50 net/packet/af_packet.c:3208 1 lock held by dhcpcd/21829: #0: ffff888032196130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline] #0: ffff888032196130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf50 net/packet/af_packet.c:3208 2 locks held by syz-executor.0/21835: 1 lock held by syz-executor.2/21837: #0: ffff888034655e00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888034655e00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:78 [inline] #0: ffff888034655e00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_read_iter+0x557/0x6c0 fs/ext4/file.c:145 1 lock held by udevadm/21841: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 12 Comm: kworker/u4:1 Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: events_unbound cfg80211_wiphy_work RIP: 0010:do_raw_write_seqcount_begin include/linux/seqlock.h:479 [inline] RIP: 0010:do_write_seqcount_begin_nested include/linux/seqlock.h:526 [inline] RIP: 0010:do_write_seqcount_begin include/linux/seqlock.h:551 [inline] RIP: 0010:psi_group_change+0x121/0xdc0 kernel/sched/psi.c:787 Code: 48 89 c7 ff b4 24 90 00 00 00 41 b8 01 00 00 00 e8 14 3f 03 00 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 04 02 <5a> 44 8b 5c 24 10 84 c0 74 08 3c 03 0f 8e dc 07 00 00 83 45 00 01 RSP: 0018:ffffc90000007c48 EFLAGS: 00000016 RAX: 0000000000000000 RBX: ffff88807b3bf000 RCX: ffffffff8167118e RDX: 1ffffd1ffff8d578 RSI: ffffffff8accb1c0 RDI: ffffffff8b2efc20 RBP: ffffe8ffffc6abc0 R08: 0000000000000000 R09: fffffbfff23e35d2 R10: ffffffff91f1ae97 R11: 0000000000000006 R12: 0000000000000004 R13: 0000000000000000 R14: ffff88807b3bf000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560b79046680 CR3: 00000000781fd000 CR4: 0000000000350ef0 Call Trace: psi_task_change+0x1b0/0x2e0 kernel/sched/psi.c:912 psi_enqueue kernel/sched/stats.h:139 [inline] enqueue_task kernel/sched/core.c:2091 [inline] activate_task kernel/sched/core.c:2125 [inline] ttwu_do_activate+0x9f4/0xcf0 kernel/sched/core.c:3770 ttwu_queue kernel/sched/core.c:4021 [inline] try_to_wake_up+0x578/0x13d0 kernel/sched/core.c:4342 hrtimer_wakeup+0x47/0x60 kernel/time/hrtimer.c:1942 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x203/0xc20 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline] __sysvec_apic_timer_interrupt+0x105/0x400 arch/x86/kernel/apic/apic.c:1082 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1076 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:ieee80211_mandatory_rates+0x195/0x220 net/wireless/util.c:62 Code: 01 00 00 00 89 d9 48 d3 e0 09 44 24 14 e8 f3 a1 b3 f7 48 8b 44 24 08 83 c3 01 0f b6 00 84 c0 74 04 3c 03 7e 64 41 8b 6c 24 18 <89> de 89 ef e8 c2 9c b3 f7 39 dd 0f 8f 58 ff ff ff e8 c5 a1 b3 f7 RSP: 0018:ffffc900001179b8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000001 RDX: ffff888017e4d940 RSI: ffffffff89d3ccdd RDI: 0000000000000005 RBP: 000000000000000c R08: 0000000000000005 R09: 000000000000003f R10: 0000000000000001 R11: 0000000000000004 R12: ffff88807b9a3068 R13: 0000000000000004 R14: 0000000000000004 R15: dffffc0000000000 ieee80211_update_sta_info net/mac80211/ibss.c:995 [inline] ieee80211_rx_bss_info net/mac80211/ibss.c:1096 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1577 [inline] ieee80211_ibss_rx_queued_mgmt+0x1185/0x3120 net/mac80211/ibss.c:1604 ieee80211_iface_process_skb net/mac80211/iface.c:1589 [inline] ieee80211_iface_work+0xa67/0xda0 net/mac80211/iface.c:1643 cfg80211_wiphy_work+0x24e/0x330 net/wireless/core.c:437 process_one_work+0x886/0x15d0 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2781 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242