INFO: task syz.4.5024:16124 blocked for more than 143 seconds. Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.5024 state:D stack:24000 pid:16124 tgid:16124 ppid:5965 task_flags:0x400040 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5373 [inline] __schedule+0x190e/0x4c90 kernel/sched/core.c:6760 __schedule_loop kernel/sched/core.c:6837 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6852 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6909 __mutex_lock_common kernel/locking/mutex.c:662 [inline] __mutex_lock+0x817/0x1010 kernel/locking/mutex.c:730 ima_check_last_writer security/integrity/ima/ima_main.c:166 [inline] ima_file_free+0x17f/0x4d0 security/integrity/ima/ima_main.c:205 security_file_release+0x92/0x140 security/security.c:2876 __fput+0x35a/0x9f0 fs/file_table.c:458 task_work_run+0x24f/0x310 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa83fd8d169 RSP: 002b:00007fff3c6f5428 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fa83ffa7ba0 RCX: 00007fa83fd8d169 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fa83ffa7ba0 R08: 0000000000000000 R09: 0000000d3c6f571f R10: 00007fa83ffa7ac0 R11: 0000000000000246 R12: 00000000000439c4 R13: 00007fa83ffa6080 R14: ffffffffffffffff R15: 00007fff3c6f5540 Showing all locks held in the system: 3 locks held by kworker/1:0/23: #0: ffff88801b080d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801b080d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x98b/0x18e0 kernel/workqueue.c:3319 #1: ffffc900001d7c60 ((fqdir_free_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc900001d7c60 ((fqdir_free_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9c6/0x18e0 kernel/workqueue.c:3319 #2: ffffffff8eb40780 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3772 1 lock held by khungtaskd/30: #0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8eb3b3a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6746 1 lock held by udevd/5204: 2 locks held by getty/5591: #0: ffff88814d6100a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000331b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x616/0x1770 drivers/tty/n_tty.c:2211 1 lock held by syz.4.5024/16124: #0: ffff888032976178 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}, at: ima_check_last_writer security/integrity/ima/ima_main.c:166 [inline] #0: ffff888032976178 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}, at: ima_file_free+0x17f/0x4d0 security/integrity/ima/ima_main.c:205 1 lock held by syz.4.5024/16127: 1 lock held by syz-executor/17729: 4 locks held by syz-executor/19188: 8 locks held by syz-executor/23511: #0: ffff888032c10420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3033 [inline] #0: ffff888032c10420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x225/0xd10 fs/read_write.c:680 #1: ffff888052eb1488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027f3ca58 (kn->active#55){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f7865a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 #4: ffff888027ad70e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1030 [inline] #4: ffff888027ad70e8 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff888027ad70e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1293 #5: ffff888027ad2250 (&devlink->lock_key#10){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1675 #6: ffffffff8fee0408 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0xa4/0x620 drivers/net/netdevsim/netdev.c:1014 #7: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #7: ffffffff8eb408b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x381/0x820 kernel/rcu/tree_exp.h:998 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 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:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:236 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:399 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 24712 Comm: syz-executor Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:unwind_next_frame+0x18c9/0x2380 arch/x86/kernel/unwind_orc.c:665 Code: 85 3d 08 00 00 40 b5 01 48 8b 1c 24 8b 84 24 94 00 00 00 39 03 4c 8b 7c 24 48 0f 85 66 01 00 00 48 8b 44 24 50 42 80 3c 28 00 <74> 0d 48 8b bc 24 80 00 00 00 e8 c8 18 bc 00 4c 8b 73 38 48 8d 7b RSP: 0018:ffffc9000cbbf608 EFLAGS: 00000246 RAX: 1ffff92001977ee3 RBX: ffffc9000cbbf6e0 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: ffffc9000cbb8000 RDI: ffffc9000cbbfd90 RBP: dffffc0000000001 R08: ffffc9000cbbfd90 R09: 0000000000000000 R10: ffffc9000cbbf730 R11: fffff52001977ee8 R12: ffffc9000cbbf6e0 R13: dffffc0000000000 R14: ffffffff90d25bd0 R15: ffffffff816d4f98 FS: 000055558cbc2500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5cfb04aea3 CR3: 000000007098e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/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:319 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4129 [inline] slab_alloc_node mm/slub.c:4178 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4185 lsm_inode_alloc security/security.c:755 [inline] security_inode_alloc+0x37/0x310 security/security.c:1697 inode_init_always_gfp+0xa0f/0xd90 fs/inode.c:306 inode_init_always include/linux/fs.h:3218 [inline] alloc_inode+0xa3/0x1b0 fs/inode.c:353 new_inode+0x22/0x1d0 fs/inode.c:1188 __shmem_get_inode mm/shmem.c:3024 [inline] shmem_get_inode+0x39d/0xf20 mm/shmem.c:3098 shmem_symlink+0x129/0x6c0 mm/shmem.c:4073 vfs_symlink+0x137/0x2e0 fs/namei.c:4659 do_symlinkat+0x222/0x3a0 fs/namei.c:4685 __do_sys_symlinkat fs/namei.c:4701 [inline] __se_sys_symlinkat fs/namei.c:4698 [inline] __x64_sys_symlinkat+0x95/0xb0 fs/namei.c:4698 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5cfaf8c6e7 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 0a 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe52ccd158 EFLAGS: 00000202 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5cfaf8c6e7 RDX: 00007f5cfb00fb16 RSI: 00000000ffffff9c RDI: 00007ffe52ccd1f0 RBP: 00007ffe52ccd19c R08: 0000000000000013 R09: 00007ffe52cccea7 R10: 0000000000000000 R11: 0000000000000202 R12: 00000000000002ad R13: 00000000000927c0 R14: 0000000000069f3c R15: 00007ffe52ccd1f0