INFO: task syz-executor.1:17286 blocked for more than 143 seconds. Not tainted 6.7.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23376 pid:17286 tgid:17285 ppid:5082 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] process_measurement+0x450/0x21c0 security/integrity/ima/ima_main.c:248 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:557 do_open fs/namei.c:3624 [inline] path_openat+0x2897/0x3290 fs/namei.c:3779 do_filp_open+0x234/0x490 fs/namei.c:3809 do_sys_openat2+0x13e/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1463 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fa5f147cce9 RSP: 002b:00007fa5f22320c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fa5f159bf80 RCX: 00007fa5f147cce9 RDX: 000000000000275a RSI: 0000000020000180 RDI: ffffffffffffff9c RBP: 00007fa5f14c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa5f159bf80 R15: 00007ffd2cc5fa88 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4805: #0: ffff888026e440a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&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/5087: #0: ffff88809d6a80e0 (&type->s_umount_key#74){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff88809d6a80e0 (&type->s_umount_key#74){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88809d6a80e0 (&type->s_umount_key#74){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:516 1 lock held by syz-executor.5/5098: #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:996 2 locks held by kworker/u4:8/7530: 2 locks held by syz-executor.1/17286: #0: ffff8880969d0418 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404 #1: ffff88804825c000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88804825c000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: process_measurement+0x450/0x21c0 security/integrity/ima/ima_main.c:248 4 locks held by syz-executor.1/17295: #0: ffff8880969d0418 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404 #1: ffff88804825c000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88804825c000 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: do_truncate+0x20c/0x300 fs/open.c:64 #2: ffff88804825c1a0 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:847 [inline] #2: ffff88804825c1a0 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_setattr+0xf31/0x1ba0 fs/ext4/inode.c:5401 #3: ffff88804825be88 (&ei->i_data_sem){++++}-{3:3}, at: ext4_truncate+0x981/0x1130 fs/ext4/inode.c:4164 2 locks held by syz-executor.3/19544: 2 locks held by syz-executor.1/19548: 1 lock held by syz-executor.4/19547: #0: ffff88801c2373f8 (&iint_mutex_key[depth]){+.+.}-{3:3}, at: ima_check_last_writer security/integrity/ima/ima_main.c:165 [inline] #0: ffff88801c2373f8 (&iint_mutex_key[depth]){+.+.}-{3:3}, at: ima_file_free+0x17c/0x4b0 security/integrity/ima/ima_main.c:204 1 lock held by syz-executor.4/19551: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc8-syzkaller #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: 23 Comm: kworker/1:0 Not tainted 6.7.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: events nsim_dev_trap_report_work RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x4/0x80 kernel/kcov.c:312 Code: 44 0a 08 05 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 f3 0f 1e fa <4c> 8b 04 24 65 48 8b 0d c0 3a 75 7e 65 8b 05 c1 3a 75 7e a9 00 01 RSP: 0018:ffffc900001d79f8 EFLAGS: 00000246 RAX: 1ffff110477a7824 RBX: adacafaea9a8abaa RCX: dffffc0000000000 RDX: 0000000000000000 RSI: adacafaea9a8abaa RDI: adacafaea9a8abaa RBP: ffff88823bd3c120 R08: ffffffff81ead9bb R09: 1ffffffff24c6b95 R10: dffffc0000000000 R11: fffffbfff24c6b96 R12: 0000000000000dd8 R13: ffff88823ffbef10 R14: adacafaea9a8abaa R15: ffff88823ffbeea8 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3786241000 CR3: 000000000d731000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: check_canary+0xab/0x920 mm/kfence/core.c:360 kfence_guarded_free+0x24d/0x4e0 mm/kfence/core.c:534 kfence_free include/linux/kfence.h:187 [inline] __slab_free+0x53/0x390 mm/slub.c:3614 nsim_dev_trap_report drivers/net/netdevsim/dev.c:821 [inline] nsim_dev_trap_report_work+0x761/0xa90 drivers/net/netdevsim/dev.c:850 process_one_work kernel/workqueue.c:2627 [inline] process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2700 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2781 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