syzbot


kernel panic: corrupted stack end in wg_packet_encrypt_worker

Status: auto-obsoleted due to no activity on 2023/06/08 16:35
Subsystems: net
[Documentation on labels]
First crash: 712d, last: 712d

Sample crash report:
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0
Hardware name: riscv-virtio,qemu (DT)
Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker
Call Trace:
[<ffffffff8000a228>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:113
[<ffffffff831668cc>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:119
[<ffffffff831756ba>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff831756ba>] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:106
[<ffffffff83175742>] dump_stack+0x1c/0x24 lib/dump_stack.c:113
[<ffffffff83166fa8>] panic+0x24a/0x634 kernel/panic.c:233
[<ffffffff831a688a>] schedule_debug kernel/sched/core.c:5541 [inline]
[<ffffffff831a688a>] schedule+0x0/0x14c kernel/sched/core.c:6187
[<ffffffff831a6b00>] preempt_schedule_common+0x4e/0xde kernel/sched/core.c:6462
[<ffffffff831a6bc4>] preempt_schedule+0x34/0x36 kernel/sched/core.c:6487
[<ffffffff831afd78>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
[<ffffffff831afd78>] _raw_spin_unlock_irqrestore+0x8c/0x98 kernel/locking/spinlock.c:194
[<ffffffff800f86a8>] swake_up_one+0xbc/0xd0 kernel/sched/swait.c:54
[<ffffffff80146e20>] rcu_gp_kthread_wake kernel/rcu/tree.c:1482 [inline]
[<ffffffff80146e20>] rcu_gp_kthread_wake+0x5e/0x8e kernel/rcu/tree.c:1473
[<ffffffff8014727e>] rcu_report_qs_rsp+0x64/0x206 kernel/rcu/tree.c:2162
[<ffffffff8014e240>] rcu_report_unblock_qs_rnp kernel/rcu/tree.c:2266 [inline]
[<ffffffff8014e240>] rcu_preempt_deferred_qs_irqrestore+0x7be/0x7c0 kernel/rcu/tree_plugin.h:554
[<ffffffff8015136e>] rcu_read_unlock_special kernel/rcu/tree_plugin.h:671 [inline]
[<ffffffff8015136e>] __rcu_read_unlock+0x166/0x262 kernel/rcu/tree_plugin.h:424
[<ffffffff82715fe0>] rcu_read_unlock include/linux/rcupdate.h:726 [inline]
[<ffffffff82715fe0>] __skb_flow_dissect+0x992/0x3094 net/core/flow_dissector.c:1023
[<ffffffff8271895e>] skb_flow_dissect_flow_keys include/linux/skbuff.h:1386 [inline]
[<ffffffff8271895e>] ___skb_get_hash net/core/flow_dissector.c:1589 [inline]
[<ffffffff8271895e>] __skb_get_hash+0xda/0x1ec net/core/flow_dissector.c:1655
[<ffffffff8175e79c>] skb_get_hash include/linux/skbuff.h:1428 [inline]
[<ffffffff8175e79c>] encrypt_packet+0x53e/0x59c drivers/net/wireguard/send.c:173
[<ffffffff8175fa50>] wg_packet_encrypt_worker+0x21e/0x60a drivers/net/wireguard/send.c:297
[<ffffffff80093b44>] process_one_work+0x654/0xffe kernel/workqueue.c:2307
[<ffffffff8009484e>] worker_thread+0x360/0x8fa kernel/workqueue.c:2454
[<ffffffff800a7f58>] kthread+0x19e/0x1fa kernel/kthread.c:377
[<ffffffff80005724>] ret_from_exception+0x0/0x10
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/16 15:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 38b317a7 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in wg_packet_encrypt_worker
* Struck through repros no longer work on HEAD.