INFO: task syz.3.647:9286 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.647 state:D stack:27752 pid:9286 ppid:8136 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5393 [inline] __schedule+0x156f/0x4720 kernel/sched/core.c:6722 schedule+0xbd/0x170 kernel/sched/core.c:6796 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6855 rwsem_down_write_slowpath+0xc41/0x1070 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1b9/0x200 kernel/locking/rwsem.c:1574 inode_lock include/linux/fs.h:806 [inline] process_measurement+0x42d/0x1d50 security/integrity/ima/ima_main.c:256 ima_file_check+0xcc/0x110 security/integrity/ima/ima_main.c:568 do_open fs/namei.c:3697 [inline] path_openat+0x2910/0x3270 fs/namei.c:3856 do_filp_open+0x1f2/0x430 fs/namei.c:3883 do_sys_openat2+0x134/0x1d0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f80be7a9b59 RSP: 002b:00007f80bf6b5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f80bea36190 RCX: 00007f80be7a9b59 RDX: 0000000000183042 RSI: 0000200000000840 RDI: ffffffffffffff9c RBP: 00007f80be83a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000108 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f80bea36228 R14: 00007f80bea36190 R15: 00007ffe444eef88 Showing all locks held in the system: 2 locks held by kworker/1:0/24: #0: ffff8880b8d3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:570 #1: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:189 [inline] #1: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: __schedule+0x21fc/0x4720 kernel/sched/core.c:6717 1 lock held by khungtaskd/30: #0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669 5 locks held by kworker/u4:8/3435: #0: ffff888140049138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #0: ffff888140049138 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #1: ffffc9000c80fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #1: ffffc9000c80fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #2: ffffffff8f3dfc10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x140/0xb00 net/core/net_namespace.c:610 #3: ffffffff8f3ece48 (rtnl_mutex){+.+.}-{3:3}, at: ip_tunnel_delete_nets+0xd6/0x380 net/ipv4/ip_tunnel.c:1150 #4: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #4: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3da/0x880 kernel/rcu/tree_exp.h:1004 1 lock held by klogd/5142: 2 locks held by getty/5547: #0: ffff88814c0340a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900032932f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x43a/0x1400 drivers/tty/n_tty.c:2217 2 locks held by kworker/0:5/5858: #0: ffff888018c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #0: ffff888018c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #1: ffffc90004947d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #1: ffffc90004947d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 4 locks held by syz.3.647/9268: #0: ffff88807b062418 (sb_writers#4){++++}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:412 #1: ffff888056ea9810 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:806 [inline] #1: ffff888056ea9810 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: do_truncate+0x19c/0x240 fs/open.c:64 #2: ffff888056ea99a0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:851 [inline] #2: ffff888056ea99a0 (mapping.invalidate_lock#2){++++}-{3:3}, at: ext4_setattr+0x1167/0x1fb0 fs/ext4/inode.c:5604 #3: ffff888056ea9688 (&ei->i_data_sem){++++}-{3:3}, at: ext4_truncate+0x98d/0x1140 fs/ext4/inode.c:4289 1 lock held by syz.3.647/9286: #0: ffff888056ea9810 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:806 [inline] #0: ffff888056ea9810 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: process_measurement+0x42d/0x1d50 security/integrity/ima/ima_main.c:256 1 lock held by syz.4.1004/11168: #0: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #0: ffffffff8e1380f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3da/0x880 kernel/rcu/tree_exp.h:1004 7 locks held by syz-executor/11746: #0: ffff888033f9c418 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580 #1: ffff888025c55c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1dc/0x520 fs/kernfs/file.c:343 #2: ffff888141748ba8 (kn->active#53){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline] #2: ffff888141748ba8 (kn->active#53){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x236/0x520 fs/kernfs/file.c:344 #3: ffffffff8ecaf1c8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xd7/0x370 drivers/net/netdevsim/bus.c:209 #4: ffff888056903130 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1114 [inline] #4: ffff888056903130 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1057 [inline] #4: ffff888056903130 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa9/0x7a0 drivers/base/dd.c:1387 #5: ffff888056905250 (&devlink->lock_key#16){+.+.}-{3:3}, at: nsim_drv_remove+0x50/0x170 drivers/net/netdevsim/dev.c:1676 #6: ffffffff8f3ece48 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x3f/0x180 drivers/net/netdevsim/netdev.c:417 1 lock held by syz-executor/11882: #0: ffffffff8f3ece48 (rtnl_mutex){+.+.}-{3:3}, at: __tun_chr_ioctl+0x3f7/0x2070 drivers/net/tun.c:3149 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 nmi_cpu_backtrace+0x3a6/0x3e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x17a/0x2f0 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+0xf59/0xfa0 kernel/hung_task.c:379 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Sending NMI from CPU 1 to CPUs 0: Dropped {multi|broad}cast of type=[86dd] wireguard: wg0: Sending keepalive packet to peer 133 ([::1]:20002/0%0) wireguard: wg1: Sending keepalive packet to peer 118 (127.0.0.1:20003) NMI backtrace for cpu 0 CPU: 0 PID: 3506 Comm: kworker/u4:10 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: bat_events batadv_nc_worker RIP: 0010:io_serial_in+0x77/0xb0 drivers/tty/serial/8250/8250_port.c:417 Code: e8 7e 2e d8 fc 44 89 f9 d3 e3 49 83 c6 40 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 df 62 31 fd 41 03 1e 89 da ec <0f> b6 c0 5b 41 5c 41 5e 41 5f c3 44 89 f9 80 e1 07 38 c1 7c aa 4c RSP: 0018:ffffc90000007378 EFLAGS: 00000002 RAX: 1ffffffff30ccd00 RBX: 00000000000003fd RCX: 0000000000000000 RDX: 00000000000003fd RSI: 0000000000000000 RDI: 0000000000000020 RBP: ffffc90000007550 R08: ffff888022280237 R09: 1ffff11004450046 R10: dffffc0000000000 R11: ffffed1004450047 R12: dffffc0000000000 R13: 0000000000000000 R14: ffffffff98666b80 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005564c72ee138 CR3: 0000000064f5d000 CR4: 00000000003506f0 Call Trace: serial_in drivers/tty/serial/8250/8250.h:117 [inline] serial_lsr_in drivers/tty/serial/8250/8250.h:139 [inline] wait_for_lsr drivers/tty/serial/8250/8250_port.c:2091 [inline] fifo_wait_for_lsr drivers/tty/serial/8250/8250_port.c:3380 [inline] serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:3402 [inline] serial8250_console_write+0xff9/0x18b0 drivers/tty/serial/8250/8250_port.c:3487 console_emit_next_record kernel/printk/printk.c:2944 [inline] console_flush_all+0x6ad/0xcf0 kernel/printk/printk.c:3000 console_unlock+0xad/0x350 kernel/printk/printk.c:3069 vprintk_emit+0x497/0x610 kernel/printk/printk.c:2341 _printk+0xde/0x130 kernel/printk/printk.c:2366 __dynamic_pr_debug+0x1a3/0x260 lib/dynamic_debug.c:879 wg_packet_send_keepalive+0x297/0x2b0 drivers/net/wireguard/send.c:234 call_timer_fn+0x189/0x540 kernel/time/timer.c:1702 expire_timers kernel/time/timer.c:1753 [inline] __run_timers+0x570/0x810 kernel/time/timer.c:2024 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2037 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:lock_acquire+0x208/0x420 kernel/locking/lockdep.c:5794 Code: f7 84 24 80 00 00 00 00 02 00 00 43 c6 44 3c 04 f8 0f 85 f0 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 3c 00 00 00 00 43 c7 44 3c 08 00 00 00 00 65 48 8b 04 25 RSP: 0018:ffffc9000c90f9c0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 9e1f60c40d827000 RDX: 0000000000000000 RSI: ffffffff8aeae3c0 RDI: ffffffff8b3c70e0 RBP: ffffc9000c90fae0 R08: dffffc0000000000 R09: 1ffffffff2445aa0 R10: dffffc0000000000 R11: fffffbfff2445aa1 R12: 1ffff92001921f44 R13: ffffffff8e132720 R14: 0000000000000246 R15: dffffc0000000000 rcu_lock_acquire include/linux/rcupdate.h:334 [inline] rcu_read_lock include/linux/rcupdate.h:786 [inline] batadv_nc_process_nc_paths+0xdb/0x380 net/batman-adv/network-coding.c:687 batadv_nc_worker+0x525/0x600 net/batman-adv/network-coding.c:735 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 wireguard: wg2: Receiving keepalive packet from peer 120 (127.0.0.1:20002) wireguard: wg2: Receiving keepalive packet from peer 65 ([::1]:20001/0%0)