watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz-executor.5:18334] Modules linked in: irq event stamp: 21448759 hardirqs last enabled at (21448758): [] irqentry_exit+0x3b/0x80 kernel/entry/common.c:435 hardirqs last disabled at (21448759): [] sysvec_apic_timer_interrupt+0xe/0xb0 arch/x86/kernel/apic/apic.c:1076 softirqs last enabled at (16470): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (16470): [] __do_softirq+0x597/0x8de kernel/softirq.c:582 softirqs last disabled at (16927): [] invoke_softirq kernel/softirq.c:427 [inline] softirqs last disabled at (16927): [] __irq_exit_rcu kernel/softirq.c:632 [inline] softirqs last disabled at (16927): [] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 CPU: 1 PID: 18334 Comm: syz-executor.5 Not tainted 6.7.0-rc8-syzkaller-02016-g3fbf61207c66 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:user_mode arch/x86/include/asm/ptrace.h:136 [inline] RIP: 0010:unwind_next_frame+0x119/0x2390 arch/x86/kernel/unwind_orc.c:482 Code: 8b 63 50 4d 85 e4 74 47 e8 f4 8c 4d 00 49 8d bc 24 88 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 cc 1c 00 00 4d 8b a4 24 88 00 00 00 31 ff 41 83 e4 03 4c 89 RSP: 0018:ffffc900001f04c0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffffc900001f0540 RCX: 1ffffffff2501ebc RDX: 1ffff92000b63e16 RSI: ffffffff8139f73c RDI: ffffc90005b1f0b0 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000006 R12: ffffc90005b1f028 R13: ffffffff8174e7c0 R14: ffffc900001f0600 R15: ffff88802753d940 FS: 00007fd4533f96c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fac72fad988 CR3: 000000002785a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] kmem_cache_free+0xf8/0x350 mm/slub.c:3831 skb_kfree_head net/core/skbuff.c:984 [inline] skb_kfree_head net/core/skbuff.c:981 [inline] skb_free_head+0x17f/0x1b0 net/core/skbuff.c:998 skb_release_data+0x5ba/0x870 net/core/skbuff.c:1028 skb_release_all net/core/skbuff.c:1094 [inline] __kfree_skb+0x51/0x70 net/core/skbuff.c:1108 tcp_wmem_free_skb include/net/tcp.h:312 [inline] tcp_write_queue_purge+0x186/0xd60 net/ipv4/tcp.c:2961 tcp_write_err net/ipv4/tcp_timer.c:79 [inline] tcp_write_timeout net/ipv4/tcp_timer.c:295 [inline] tcp_retransmit_timer+0x10d7/0x4030 net/ipv4/tcp_timer.c:577 tcp_write_timer_handler net/ipv4/tcp_timer.c:693 [inline] tcp_write_timer_handler+0x55a/0xa50 net/ipv4/tcp_timer.c:667 tcp_write_timer+0xa6/0x2b0 net/ipv4/tcp_timer.c:710 call_timer_fn+0x193/0x590 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb20 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 __do_softirq+0x21a/0x8de kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1076 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:finish_task_switch.isra.0+0x223/0xca0 kernel/sched/core.c:5250 Code: 0a 00 00 44 8b 0d 25 8a be 0d 45 85 c9 0f 85 c0 01 00 00 48 89 df e8 cc f8 ff ff e8 17 4f 33 00 fb 65 48 8b 1c 25 c0 bc 03 00 <48> 8d bb d8 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc90005b1f0d0 EFLAGS: 00000202 RAX: 00000000000041a1 RBX: ffff88802753d940 RCX: 1ffffffff23e5440 RDX: 0000000000000000 RSI: ffffffff8accaf00 RDI: ffffffff8b2f0fa0 RBP: ffffc90005b1f118 R08: 0000000000000001 R09: fffffbfff23e41d2 R10: ffffffff91f20e97 R11: 0000000000000004 R12: ffff8880b993d478 R13: ffff88807c391dc0 R14: 0000000000000000 R15: ffff8880b993c700 context_switch kernel/sched/core.c:5379 [inline] __schedule+0xee3/0x5af0 kernel/sched/core.c:6688 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:7008 irqentry_exit+0x36/0x80 kernel/entry/common.c:432 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_acquire+0x1ef/0x520 kernel/locking/lockdep.c:5722 Code: c1 05 6d 7a 9a 7e 83 f8 01 0f 85 b4 02 00 00 9c 58 f6 c4 02 0f 85 9f 02 00 00 48 85 ed 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc90005b1f398 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92000b63e75 RCX: ffffffff81671e5e RDX: 0000000000000001 RSI: ffffffff8accb200 RDI: ffffffff8b2f0fa0 RBP: 0000000000000200 R08: 0000000000000000 R09: fffffbfff23e41d2 R10: ffffffff91f20e97 R11: 0000000000000003 R12: 0000000000000001 R13: 0000000000000000 R14: ffffffff8d13dfe0 R15: 0000000000000000 fs_reclaim_acquire mm/page_alloc.c:3717 [inline] fs_reclaim_acquire+0xcc/0x150 mm/page_alloc.c:3708 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:710 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x51/0x310 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0x49/0x90 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_encode2+0x100/0x3d0 security/tomoyo/realpath.c:45 tomoyo_encode+0x29/0x50 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x196/0x710 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x241/0x580 security/tomoyo/file.c:723 tomoyo_path_mknod+0x10d/0x180 security/tomoyo/tomoyo.c:251 security_path_mknod+0x11a/0x180 security/security.c:1715 may_o_create fs/namei.c:3299 [inline] lookup_open.isra.0+0x53a/0x13b0 fs/namei.c:3440 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 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+0x175/0x210 fs/open.c:1463 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd45267cd29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd4533f90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd4527ac050 RCX: 00007fd45267cd29 RDX: 00000000000026e1 RSI: 0000000020000200 RDI: ffffffffffffff9c RBP: 00007fd4526c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd4527ac050 R15: 00007ffe26a3f5b8 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 18352 Comm: kworker/u4:3 Not tainted 6.7.0-rc8-syzkaller-02016-g3fbf61207c66 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline] RIP: 0010:smp_call_function_many_cond+0x4e4/0x1550 kernel/smp.c:855 Code: 0b 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 4e bf 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 24 0e 00 00 8b 43 08 31 RSP: 0000:ffffc90003c87930 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9941a60 RCX: ffffffff817bc508 RDX: ffff888025f03b80 RSI: ffffffff817bc4e2 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000006 R12: ffffed101732834d R13: 0000000000000001 R14: ffff8880b9941a68 R15: ffff8880b983d8c0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcc7f505bd0 CR3: 000000000cd77000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2087 [inline] text_poke_bp_batch+0x22b/0x750 arch/x86/kernel/alternative.c:2297 text_poke_flush arch/x86/kernel/alternative.c:2488 [inline] text_poke_flush arch/x86/kernel/alternative.c:2485 [inline] text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2495 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d7/0x400 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b7/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:830 [inline] toggle_allocation_gate+0xf4/0x250 mm/kfence/core.c:822 process_one_work+0x886/0x15d0 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2781 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242