INFO: task syz-executor.1:13271 blocked for more than 143 seconds. Not tainted 5.15.153-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23264 pid:13271 ppid: 10836 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 wait_on_state fs/btrfs/extent_io.c:868 [inline] wait_extent_bit+0x3f9/0x530 fs/btrfs/extent_io.c:906 lock_extent_bits+0x10d/0x1e0 fs/btrfs/extent_io.c:1469 btrfs_page_mkwrite+0x5f2/0xd60 fs/btrfs/inode.c:8953 do_page_mkwrite+0x1a9/0x440 mm/memory.c:2892 wp_page_shared+0x179/0x690 mm/memory.c:3229 handle_pte_fault mm/memory.c:4639 [inline] __handle_mm_fault mm/memory.c:4756 [inline] handle_mm_fault+0x2a3d/0x5950 mm/memory.c:4854 do_user_addr_fault arch/x86/mm/fault.c:1388 [inline] handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x271/0x740 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0010:copy_user_generic_unrolled+0x89/0xc0 arch/x86/lib/copy_user_64.S:92 Code: 38 4c 89 47 20 4c 89 4f 28 4c 89 57 30 4c 89 5f 38 48 8d 76 40 48 8d 7f 40 ff c9 75 b6 89 d1 83 e2 07 c1 e9 03 74 12 4c 8b 06 <4c> 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 89 d1 8a RSP: 0018:ffffc900031d7668 EFLAGS: 00050202 RAX: ffffffff84078e01 RBX: 0000000020000118 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffffc900031d7720 RDI: 00000000200000e0 RBP: ffffc900031d77d0 R08: 0000000000000000 R09: fffff5200063aeeb R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038 R13: 00007ffffffff000 R14: ffffc900031d7720 R15: 00000000200000e0 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0xef/0x130 lib/usercopy.c:40 copy_to_user include/linux/uaccess.h:200 [inline] fiemap_fill_next_extent+0x231/0x410 fs/ioctl.c:144 emit_fiemap_extent fs/btrfs/extent_io.c:5461 [inline] extent_fiemap+0x1218/0x1650 fs/btrfs/extent_io.c:5687 btrfs_fiemap+0x121/0x160 fs/btrfs/inode.c:8576 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x1934/0x2b70 fs/ioctl.c:814 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl+0x81/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7febbc98ee69 RSP: 002b:00007febbaf010c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007febbcabcf80 RCX: 00007febbc98ee69 RDX: 00000000200000c0 RSI: 00000000c020660b RDI: 0000000000000008 RBP: 00007febbc9db47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007febbcabcf80 R15: 00007fffbfaf3f08 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3258: #0: ffff88802471f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc9000250b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 1 lock held by syz-executor.3/9034: 3 locks held by syz-executor.1/13271: #0: ffff8880638db228 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #0: ffff8880638db228 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1329 [inline] #0: ffff8880638db228 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1476 [inline] #0: ffff8880638db228 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x181/0x740 arch/x86/mm/fault.c:1532 #1: ffff8880763f8558 (sb_pagefaults#3){.+.+}-{0:0}, at: do_page_mkwrite+0x1a9/0x440 mm/memory.c:2892 #2: ffff88805f627088 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4a2/0xd60 fs/btrfs/inode.c:8942 5 locks held by kworker/u4:10/15328: #0: ffff88806080f938 ((wq_completion)phy22){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc900031e7d20 ((work_completion)(&sdata->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88807c8e0d40 (&wdev->mtx){+.+.}-{3:3}, at: sdata_lock net/mac80211/ieee80211_i.h:1033 [inline] #2: ffff88807c8e0d40 (&wdev->mtx){+.+.}-{3:3}, at: ieee80211_ibss_work+0xa0/0x1480 net/mac80211/ibss.c:1685 #3: ffff8880750f17b0 (&local->sta_mtx){+.+.}-{3:3}, at: ieee80211_ibss_sta_expire net/mac80211/ibss.c:1259 [inline] #3: ffff8880750f17b0 (&local->sta_mtx){+.+.}-{3:3}, at: ieee80211_sta_merge_ibss net/mac80211/ibss.c:1302 [inline] #3: ffff8880750f17b0 (&local->sta_mtx){+.+.}-{3:3}, at: ieee80211_ibss_work+0x4be/0x1480 net/mac80211/ibss.c:1713 #4: ffffffff8c923ce8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #4: ffffffff8c923ce8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.153-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 15328 Comm: kworker/u4:10 Not tainted 5.15.153-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:91 [inline] RIP: 0010:lockdep_softirqs_off+0xb6/0x420 kernel/locking/lockdep.c:4434 Code: 65 8b 05 cd 17 a0 7e 85 c0 0f 85 6b 01 00 00 65 4c 8b 3d 7d 0e a0 7e 49 8d 9f ec 0a 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 28 <84> c0 0f 85 2c 02 00 00 83 3b 00 0f 85 3f 01 00 00 48 c7 c0 c0 7f RSP: 0018:ffffc900031e79a0 EFLAGS: 00000803 RAX: 0000000000000000 RBX: ffff88802475a8ac RCX: 000000000000006c RDX: 1ffff1100437e849 RSI: 0000000000000201 RDI: ffffffff89f9c498 RBP: ffffc900031e7a50 R08: dffffc0000000000 R09: fffffbfff1f7a035 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: dffffc0000000000 R14: 1ffff9200063cf38 R15: ffff888024759dc0 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559f8854f330 CR3: 00000000634c3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __local_bh_disable_ip+0xf7/0x210 kernel/softirq.c:323 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:134 [inline] _raw_spin_lock_bh+0x18/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:368 [inline] batadv_nc_purge_paths+0xe8/0x3b0 net/batman-adv/network-coding.c:446 batadv_nc_worker+0x30b/0x5b0 net/batman-adv/network-coding.c:726 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298