INFO: task syz-executor.1:16685 blocked for more than 143 seconds.
Not tainted 6.8.0-rc5-syzkaller-00381-g70ff1fe626a1 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:23760 pid:16685 tgid:16684 ppid:5091 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5400 [inline]
__schedule+0x177f/0x49a0 kernel/sched/core.c:6727
__schedule_loop kernel/sched/core.c:6802 [inline]
schedule+0x149/0x260 kernel/sched/core.c:6817
io_schedule+0x8c/0x110 kernel/sched/core.c:9023
folio_wait_bit_common+0x881/0x12b0 mm/filemap.c:1274
__filemap_get_folio+0xa3/0xbc0 mm/filemap.c:1865
pagecache_get_page+0x2c/0x200 mm/folio-compat.c:93
find_or_create_page include/linux/pagemap.h:757 [inline]
copy_inline_to_page+0x234/0xc50 fs/btrfs/reflink.c:86
clone_copy_inline_extent fs/btrfs/reflink.c:320 [inline]
btrfs_clone+0x1757/0x2a50 fs/btrfs/reflink.c:528
btrfs_clone_files+0x32f/0x3f0 fs/btrfs/reflink.c:770
btrfs_remap_file_range+0x5a7/0xeb0 fs/btrfs/reflink.c:908
vfs_clone_file_range+0x4ea/0x8d0 fs/remap_range.c:403
ioctl_file_clone fs/ioctl.c:240 [inline]
ioctl_file_clone_range fs/ioctl.c:259 [inline]
do_vfs_ioctl+0xfad/0x2b60 fs/ioctl.c:824
__do_sys_ioctl fs/ioctl.c:869 [inline]
__se_sys_ioctl+0x81/0x170 fs/ioctl.c:857
do_syscall_64+0xf9/0x240
entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f4e3c27dda9
RSP: 002b:00007f4e3cf910c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f4e3c3abf80 RCX: 00007f4e3c27dda9
RDX: 0000000020000000 RSI: 000000004020940d RDI: 0000000000000006
RBP: 00007f4e3c2ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f4e3c3abf80 R15: 00007ffd9c06c568
</TASK>
INFO: task syz-executor.1:16777 blocked for more than 144 seconds.
Not tainted 6.8.0-rc5-syzkaller-00381-g70ff1fe626a1 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:21784 pid:16777 tgid:16684 ppid:5091 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5400 [inline]
__schedule+0x177f/0x49a0 kernel/sched/core.c:6727
__schedule_loop kernel/sched/core.c:6802 [inline]
schedule+0x149/0x260 kernel/sched/core.c:6817
wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline]
lock_extent+0x69d/0x860 fs/btrfs/extent-io-tree.c:1868
btrfs_lock_and_flush_ordered_range+0xd3/0x220 fs/btrfs/ordered-data.c:1092
contiguous_readpages fs/btrfs/extent_io.c:1186 [inline]
extent_readahead+0x10c1/0x1470 fs/btrfs/extent_io.c:2292
read_pages+0x184/0x840 mm/readahead.c:160
page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269
page_cache_sync_readahead include/linux/pagemap.h:1300 [inline]
filemap_get_pages+0x49c/0x2090 mm/filemap.c:2498
filemap_read+0x41b/0xec0 mm/filemap.c:2594
__kernel_read+0x5c7/0xab0 fs/read_write.c:434
integrity_kernel_read+0xb0/0x100 security/integrity/iint.c:221
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
ima_calc_file_hash+0xadb/0x1b30 security/integrity/ima/ima_crypto.c:573
ima_collect_measurement+0x554/0xb40 security/integrity/ima/ima_api.c:290
process_measurement+0x136d/0x21d0 security/integrity/ima/ima_main.c:359
ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:557
do_open fs/namei.c:3647 [inline]
path_openat+0x28b6/0x3240 fs/namei.c:3802
do_filp_open+0x234/0x490 fs/namei.c:3829
do_sys_openat2+0x13e/0x1d0 fs/open.c:1404
do_sys_open fs/open.c:1419 [inline]
__do_sys_open fs/open.c:1427 [inline]
__se_sys_open fs/open.c:1423 [inline]
__x64_sys_open+0x225/0x270 fs/open.c:1423
do_syscall_64+0xf9/0x240
entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f4e3c27dda9
RSP: 002b:00007f4e3cf700c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f4e3c3ac050 RCX: 00007f4e3c27dda9
RDX: 0000000000000060 RSI: 0000000000000100 RDI: 0000000020000140
RBP: 00007f4e3c2ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f4e3c3ac050 R15: 00007ffd9c06c568
</TASK>
Showing all locks held in the system:
5 locks held by kworker/u4:0/11:
#0: ffff8880b953c918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559
#1: ffff8880b9528988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988
#2: ffffffff946f9930 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:978 [inline]
#2: ffffffff946f9930 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0x234/0x580 lib/debugobjects.c:1019
#3: ffffe8ffffd67488 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}
, at: debug_object_activate+0x16d/0x510 lib/debugobjects.c:708
#4: ffffe8ffffd64808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x199/0x770 kernel/sched/psi.c:938
1 lock held by khungtaskd/29:
#0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline]
#0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline]
#0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4814:
#0: ffff88802b3170a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
1 lock held by syz-executor.0/5086:
#0: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
#0: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:995
5 locks held by syz-executor.1/16685:
#0: ffff88807c288420 (sb_writers#17){.+.+}-{0:0}, at: ioctl_file_clone fs/ioctl.c:240 [inline]
#0: ffff88807c288420 (sb_writers#17){.+.+}-{0:0}, at: ioctl_file_clone_range fs/ioctl.c:259 [inline]
#0: ffff88807c288420 (sb_writers#17){.+.+}-{0:0}, at: do_vfs_ioctl+0xfad/0x2b60 fs/ioctl.c:824
#1: ffff88807ae931b0 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline]
#1: ffff88807ae931b0 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: lock_two_nondirectories+0xe1/0x170 fs/inode.c:1109
#2: ffff88807af2cc68 (&sb->s_type->i_mutex_key#26/4){+.+.}-{3:3}, at: btrfs_remap_file_range+0x165/0xeb0 fs/btrfs/reflink.c:896
#3: ffff88807af2caf0 (&ei->i_mmap_lock){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:652 [inline]
#3: ffff88807af2caf0 (&ei->i_mmap_lock){+.+.}-{3:3}, at: btrfs_remap_file_range+0x182/0xeb0 fs/btrfs/reflink.c:897
#4: ffff88807ae93038 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:653 [inline]
#4: ffff88807ae93038 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_remap_file_range+0x19e/0xeb0 fs/btrfs/reflink.c:897
2 locks held by syz-executor.1/16777:
#0: ffff88802f3e9b00 (&iint_mutex_key[depth]){+.+.}-{3:3}, at: process_measurement+0x7d4/0x21d0 security/integrity/ima/ima_main.c:267
#1: ffff88807af2ce08 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:859 [inline]
#1: ffff88807af2ce08 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:225
3 locks held by kworker/1:0/16686:
2 locks held by kworker/1:5/17445:
#0: ffff888014c8e538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline]
#0: ffff888014c8e538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706
#1: ffffc90003607d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline]
#1: ffffc90003607d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706
1 lock held by syz-executor.4/19973:
#0: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
#0: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:995
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc5-syzkaller-00381-g70ff1fe626a1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 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+0xfaf/0xff0 kernel/hung_task.c:379
kthread+0x2ef/0x390 kernel/kthread.c:388
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 20024 Comm: udevadm Not tainted 6.8.0-rc5-syzkaller-00381-g70ff1fe626a1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:unwind_next_frame+0x6c2/0x29e0 arch/x86/kernel/unwind_orc.c:505
Code: 85 65 1b 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 70 1b 00 00 0f b6 5d 01 83 e3 07 48 89 df 48 c7 c6 60 01 fa 8d <e8> b9 1d 53 00 48 85 db 74 16 83 fb 01 75 1e e8 2a 18 53 00 4d 89
RSP: 0018:ffffc9001490f288 EFLAGS: 00000206
RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffff888028ca3b80
RDX: 0000000000000000 RSI: ffffffff8dfa0160 RDI: 0000000000000003
RBP: ffffffff90a39554 R08: ffffffff81405265 R09: ffffc9001490f450
R10: 0000000000000003 R11: ffffffff818043c0 R12: ffffffff8ffdd4cc
R13: dffffc0000000000 R14: 1ffff92002921e6c R15: ffffffff90a39550
FS: 00007f61489d1c80(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3d6305b000 CR3: 000000002f93c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<TASK>
arch_stack_walk+0x150/0x1b0 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x117/0x1d0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:314 [inline]
__kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:340
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3813 [inline]
slab_alloc_node mm/slub.c:3860 [inline]
kmem_cache_alloc+0x16f/0x340 mm/slub.c:3867
kmem_cache_zalloc include/linux/slab.h:701 [inline]
seq_open+0x62/0x140 fs/seq_file.c:63
kernfs_fop_open+0x602/0xcd0
do_dentry_open+0x907/0x15a0 fs/open.c:953
do_open fs/namei.c:3645 [inline]
path_openat+0x285f/0x3240 fs/namei.c:3802
do_filp_open+0x234/0x490 fs/namei.c:3829
do_sys_openat2+0x13e/0x1d0 fs/open.c:1404
do_sys_open fs/open.c:1419 [inline]
__do_sys_openat fs/open.c:1435 [inline]
__se_sys_openat fs/open.c:1430 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1430
do_syscall_64+0xf9/0x240
entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f61485169a4
Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fffee80c000 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f61485169a4
RDX: 0000000000080000 RSI: 00007fffee80c138 RDI: 00000000ffffff9c
RBP: 00007fffee80c138 R08: 0000000000000008 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000
R13: 0000563763c0735a R14: 0000000000000001 R15: 0000563764e8ada0
</TASK>