INFO: task syz-executor.5:17788 blocked for more than 143 seconds.
Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:23648 pid:17788 ppid:5108 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0x173b/0x4630 kernel/sched/core.c:6625
schedule+0xc3/0x180 kernel/sched/core.c:6701
io_schedule+0x8c/0x100 kernel/sched/core.c:8887
folio_wait_bit_common+0x86c/0x12b0 mm/filemap.c:1301
btrfs_page_mkwrite+0x42d/0xc90 fs/btrfs/inode.c:8153
do_page_mkwrite+0x1a1/0x600 mm/memory.c:2925
wp_page_shared mm/memory.c:3274 [inline]
do_wp_page+0x501/0x3620 mm/memory.c:3356
handle_pte_fault mm/memory.c:4927 [inline]
__handle_mm_fault mm/memory.c:5051 [inline]
handle_mm_fault+0x23a0/0x51c0 mm/memory.c:5197
do_user_addr_fault arch/x86/mm/fault.c:1407 [inline]
handle_page_fault arch/x86/mm/fault.c:1498 [inline]
exc_page_fault+0x5b1/0x7c0 arch/x86/mm/fault.c:1554
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x7f2a3f02bde9
RSP: 002b:00007ffdd44a4a80 EFLAGS: 00010246
RAX: 0000000020001600 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000008 RSI: 0000000000000000 RDI: 0000555556e982e8
RBP: 00007ffdd44a4b78 R08: 0000000000000000 R09: 0000000000000000
R10: 00007f2a3ec0c300 R11: 000000000001e5e6 R12: 000000000009c4b3
R13: 00007ffdd44a4ba0 R14: 00007ffdd44a4bc0 R15: 0000000000000032
INFO: task syz-executor.5:17789 blocked for more than 144 seconds.
Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:20992 pid:17789 ppid:5108 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0x173b/0x4630 kernel/sched/core.c:6625
schedule+0xc3/0x180 kernel/sched/core.c:6701
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
invalidate_extent_cache+0x36e/0x940 fs/btrfs/relocation.c:1583
merge_reloc_root+0x68b/0x1ae0 fs/btrfs/relocation.c:1852
merge_reloc_roots+0x3ad/0x9b0 fs/btrfs/relocation.c:2015
relocate_block_group+0xa71/0xce0 fs/btrfs/relocation.c:3751
btrfs_relocate_block_group+0x7ab/0xd70 fs/btrfs/relocation.c:4087
btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3276
__btrfs_balance+0x1b06/0x2690 fs/btrfs/volumes.c:4011
btrfs_balance+0xbdf/0x1120 fs/btrfs/volumes.c:4395
btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:3592
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xf1/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:0x7f2a3f08c169
RSP: 002b:00007f2a3fe0e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2a3f1abf80 RCX: 00007f2a3f08c169
RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007f2a3f0e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdd44a4a3f R14: 00007f2a3fe0e300 R15: 0000000000022000
INFO: task syz-executor.5:17829 blocked for more than 144 seconds.
Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:24024 pid:17829 ppid:5108 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0x173b/0x4630 kernel/sched/core.c:6625
schedule+0xc3/0x180 kernel/sched/core.c:6701
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+0x554/0xc90 fs/btrfs/inode.c:8163
do_page_mkwrite+0x1a1/0x600 mm/memory.c:2925
wp_page_shared mm/memory.c:3274 [inline]
do_wp_page+0x501/0x3620 mm/memory.c:3356
handle_pte_fault mm/memory.c:4927 [inline]
__handle_mm_fault mm/memory.c:5051 [inline]
handle_mm_fault+0x23a0/0x51c0 mm/memory.c:5197
do_user_addr_fault arch/x86/mm/fault.c:1407 [inline]
handle_page_fault arch/x86/mm/fault.c:1498 [inline]
exc_page_fault+0x5b1/0x7c0 arch/x86/mm/fault.c:1554
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:copy_user_short_string+0xd/0x40 arch/x86/lib/copy_user_64.S:233
Code: 74 0a 89 d1 f3 a4 89 c8 0f 01 ca c3 89 d0 0f 01 ca c3 01 ca eb e7 0f 1f 80 00 00 00 00 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: 0000:ffffc9000354f4d0 EFLAGS: 00050202
RAX: ffffffff84300f01 RBX: 00007fffffffefc8 RCX: 0000000000000007
RDX: 0000000000000000 RSI: ffffc9000354f580 RDI: 00000000200013e0
RBP: ffffc9000354f628 R08: 0000000000000000 R09: fffff520006a9eb7
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038
R13: ffffc9000354f580 R14: 00000000200013e0 R15: ffffc9000354f580
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+0xed/0x130 lib/usercopy.c:41
copy_to_user include/linux/uaccess.h:169 [inline]
fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:144
emit_fiemap_extent+0x242/0x3f0 fs/btrfs/extent_io.c:3002
extent_fiemap+0xfd1/0x2150 fs/btrfs/extent_io.c:3492
btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7835
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:0x7f2a3f08c169
RSP: 002b:00007f2a3fdcc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2a3f1ac120 RCX: 00007f2a3f08c169
RDX: 00000000200013c0 RSI: 00000000c020660b RDI: 0000000000000007
RBP: 00007f2a3f0e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdd44a4a3f R14: 00007f2a3fdcc300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8cf25530 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8cf25d30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by khungtaskd/28:
#0: ffffffff8cf25360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/u4:2/41:
#0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539
#1: ffff8880b9828788 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:976
2 locks held by getty/4754:
#0: ffff88802cc4c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177
2 locks held by syz-executor.4/5117:
3 locks held by syz-executor.5/17788:
#0: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
#0: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1348 [inline]
#0: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1498 [inline]
#0: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x18e/0x7c0 arch/x86/mm/fault.c:1554
#1: ffff888079ec8558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x1a1/0x600 mm/memory.c:2925
#2: ffff8880389e2028 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x425/0xc90 fs/btrfs/inode.c:8152
3 locks held by syz-executor.5/17789:
#0: ffff888079ec8460 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write_file+0x5e/0x1f0 fs/namespace.c:438
#1: ffff888029c22038 (&fs_info->reclaim_bgs_lock){+.+.}-{3:3}, at: __btrfs_balance+0x4bf/0x2690 fs/btrfs/volumes.c:3916
#2: ffff888029c20868 (&fs_info->cleaner_mutex){+.+.}-{3:3}, at: btrfs_relocate_block_group+0x7a3/0xd70 fs/btrfs/relocation.c:4086
4 locks held by syz-executor.5/17829:
#0: ffff8880389e21a0 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline]
#0: ffff8880389e21a0 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:169
#1: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
#1: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1348 [inline]
#1: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1498 [inline]
#1: ffff888023484998 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x18e/0x7c0 arch/x86/mm/fault.c:1554
#2: ffff888079ec8558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x1a1/0x600 mm/memory.c:2925
#3: ffff8880389e2028 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x425/0xc90 fs/btrfs/inode.c:8152
3 locks held by syz-executor.4/20625:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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+0x270/0x300 kernel/kthread.c:376
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.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:check_kcov_mode kernel/kcov.c:184 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:236 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x34/0x90 kernel/kcov.c:304
Code: 8b 15 40 4e 79 7e 65 8b 05 41 4e 79 7e a9 00 01 ff 00 74 10 a9 00 01 00 00 74 5b 83 ba 74 15 00 00 00 74 52 8b 82 50 15 00 00 <83> f8 03 75 47 48 8b 8a 58 15 00 00 44 8b 8a 54 15 00 00 49 c1 e1
RSP: 0018:ffffc90000b27bf0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88807ce54b10 RCX: ffff888017b5ba80
RDX: ffff888017b5ba80 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff8a6f2675 R09: fffffbfff205b639
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000162
R13: dffffc0000000000 R14: ffff88801e220c80 R15: ffff88802a7eaa00
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7fe8dfe000 CR3: 000000000cd30000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rcu_read_lock include/linux/rcupdate.h:774 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
batadv_nc_worker+0xd5/0x5c0 net/batman-adv/network-coding.c:719
process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390
worker_thread+0xa63/0x1210 kernel/workqueue.c:2537
kthread+0x270/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308