INFO: task syz-executor.2:10321 blocked for more than 143 seconds.
Not tainted 6.4.0-rc4-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:24960 pid:10321 ppid:5024 flags:0x00004004
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
io_schedule+0x8c/0x100 kernel/sched/core.c:8979
folio_wait_bit_common+0x86c/0x12b0 mm/filemap.c:1301
btrfs_page_mkwrite+0x42f/0xc90 fs/btrfs/inode.c:8120
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: 0033:0x7fb453086bcf
RSP: 002b:00007ffd0de32528 EFLAGS: 00010287
RAX: 0000000020000140 RBX: 0000000000000000 RCX: 00007fb452c00000
RDX: 0000000000000015 RSI: 00007fb452c05bb8 RDI: 0000000020000140
RBP: 00007ffd0de325e8 R08: 00007fb453000000 R09: 00007fb452c00000
R10: 00007fb452c05ba0 R11: 000000000004f784 R12: 000000000019500d
R13: 00007ffd0de32610 R14: 00007ffd0de32630 R15: 0000000000000032
INFO: task syz-executor.2:10322 blocked for more than 143 seconds.
Not tainted 6.4.0-rc4-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:21720 pid:10322 ppid:5024 flags:0x00004004
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: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 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:ffffc900174b7330 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 0000000020000658 RCX: 0000000000000038
RDX: 0000000000000000 RSI: ffffc900174b73e0 RDI: 0000000020000620
RBP: ffffc900174b7498 R08: dffffc0000000000 R09: fffff52002e96e83
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038
R13: ffffc900174b73e0 R14: 0000000020000620 R15: ffffc900174b73e0
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
fiemap_process_hole+0xa27/0xaf0 fs/btrfs/extent_io.c:3104
extent_fiemap+0xe7d/0x1fc0
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:0x7fb45308c169
RSP: 002b:00007fb453d93168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb4531abf80 RCX: 00007fb45308c169
RDX: 0000000020000600 RSI: 00000000c020660b RDI: 0000000000000004
RBP: 00007fb4530e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd0de324af R14: 00007fb453d93300 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 getty/4748:
#0: ffff88802b590098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176
3 locks held by syz-executor.1/5020:
#0: ffff88808af780e0 (&type->s_umount_key#53){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361
#1: ffffffff8d45ccc8 (uuid_mutex){+.+.}-{3:3}, at: btrfs_close_devices+0xc0/0x5c0 fs/btrfs/volumes.c:1183
#2: ffffffff8cfd0b28 (lock#3){+.+.}-{3:3}, at: __lru_add_drain_all+0x66/0x570 mm/swap.c:852
1 lock held by syz-executor.3/5031:
3 locks held by kworker/0:7/5131:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90004967d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
#2: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
#2: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992
2 locks held by kworker/0:19/11223:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90016b17d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:20/11224:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90016b67d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:23/11227:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc9000313fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:25/11229:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc9000315fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:26/11230:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc9000316fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:28/11978:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90014cffd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:29/11979:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90014cefd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
3 locks held by kworker/0:2/5447:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc900175e7d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
#2: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
#2: 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/5448:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc900175f7d20 ((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/5452:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90017637d20 ((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/5454:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90017657d20 ((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/5455:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90017667d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:22/5456:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90017677d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:30/5457:
#0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc90017687d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
2 locks held by kworker/0:31/5458:
#0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
#1: ffffc900175c7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
3 locks held by kworker/u4:13/7020:
3 locks held by syz-executor.2/10321:
#0: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:161 [inline]
#0: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1381 [inline]
#0: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1534 [inline]
#0: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x1b9/0x910 arch/x86/mm/fault.c:1590
#1: ffff888078b3c558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a4/0x600 mm/memory.c:2931
#2: ffff88807988bc30 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x427/0xc90 fs/btrfs/inode.c:8119
4 locks held by syz-executor.2/10322:
#0: ffff88807988bda8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
#0: ffff88807988bda8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:170
#1: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:161 [inline]
#1: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1381 [inline]
#1: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1534 [inline]
#1: ffff888022fc9c68 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x1b9/0x910 arch/x86/mm/fault.c:1590
#2: ffff888078b3c558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a4/0x600 mm/memory.c:2931
#3: ffff88807988bc30 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x427/0xc90 fs/btrfs/inode.c:8119
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/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: 4446 Comm: udevd Not tainted 6.4.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:kasan_check_range+0x5/0x290 mm/kasan/generic.c:186
Code: 01 c6 48 89 c7 e8 0b b9 cc 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 0f 1f 84 00 00 00 00 00 66 0f 1f 00 55 <41> 57 41 56 53 b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5
RSP: 0018:ffffc9000318f7c0 EFLAGS: 00000246
RAX: ffffc9000318fcb0 RBX: 0000000000000010 RCX: ffffffff813cc7f1
RDX: 0000000000000001 RSI: 0000000000000010 RDI: ffffc9000318f910
RBP: ffffc9000318f910 R08: 000000000000000f R09: ffffc9000318f9b0
R10: ffffc9000318f910 R11: dffffc0000000001 R12: 1ffffffff1db8b8d
R13: 1ffff92000631f19 R14: 0000000000000000 R15: ffffc9000318f8c0
FS: 00007f0d9d095c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f657cb85998 CR3: 000000002aad1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__asan_memset+0x23/0x40 mm/kasan/shadow.c:84
unwind_next_frame+0xbf1/0x2200 arch/x86/kernel/unwind_orc.c:564
arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4f/0x70 mm/kasan/common.c:52
__kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:186 [inline]
slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:711
slab_alloc_node mm/slub.c:3451 [inline]
slab_alloc mm/slub.c:3459 [inline]
__kmem_cache_alloc_lru mm/slub.c:3466 [inline]
kmem_cache_alloc+0x11f/0x2e0 mm/slub.c:3475
getname_flags+0xbc/0x4e0 fs/namei.c:140
user_path_at_empty+0x2e/0x180 fs/namei.c:2906
do_readlinkat+0x118/0x3b0 fs/stat.c:477
__do_sys_readlink fs/stat.c:510 [inline]
__se_sys_readlink fs/stat.c:507 [inline]
__x64_sys_readlink+0x7f/0x90 fs/stat.c:507
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:0x7f0d9cd17d47
Code: 73 01 c3 48 8b 0d e1 90 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b1 90 0d 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe3ce49f98 EFLAGS: 00000246 ORIG_RAX: 0000000000000059
RAX: ffffffffffffffda RBX: 00007ffe3ce49fa8 RCX: 00007f0d9cd17d47
RDX: 0000000000000400 RSI: 00007ffe3ce49fa8 RDI: 00007ffe3ce4a488
RBP: 0000000000000400 R08: 0000560570ba9b44 R09: 0000000000000000
R10: 0000000000000812 R11: 0000000000000246 R12: 00007ffe3ce4a488
R13: 00007ffe3ce4a3f8 R14: 0000560570b8d910 R15: 0000000000000000