syzbot


kernel panic: corrupted stack end in inet6_ioctl

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+06e0b7230fefced48e10@syzkaller.appspotmail.com
Fix commit: b81d591386c3 riscv: Increase stack size under KASAN
First crash: 749d, last: 749d

Sample crash report:
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 6083 Comm: syz-executor.0 Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0
Hardware name: riscv-virtio,qemu (DT)
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
[<ffffffff8046ef56>] __slab_alloc.constprop.0+0x8a/0x8c mm/slub.c:3107
[<ffffffff804705ec>] slab_alloc_node mm/slub.c:3196 [inline]
[<ffffffff804705ec>] slab_alloc mm/slub.c:3238 [inline]
[<ffffffff804705ec>] kmem_cache_alloc_trace+0x2a2/0x2e0 mm/slub.c:3255
[<ffffffff80c00e38>] kmalloc include/linux/slab.h:581 [inline]
[<ffffffff80c00e38>] kzalloc include/linux/slab.h:715 [inline]
[<ffffffff80c00e38>] ref_tracker_alloc+0x10c/0x33e lib/ref_tracker.c:77
[<ffffffff82d6ed44>] netdev_tracker_alloc include/linux/netdevice.h:3859 [inline]
[<ffffffff82d6ed44>] fib6_nh_init+0x3bc/0x10c0 net/ipv6/route.c:3631
[<ffffffff82d705b8>] ip6_route_info_create+0xb70/0xf78 net/ipv6/route.c:3809
[<ffffffff82d70c66>] ip6_route_add+0x2a/0x148 net/ipv6/route.c:3853
[<ffffffff82d3591c>] addrconf_add_mroute+0x1d4/0x302 net/ipv6/addrconf.c:2488
[<ffffffff82d3f69e>] addrconf_add_dev+0x102/0x156 net/ipv6/addrconf.c:2506
[<ffffffff82d4697e>] inet6_addr_add+0x140/0x646 net/ipv6/addrconf.c:2922
[<ffffffff82d4d0f6>] addrconf_add_ifaddr+0x142/0x1a6 net/ipv6/addrconf.c:3050
[<ffffffff82d16018>] inet6_ioctl+0xf2/0x20c net/ipv6/af_inet6.c:569
[<ffffffff826d51d4>] sock_do_ioctl net/socket.c:1122 [inline]
[<ffffffff826d51d4>] sock_ioctl+0x2ac/0x68c net/socket.c:1239
[<ffffffff804f6ff8>] vfs_ioctl fs/ioctl.c:51 [inline]
[<ffffffff804f6ff8>] __do_sys_ioctl fs/ioctl.c:874 [inline]
[<ffffffff804f6ff8>] sys_ioctl+0x75c/0x139e fs/ioctl.c:860
[<ffffffff80005716>] ret_from_syscall+0x0/0x2
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/11/24 20:28 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 3b903dad .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet6_ioctl
* Struck through repros no longer work on HEAD.