INFO: task syz-executor.0:14235 blocked for more than 143 seconds.
Not tainted 6.7.0-rc5-next-20231215-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0 state:D stack:24592 pid:14235 tgid:14234 ppid:5093 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5399 [inline]
__schedule+0xf15/0x5c80 kernel/sched/core.c:6726
__schedule_loop kernel/sched/core.c:6801 [inline]
schedule+0xe7/0x270 kernel/sched/core.c:6816
wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline]
lock_extent+0x656/0x730 fs/btrfs/extent-io-tree.c:1868
btrfs_page_mkwrite+0x820/0x1420 fs/btrfs/inode.c:8176
do_page_mkwrite+0x17a/0x380 mm/memory.c:2959
wp_page_shared mm/memory.c:3346 [inline]
do_wp_page+0xb00/0x3750 mm/memory.c:3486
handle_pte_fault mm/memory.c:5151 [inline]
__handle_mm_fault+0x1f7c/0x48f0 mm/memory.c:5276
handle_mm_fault+0x476/0xa00 mm/memory.c:5441
do_user_addr_fault+0x3cf/0x1000 arch/x86/mm/fault.c:1413
handle_page_fault arch/x86/mm/fault.c:1505 [inline]
exc_page_fault+0x5c/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:ffffc9000532f8d8 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 0000000000000038 RCX: 0000000000000038
RDX: fffff52000a65f32 RSI: ffffc9000532f958 RDI: 00000000200015e0
RBP: 00000000200015e0 R08: 0000000000000000 R09: fffff52000a65f31
R10: ffffc9000532f98f R11: 0000000000000001 R12: ffffc9000532f958
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:2555 [inline]
extent_fiemap+0x13df/0x19f0 fs/btrfs/extent_io.c:3082
btrfs_fiemap+0xe4/0x160 fs/btrfs/inode.c:7844
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+0x62/0x6a
RIP: 0033:0x7f7e5007cba9
RSP: 002b:00007f7e50d280c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f7e5019bf80 RCX: 00007f7e5007cba9
RDX: 00000000200015c0 RSI: 00000000c020660b RDI: 0000000000000004
RBP: 00007f7e50d28120 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 000000000000000b R14: 00007f7e5019bf80 R15: 00007fffbf407fe8
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0: ffffffff8d1ac360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline]
#0: ffffffff8d1ac360 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline]
#0: ffffffff8d1ac360 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614
2 locks held by kworker/u4:4/59:
#0: ffff8880b983c718 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558
#1: ffff8880b9828408 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:988
2 locks held by getty/4820:
#0: ffff88814c1720a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900015e72f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc4/0x1490 drivers/tty/n_tty.c:2201
4 locks held by syz-executor.0/14235:
#0: ffff88803d40de38 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline]
#0: ffff88803d40de38 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: btrfs_inode_lock+0xf9/0x100 fs/btrfs/inode.c:379
#1: ffff88806cfacda0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline]
#1: ffff88806cfacda0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5468 [inline]
#1: ffff88806cfacda0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x35/0x580 mm/memory.c:5528
#2: ffff88803a860518 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x17a/0x380 mm/memory.c:2959
#3: ffff88803d40dcc0 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x8b1/0x1420 fs/btrfs/inode.c:8165
2 locks held by syz-executor.1/16365:
1 lock held by syz-executor.4/16381:
2 locks held by udevadm/16388:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc5-next-20231215-syzkaller #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+0xf86/0x1210 kernel/hung_task.c:379
kthread+0x2c1/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: 49 Comm: kworker/u4:3 Not tainted 6.7.0-rc5-next-20231215-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: bat_events batadv_dat_purge
RIP: 0010:lock_acquire+0xf7/0x530 kernel/locking/lockdep.c:5727
Code: 37 3a 8f 48 ba 00 00 00 00 00 fc ff df 48 89 c1 83 e0 07 48 c1 e9 03 83 c0 03 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 cd 03 00 00 <8b> 0d 7b b9 d1 0d 85 c9 0f 84 e3 00 00 00 65 8b 05 9c 07 9a 7e 85
RSP: 0018:ffffc90000b9fb68 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92000173f6f RCX: 1ffffffff1e746e3
RDX: 0000000000000000 RSI: ffffffff8b2f7cc0 RDI: ffffffff8ca85a60
RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff1e7406a
R10: ffffffff8f3a0357 R11: 0000000000000002 R12: 0000000000000001
R13: 0000000000000000 R14: ffff88803add7f18 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564b3b5abc28 CR3: 0000000086c41000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
_raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178
spin_lock_bh include/linux/spinlock.h:356 [inline]
__batadv_dat_purge.part.0+0xfa/0x3b0 net/batman-adv/distributed-arp-table.c:174
__batadv_dat_purge net/batman-adv/distributed-arp-table.c:167 [inline]
batadv_dat_purge+0x4b/0xa0 net/batman-adv/distributed-arp-table.c:205
process_one_work+0x8a4/0x15f0 kernel/workqueue.c:2633
process_scheduled_works kernel/workqueue.c:2706 [inline]
worker_thread+0x8b6/0x1290 kernel/workqueue.c:2787
kthread+0x2c1/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