INFO: task syz-executor.1:5738 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23576 pid:5738 ppid:5113 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6690 __mutex_lock_common+0xe4f/0x26e0 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 ima_check_last_writer security/integrity/ima/ima_main.c:164 [inline] ima_file_free+0x109/0x3a0 security/integrity/ima/ima_main.c:198 __fput+0x332/0x880 fs/file_table.c:314 task_work_run+0x243/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f57a5a3df5b RSP: 002b:00007ffd12035c40 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000009 RCX: 00007f57a5a3df5b RDX: 0000001b32120000 RSI: 0000001b321270dc RDI: 0000000000000008 RBP: 00007f57a5bad980 R08: 0000000000000000 R09: 000000000f9def0e R10: 00007ffd1217c0b8 R11: 0000000000000293 R12: 000000000003108e R13: 00007ffd12035d40 R14: 00007ffd12035d60 R15: 0000000000000032 INFO: task syz-executor.1:5783 blocked for more than 144 seconds. Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:19856 pid:5783 ppid:5113 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 io_schedule+0x83/0x100 kernel/sched/core.c:8811 folio_wait_bit_common+0x83a/0x12a0 mm/filemap.c:1297 __folio_lock mm/filemap.c:1660 [inline] folio_lock include/linux/pagemap.h:938 [inline] __filemap_get_folio+0x566/0x1250 mm/filemap.c:1932 pagecache_get_page+0x28/0x250 mm/folio-compat.c:98 find_or_create_page include/linux/pagemap.h:612 [inline] copy_inline_to_page+0x225/0x580 fs/btrfs/reflink.c:88 clone_copy_inline_extent fs/btrfs/reflink.c:322 [inline] btrfs_clone+0x1812/0x2c50 fs/btrfs/reflink.c:530 btrfs_clone_files+0x329/0x400 fs/btrfs/reflink.c:772 btrfs_remap_file_range+0x5b7/0x1400 fs/btrfs/reflink.c:910 do_clone_file_range+0x29c/0x310 fs/remap_range.c:393 vfs_clone_file_range+0x1d9/0x4c0 fs/remap_range.c:411 ioctl_file_clone fs/ioctl.c:239 [inline] ioctl_file_clone_range fs/ioctl.c:258 [inline] do_vfs_ioctl+0xef6/0x2980 fs/ioctl.c:823 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x83/0x170 fs/ioctl.c:856 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+0x63/0xcd RIP: 0033:0x7f57a5a8c0a9 RSP: 002b:00007f57a6847168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f57a5bac050 RCX: 00007f57a5a8c0a9 RDX: 0000000020000000 RSI: 000000004020940d RDI: 0000000000000007 RBP: 00007f57a5ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd12035bdf R14: 00007f57a6847300 R15: 0000000000022000 INFO: task syz-executor.1:5790 blocked for more than 144 seconds. Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:17008 pid:5790 ppid:5113 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 wait_on_state fs/btrfs/extent-io-tree.c:707 [inline] wait_extent_bit+0x577/0x6f0 fs/btrfs/extent-io-tree.c:751 lock_extent+0x1c2/0x280 fs/btrfs/extent-io-tree.c:1742 btrfs_lock_and_flush_ordered_range+0xd8/0x230 fs/btrfs/ordered-data.c:1050 contiguous_readpages fs/btrfs/extent_io.c:1809 [inline] extent_readahead+0x223/0x3c0 fs/btrfs/extent_io.c:3209 read_pages+0x169/0x9c0 mm/readahead.c:161 page_cache_ra_unbounded+0x703/0x820 mm/readahead.c:270 page_cache_sync_readahead include/linux/pagemap.h:1210 [inline] filemap_get_pages+0x465/0x10d0 mm/filemap.c:2600 filemap_read+0x3cf/0xea0 mm/filemap.c:2694 __kernel_read+0x3fc/0x830 fs/read_write.c:428 integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:199 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+0x178f/0x1ca0 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x444/0x8c0 security/integrity/ima/ima_api.c:292 process_measurement+0xf41/0x1bc0 security/integrity/ima/ima_main.c:339 ima_file_check+0xd8/0x130 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x2600/0x2dd0 fs/namei.c:3714 do_filp_open+0x264/0x4f0 fs/namei.c:3741 do_sys_openat2+0x124/0x4e0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1330 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+0x63/0xcd RIP: 0033:0x7f57a5a8c0a9 RSP: 002b:00007f57a6826168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f57a5bac120 RCX: 00007f57a5a8c0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f57a5ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd12035bdf R14: 00007f57a6826300 R15: 0000000000022000 Showing all locks held in the system: 2 locks held by kworker/u4:0/9: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d326f50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d327750 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d326d80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:5/2801: 2 locks held by getty/4755: #0: ffff88814a6a9098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.0/5103: #0: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #0: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946 2 locks held by syz-executor.3/5114: #0: ffff88803548a0e0 (&type->s_umount_key#63){+.+.}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362 #1: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #1: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946 1 lock held by syz-executor.2/5118: #0: ffff88802e9a40e0 (&type->s_umount_key#63){+.+.}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362 1 lock held by syz-executor.1/5738: #0: ffff88801c72e080 (&iint->mutex){+.+.}-{3:3}, at: ima_check_last_writer security/integrity/ima/ima_main.c:164 [inline] #0: ffff88801c72e080 (&iint->mutex){+.+.}-{3:3}, at: ima_file_free+0x109/0x3a0 security/integrity/ima/ima_main.c:198 5 locks held by syz-executor.1/5783: #0: ffff888020770460 (sb_writers#22){.+.+}-{0:0}, at: ioctl_file_clone fs/ioctl.c:239 [inline] #0: ffff888020770460 (sb_writers#22){.+.+}-{0:0}, at: ioctl_file_clone_range fs/ioctl.c:258 [inline] #0: ffff888020770460 (sb_writers#22){.+.+}-{0:0}, at: do_vfs_ioctl+0xef6/0x2980 fs/ioctl.c:823 #1: ffff88807367ac60 (&sb->s_type->i_mutex_key#29){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff88807367ac60 (&sb->s_type->i_mutex_key#29){+.+.}-{3:3}, at: lock_two_nondirectories+0xdd/0x130 fs/inode.c:1121 #2: ffff8880737bb600 (&sb->s_type->i_mutex_key#29/4){+.+.}-{3:3}, at: btrfs_remap_file_range+0x15d/0x1400 fs/btrfs/reflink.c:898 #3: ffff8880737bb488 (&ei->i_mmap_lock){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:654 [inline] #3: ffff8880737bb488 (&ei->i_mmap_lock){+.+.}-{3:3}, at: btrfs_remap_file_range+0x17d/0x1400 fs/btrfs/reflink.c:899 #4: ffff88807367aae8 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:655 [inline] #4: ffff88807367aae8 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_remap_file_range+0x199/0x1400 fs/btrfs/reflink.c:899 2 locks held by syz-executor.1/5790: #0: ffff88801c72e080 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x795/0x1bc0 security/integrity/ima/ima_main.c:260 #1: ffff88807367ae00 (mapping.invalidate_lock#6){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #1: ffff88807367ae00 (mapping.invalidate_lock#6){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xe9/0x820 mm/readahead.c:226 2 locks held by kworker/1:12/5936: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc9000ba67d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 3 locks held by syz-executor.4/8029: 6 locks held by syz-executor.4/8030: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/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: 8028 Comm: syz-executor.4 Not tainted 6.2.0-rc1-syzkaller-00043-g2258c2dc850b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0033:0x7f0e4b8394b4 Code: 00 0f 86 14 01 00 00 4c 8d ab 80 00 00 00 48 89 df 4c 89 ee e8 4d fa ff ff 4d 39 ec 74 40 0f 1f 84 00 00 00 00 00 49 8b 4d 00 <49> 8b 55 f8 49 8d 45 f8 48 39 d1 0f 83 f0 00 00 00 0f 1f 00 48 89 RSP: 002b:00007ffff39e1e50 EFLAGS: 00000202 RAX: 00007f0e4b24c8d0 RBX: 00007f0e4b200008 RCX: ffffffff81be0959 RDX: ffffffff81be0959 RSI: 00007f0e4b24c8d8 RDI: 00007f0e4b200008 RBP: 000000000003ffff R08: 00007f0e4b2000d0 R09: 00000000461eb0da R10: 0000000000000000 R11: 0000000000000000 R12: 00007f0e4b400000 R13: 00007f0e4b24c8e0 R14: 00007f0e4b9ac018 R15: ffffffff82cd1272 FS: 00005555568f1400 GS: 0000000000000000