syzbot


BUG: soft lockup in wg_expired_send_persistent_keepalive

Status: auto-obsoleted due to no activity on 2025/08/06 14:52
First crash: 106d, last: 106d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: soft lockup in wg_expired_send_persistent_keepalive 1 1 151d 151d 0/2 auto-obsoleted due to no activity on 2025/06/21 22:42
android-5-10 BUG: soft lockup in wg_expired_send_persistent_keepalive 1 1 379d 379d 0/2 auto-obsoleted due to no activity on 2024/11/06 02:07
upstream INFO: rcu detected stall in wg_expired_send_persistent_keepalive kvm 1 3 1214d 1214d 0/29 auto-closed as invalid on 2022/06/25 10:14

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz.7.163:1104]
Modules linked in:
CPU: 1 PID: 1104 Comm: syz.7.163 Not tainted 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:is_module_text_address+0x0/0x140 kernel/module.c:4705
Code: ff 65 8b 05 fe b2 ac 7e 85 c0 74 09 48 85 db 0f 95 c0 5b 5d c3 e8 f0 6c aa ff eb f0 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 <55> 48 89 e5 41 57 41 56 41 55 41 54 53 48 89 fb bf 01 00 00 00 e8
RSP: 0018:ffff8881f6f097a8 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff814d869b
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffff8881f6f097d0 R08: dffffc0000000000 R09: ffffed103edeb135
R10: ffffed103edeb135 R11: 1ffff1103edeb134 R12: ffff8881d1666e40
R13: 1ffff1103ede1314 R14: 0000000000000000 R15: 0000000000000001
FS:  00007f63800686c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6381a20947 CR3: 0000000005c0e000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_frame.c:19
 arch_stack_walk+0xf0/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0xaa/0xf0 kernel/stacktrace.c:123
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 __kasan_kmalloc+0x162/0x200 mm/kasan/common.c:529
 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:537
 slab_post_alloc_hook mm/slab.h:584 [inline]
 slab_alloc_node mm/slub.c:2829 [inline]
 slab_alloc mm/slub.c:2837 [inline]
 kmem_cache_alloc+0xe2/0x270 mm/slub.c:2842
 kmem_cache_alloc_node include/linux/slab.h:427 [inline]
 __alloc_skb+0x9e/0x500 net/core/skbuff.c:198
 alloc_skb include/linux/skbuff.h:1080 [inline]
 wg_packet_send_keepalive+0x5f/0x1d0 drivers/net/wireguard/send.c:226
 wg_expired_send_persistent_keepalive+0x53/0x80 drivers/net/wireguard/timers.c:141
 call_timer_fn+0x3c/0x380 kernel/time/timer.c:1448
 expire_timers kernel/time/timer.c:1493 [inline]
 __run_timers+0x81d/0xb60 kernel/time/timer.c:1817
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1830
 __do_softirq+0x236/0x660 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x197/0x1c0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:539 [inline]
 smp_apic_timer_interrupt+0x11d/0x490 arch/x86/kernel/apic/apic.c:1161
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
 </IRQ>
RIP: 0010:__srcu_read_lock+0x5d/0x80 kernel/rcu/srcutree.c:412
Code: 00 41 83 e6 01 48 81 c3 e0 00 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 db 39 40 00 48 8b 03 65 4a ff 04 f0 <f0> 83 44 24 fc 00 44 89 f0 5b 41 5e 41 5f 5d c3 89 f9 80 e1 07 80
RSP: 0018:ffff8881e575f370 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 000000000005d800 RBX: ffffffff86590900 RCX: ffff8881d1666e40
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff865908d8
RBP: ffff8881e575f388 R08: dffffc0000000000 R09: ffffed103edcb12c
R10: ffffed103edcb12c R11: 1ffff1103edcb12b R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000001 R15: dffffc0000000000
 srcu_read_lock include/linux/srcu.h:154 [inline]
 fsnotify_grab_connector fs/notify/mark.c:522 [inline]
 fsnotify_destroy_marks+0x2f/0x670 fs/notify/mark.c:772
 fsnotify_clear_marks_by_inode fs/notify/fsnotify.h:45 [inline]
 __fsnotify_inode_delete+0x1c/0x20 fs/notify/fsnotify.c:22
 fsnotify_inode_delete include/linux/fsnotify.h:149 [inline]
 __destroy_inode+0x19f/0x500 fs/inode.c:257
 destroy_inode fs/inode.c:279 [inline]
 evict+0x727/0x880 fs/inode.c:627
 iput_final fs/inode.c:1652 [inline]
 iput+0x67d/0x810 fs/inode.c:1678
 dentry_unlink_inode+0x2ca/0x370 fs/dcache.c:378
 __dentry_kill+0x43e/0x640 fs/dcache.c:583
 shrink_dentry_list+0x35b/0x4b0 fs/dcache.c:1127
 shrink_dcache_parent+0xa3/0x240 fs/dcache.c:1553
 do_one_tree+0x27/0x150 fs/dcache.c:1608
 shrink_dcache_for_umount+0x6a/0x130 fs/dcache.c:1625
 generic_shutdown_super+0x66/0x310 fs/super.c:447
 kill_anon_super fs/super.c:1119 [inline]
 kill_litter_super+0x77/0xa0 fs/super.c:1128
 deactivate_locked_super+0xa0/0x100 fs/super.c:335
 deactivate_super+0x14f/0x1d0 fs/super.c:366
 cleanup_mnt+0x446/0x500 fs/namespace.c:1102
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1109
 task_work_run+0x146/0x170 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa43/0x2660 kernel/exit.c:861
 do_group_exit+0x13e/0x300 kernel/exit.c:984
 get_signal+0xdee/0x13d0 kernel/signal.c:2738
 do_signal+0xad/0xda0 arch/x86/kernel/signal.c:809
 exit_to_usermode_loop+0xc4/0x1b0 arch/x86/entry/common.c:159
 prepare_exit_to_usermode+0x18e/0x1f0 arch/x86/entry/common.c:194
 ret_from_intr+0x1c/0x1c
RIP: 0033:0x7f6381a20971
Code: Bad RIP value.
RSP: 002b:00007f6380068038 EFLAGS: 00000217 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 00007f6381c48080 RCX: 00007f6381a20969
RDX: 00002000000015c0 RSI: 0000000000005452 RDI: 0000000000000008
RBP: 00007f6381aa2ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6381c48080 R15: 00007ffc6c853838
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 545 Comm: kworker/0:10 Not tainted 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: rcu_gp process_srcu
RIP: 0010:srcu_readers_unlock_idx kernel/rcu/srcutree.c:272 [inline]
RIP: 0010:srcu_readers_active_idx_check kernel/rcu/srcutree.c:288 [inline]
RIP: 0010:try_check_zero+0x5f/0x350 kernel/rcu/srcutree.c:704
Code: a0 48 81 c7 d0 00 00 00 48 89 7d 98 48 c7 c0 80 b6 2b 86 48 c1 e8 03 48 89 45 c0 4c 89 f8 48 c1 e8 03 48 89 45 b0 4c 89 7d b8 <bf> ff ff ff ff 48 c7 c6 38 b5 2b 86 e8 40 18 d4 02 41 89 c5 48 8b
RSP: 0018:ffff8881e8997bd0 EFLAGS: 00000286
RAX: 0000000080000000 RBX: 000000000000395d RCX: 0000000000000000
RDX: 0000000000000110 RSI: 0000000000000001 RDI: 00000000ffffffff
RBP: ffff8881e8997c38 R08: dffffc0000000000 R09: ffffed103d132f79
R10: ffffed103d132f79 R11: 1ffff1103d132f78 R12: ffffffff865908f0
R13: 000000000000395c R14: dffffc0000000000 R15: ffffffff86590900
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6381a20947 CR3: 00000001eaabf000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 srcu_advance_state kernel/rcu/srcutree.c:1146 [inline]
 process_srcu+0x183/0xc60 kernel/rcu/srcutree.c:1241
 process_one_work+0x73b/0xcc0 kernel/workqueue.c:2290
 worker_thread+0xa5c/0x13b0 kernel/workqueue.c:2436
 kthread+0x31e/0x3a0 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/08 14:43 android12-5.4 cd8e74fa0fa3 dbf35fa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan BUG: soft lockup in wg_expired_send_persistent_keepalive
* Struck through repros no longer work on HEAD.