syzbot


kernel panic: corrupted stack end in mld_dad_work

Status: fixed on 2023/02/24 13:50
Subsystems: mm
[Documentation on labels]
Fix commit: b81d591386c3 riscv: Increase stack size under KASAN
First crash: 760d, last: 760d

Sample crash report:
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 2671 Comm: kworker/0:0 Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0
Hardware name: riscv-virtio,qemu (DT)
Workqueue: mld mld_dad_work
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
[<ffffffff831a6c62>] preempt_schedule_notrace+0x9c/0x19a kernel/sched/core.c:6541
[<ffffffff80115c54>] rcu_read_unlock_sched_notrace include/linux/rcupdate.h:816 [inline]
[<ffffffff80115c54>] trace_lock_release include/trace/events/lock.h:58 [inline]
[<ffffffff80115c54>] lock_release+0x3da/0x614 kernel/locking/lockdep.c:5650
[<ffffffff8040f4f4>] __fs_reclaim_release mm/page_alloc.c:4560 [inline]
[<ffffffff8040f4f4>] fs_reclaim_release mm/page_alloc.c:4586 [inline]
[<ffffffff8040f4f4>] fs_reclaim_release+0x70/0xa2 mm/page_alloc.c:4580
[<ffffffff80415e7a>] prepare_alloc_pages+0xe6/0x256 mm/page_alloc.c:5162
[<ffffffff80418eaa>] __alloc_pages+0x100/0x3b6 mm/page_alloc.c:5378
[<ffffffff8045746a>] alloc_pages+0x132/0x2a6 mm/mempolicy.c:2271
[<ffffffff8046a97e>] alloc_slab_page.constprop.0+0xc2/0xfa mm/slub.c:1799
[<ffffffff8046b1a6>] allocate_slab mm/slub.c:1944 [inline]
[<ffffffff8046b1a6>] new_slab+0x76/0x2cc mm/slub.c:2004
[<ffffffff8046e7ac>] ___slab_alloc+0x56e/0x918 mm/slub.c:3018
[<ffffffff8046ef1c>] __slab_alloc.constprop.0+0x50/0x8c mm/slub.c:3105
[<ffffffff80470120>] slab_alloc_node mm/slub.c:3196 [inline]
[<ffffffff80470120>] kmem_cache_alloc_node+0x1f2/0x41c mm/slub.c:3266
[<ffffffff826ed85a>] __alloc_skb+0x234/0x2e4 net/core/skbuff.c:414
[<ffffffff826f69ba>] alloc_skb include/linux/skbuff.h:1158 [inline]
[<ffffffff826f69ba>] alloc_skb_with_frags+0x78/0x30c net/core/skbuff.c:5956
[<ffffffff826de51e>] sock_alloc_send_pskb+0x536/0x558 net/core/sock.c:2586
[<ffffffff826de570>] sock_alloc_send_skb+0x30/0x40 net/core/sock.c:2603
[<ffffffff82da9a46>] mld_newpack+0x14c/0x582 net/ipv6/mcast.c:1754
[<ffffffff82da9fbc>] add_grhead+0x140/0x148 net/ipv4/igmp.c:459
[<ffffffff82db005a>] igmpv3_send_cr net/ipv4/igmp.c:668 [inline]
[<ffffffff82db005a>] add_grec+0xba2/0xe34 net/ipv4/igmp.c:808
[<ffffffff82db0742>] mld_send_initial_cr.part.0+0xdc/0x222 net/ipv6/mcast.c:2242
[<ffffffff82db09cc>] mld_send_initial_cr net/ipv6/mcast.c:1232 [inline]
[<ffffffff82db09cc>] mld_dad_work+0x144/0x464 net/ipv6/mcast.c:2268
[<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
2022/09/06 00:58 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9dcd38fc .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in mld_dad_work
* Struck through repros no longer work on HEAD.