INFO: task syz-executor.2:19633 blocked for more than 143 seconds. Not tainted 6.7.0-syzkaller-12829-g125514880ddd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:21232 pid:19633 tgid:19632 ppid:5091 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x177f/0x4960 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/0x850 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+0x183/0x830 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/0x2080 mm/filemap.c:2498 filemap_read+0x41b/0xec0 mm/filemap.c:2594 __kernel_read+0x5c3/0xaa0 fs/read_write.c:434 integrity_kernel_read+0xb0/0xf0 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+0xad1/0x1b30 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x554/0xb30 security/integrity/ima/ima_api.c:290 process_measurement+0x1373/0x21c0 security/integrity/ima/ima_main.c:359 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:557 do_open fs/namei.c:3643 [inline] path_openat+0x287a/0x31e0 fs/namei.c:3798 do_filp_open+0x234/0x490 fs/namei.c:3825 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_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fa55947cda9 RSP: 002b:00007fa55a23f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fa5595abf80 RCX: 00007fa55947cda9 RDX: 0000000000000042 RSI: 00000000001a3802 RDI: 0000000020000080 RBP: 00007fa5594c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa5595abf80 R15: 00007ffeee7015e8 INFO: task syz-executor.2:19681 blocked for more than 145 seconds. Not tainted 6.7.0-syzkaller-12829-g125514880ddd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:25592 pid:19681 tgid:19632 ppid:5091 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x177f/0x4960 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 io_schedule+0x8c/0x100 kernel/sched/core.c:9023 folio_wait_bit_common+0x881/0x12b0 mm/filemap.c:1274 __filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1865 pagecache_get_page+0x2c/0x1f0 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/0x2a40 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 do_clone_file_range+0x19f/0x6d0 fs/remap_range.c:394 vfs_clone_file_range+0x39e/0x730 fs/remap_range.c:420 ioctl_file_clone fs/ioctl.c:240 [inline] ioctl_file_clone_range fs/ioctl.c:259 [inline] do_vfs_ioctl+0xfa1/0x2b40 fs/ioctl.c:824 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fa55947cda9 RSP: 002b:00007fa55a1fd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa5595ac120 RCX: 00007fa55947cda9 RDX: 0000000020000000 RSI: 000000004020940d RDI: 0000000000000005 RBP: 00007fa5594c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa5595ac120 R15: 00007ffeee7015e8 Showing all locks held in the system: 4 locks held by kworker/u4:1/12: 1 lock held by khungtaskd/29: #0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by kworker/u4:2/42: #0: ffff888013089938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888013089938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffff8880b9828988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988 2 locks held by getty/4803: #0: ffff88802aa490a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.3/5092: #0: ffffffff8d9348b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #0: ffffffff8d9348b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:996 2 locks held by kworker/1:5/5155: #0: ffff88801308a938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff88801308a938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc90004c57d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc90004c57d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 2 locks held by syz-executor.2/19633: #0: ffff88802f776320 (&iint_mutex_key[depth]){+.+.}-{3:3}, at: process_measurement+0x7d7/0x21c0 security/integrity/ima/ima_main.c:267 #1: ffff8880380cce08 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:857 [inline] #1: ffff8880380cce08 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:225 5 locks held by syz-executor.2/19681: #0: ffff8880363e2420 (sb_writers#13){.+.+}-{0:0}, at: ioctl_file_clone fs/ioctl.c:240 [inline] #0: ffff8880363e2420 (sb_writers#13){.+.+}-{0:0}, at: ioctl_file_clone_range fs/ioctl.c:259 [inline] #0: ffff8880363e2420 (sb_writers#13){.+.+}-{0:0}, at: do_vfs_ioctl+0xfa1/0x2b40 fs/ioctl.c:824 #1: ffff8880380c8528 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff8880380c8528 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: lock_two_nondirectories+0xe1/0x170 fs/inode.c:1109 #2: ffff8880380ccc68 (&sb->s_type->i_mutex_key#20/4){+.+.}-{3:3}, at: btrfs_remap_file_range+0x165/0xeb0 fs/btrfs/reflink.c:896 #3: ffff8880380ccaf0 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:652 [inline] #3: ffff8880380ccaf0 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_remap_file_range+0x182/0xeb0 fs/btrfs/reflink.c:897 #4: ffff8880380c83b0 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:653 [inline] #4: ffff8880380c83b0 (&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.2/22549: 1 lock held by syz-executor.0/22551: #0: ffffffff8df9af10 (tomoyo_ss){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline] #0: ffffffff8df9af10 (tomoyo_ss){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline] #0: ffffffff8df9af10 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_read_lock security/tomoyo/common.h:1108 [inline] #0: ffffffff8df9af10 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_mount_permission+0x295/0xb80 security/tomoyo/mount.c:236 2 locks held by modprobe/22554: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-syzkaller-12829-g125514880ddd #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+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x310 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+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5081 Comm: syz-executor.1 Not tainted 6.7.0-syzkaller-12829-g125514880ddd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:preempt_count_sub+0xf7/0x170 kernel/sched/core.c:5889 Code: 75 74 83 3d da 59 a1 0d 00 75 19 90 48 c7 c7 e0 34 6a 8b 48 c7 c6 c0 35 6a 8b e8 04 b8 f3 ff 90 0f 0b 90 90 90 e9 6f ff ff ff <48> c7 c1 80 f3 5e 92 80 e1 07 80 c1 03 38 c1 0f 8c 1f ff ff ff 48 RSP: 0018:ffffc9000428f290 EFLAGS: 00000202 RAX: 0000000000000004 RBX: 0000000000000001 RCX: ffff888027291dc0 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffc9000428f380 R08: ffffffff813e2a66 R09: ffffffff813e2660 R10: 0000000000000003 R11: ffff888027291dc0 R12: 00007ffebf9d2508 R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff92000851e70 FS: 0000555555be4480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffbef8d56c6 CR3: 00000000401cd000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0x1e5f/0x29e0 arch/x86/kernel/unwind_orc.c:672 arch_stack_walk+0x146/0x1a0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x70 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:314 [inline] __kasan_slab_alloc+0x66/0x70 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 anon_vma_chain_alloc mm/rmap.c:142 [inline] anon_vma_clone+0x98/0x4d0 mm/rmap.c:289 anon_vma_fork+0x87/0x580 mm/rmap.c:352 dup_mmap kernel/fork.c:712 [inline] dup_mm kernel/fork.c:1685 [inline] copy_mm+0xe74/0x21b0 kernel/fork.c:1734 copy_process+0x1d6f/0x3fb0 kernel/fork.c:2496 kernel_clone+0x222/0x840 kernel/fork.c:2901 __do_sys_clone kernel/fork.c:3044 [inline] __se_sys_clone kernel/fork.c:3028 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:3028 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7ffbeec79dd3 Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffebf9d2508 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ffbeec79dd3 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000555555be4750 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001