INFO: task syz-executor.2:1936 blocked for more than 143 seconds. Not tainted 6.8.0-rc7-syzkaller-00020-g5847c9777c30 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:21784 pid:1936 tgid:1858 ppid:5098 flags:0x00004006 Call Trace: 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+0x12e/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+0x186/0x7c0 mm/readahead.c:241 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:0x7fbf94e7dda9 RSP: 002b:00007fbf95b340c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fbf94fac050 RCX: 00007fbf94e7dda9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 00007fbf94eca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fbf94fac050 R15: 00007ffeec435838 INFO: task syz-executor.2:1937 blocked for more than 144 seconds. Not tainted 6.8.0-rc7-syzkaller-00020-g5847c9777c30 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:26320 pid:1937 tgid:1858 ppid:5098 flags:0x00004006 Call Trace: 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:0x7fbf94e7dda9 RSP: 002b:00007fbf95b130c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fbf94fac120 RCX: 00007fbf94e7dda9 RDX: 0000000020000000 RSI: 000000004020940d RDI: 0000000000000005 RBP: 00007fbf94eca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fbf94fac120 R15: 00007ffeec435838 Showing all locks held in the system: 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 1 lock held by udevd/4514: 2 locks held by getty/4823: #0: ffff8880302400a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000312b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.4/5100: #0: ffff888041ee20e0 (&type->s_umount_key#57){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff888041ee20e0 (&type->s_umount_key#57){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff888041ee20e0 (&type->s_umount_key#57){++++}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:504 4 locks held by syz-executor.1/15767: 2 locks held by kworker/u4:6/32090: 2 locks held by syz-executor.2/1936: #0: ffff8880316d4e60 (&iint_mutex_key[depth]){+.+.}-{3:3}, at: process_measurement+0x7d4/0x21d0 security/integrity/ima/ima_main.c:267 #1: ffff88803d851898 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:859 [inline] #1: ffff88803d851898 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:225 5 locks held by syz-executor.2/1937: #0: ffff888028a0a420 (sb_writers#17){.+.+}-{0:0}, at: ioctl_file_clone fs/ioctl.c:240 [inline] #0: ffff888028a0a420 (sb_writers#17){.+.+}-{0:0}, at: ioctl_file_clone_range fs/ioctl.c:259 [inline] #0: ffff888028a0a420 (sb_writers#17){.+.+}-{0:0}, at: do_vfs_ioctl+0xfad/0x2b60 fs/ioctl.c:824 #1: ffff88803d8516f8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff88803d8516f8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: lock_two_nondirectories+0xe1/0x170 fs/inode.c:1109 #2: ffff88803d8578f0 (&sb->s_type->i_mutex_key#23/4){+.+.}-{3:3}, at: btrfs_remap_file_range+0x165/0xeb0 fs/btrfs/reflink.c:896 #3: ffff88803d857778 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:652 [inline] #3: ffff88803d857778 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_remap_file_range+0x182/0xeb0 fs/btrfs/reflink.c:897 #4: ffff88803d851580 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:653 [inline] #4: ffff88803d851580 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_remap_file_range+0x19e/0xeb0 fs/btrfs/reflink.c:897 1 lock held by syz-executor.2/4747: #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 1 lock held by udevadm/4748: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc7-syzkaller-00020-g5847c9777c30 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __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 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5097 Comm: syz-executor.0 Not tainted 6.8.0-rc7-syzkaller-00020-g5847c9777c30 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:67 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:127 [inline] RIP: 0010:lock_release+0x5f2/0x9d0 kernel/locking/lockdep.c:5777 Code: f8 01 0f 85 9a 00 00 00 4c 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 4a fc 80 00 48 c7 84 24 90 00 00 00 00 00 00 00 <9c> 8f 84 24 90 00 00 00 42 80 3c 3b 00 74 08 4c 89 f7 e8 37 fb 80 RSP: 0018:ffffc9000444f560 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 1ffff92000889ebe RCX: ffffc9000444f503 RDX: 0000000000000002 RSI: ffffffff8baac7e0 RDI: ffffffff8bfd99e0 RBP: ffffc9000444f688 R08: ffffffff8f84406f R09: 1ffffffff1f0880d R10: dffffc0000000000 R11: fffffbfff1f0880e R12: 1ffff92000889eb8 R13: 0000000000000046 R14: ffffc9000444f5f0 R15: dffffc0000000000 FS: 0000555557263480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555af92bc668 CR3: 000000002ca70000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: filemap_unaccount_folio+0x1d6/0xc30 mm/filemap.c:183 __filemap_remove_folio+0xcd/0xa70 mm/filemap.c:222 filemap_remove_folio+0x109/0x2e0 mm/filemap.c:255 truncate_inode_folio+0x5d/0x70 mm/truncate.c:195 shmem_undo_range+0x439/0x1da0 mm/shmem.c:1001 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x29b/0xa60 mm/shmem.c:1242 evict+0x2a8/0x630 fs/inode.c:665 __dentry_kill+0x20d/0x630 fs/dcache.c:603 dput+0x19f/0x2b0 fs/dcache.c:845 __fput+0x678/0x8a0 fs/file_table.c:384 task_work_run+0x24e/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:108 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0x167/0x360 kernel/entry/common.c:212 do_syscall_64+0x108/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fb76587db0b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007fff210f03f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007fb76587db0b RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003 RBP: 00007fff210f04ac R08: 0000000000000000 R09: 00007fff210f0197 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032 R13: 00000000001a316f R14: 00000000001a2864 R15: 0000000000000014