syzbot


kernel panic: corrupted stack end in inet_rtm_newaddr

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+45c67f3c06a0bb589883@syzkaller.appspotmail.com
Fix commit: b81d591386c3 riscv: Increase stack size under KASAN
First crash: 1000d, last: 660d
Duplicate bugs (2)
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
kernel panic: corrupted stack end in kjournald2 block 16 664d 993d 0/28 closed as dup on 2022/04/19 14:37
kernel panic: corrupted stack end in ext4_file_read_iter kernel 2 821d 993d 0/28 closed as dup on 2022/04/19 14:37

Sample crash report:
device veth0_macvtap entered promiscuous mode
device veth1_macvtap entered promiscuous mode
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 2040 Comm: syz-executor.1 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
[<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
[<ffffffff8040f5b0>] fs_reclaim_acquire mm/page_alloc.c:4573 [inline]
[<ffffffff8040f5b0>] fs_reclaim_acquire+0x8a/0xda mm/page_alloc.c:4563
[<ffffffff8046efb6>] might_alloc include/linux/sched/mm.h:253 [inline]
[<ffffffff8046efb6>] slab_pre_alloc_hook mm/slab.h:705 [inline]
[<ffffffff8046efb6>] slab_alloc_node mm/slub.c:3144 [inline]
[<ffffffff8046efb6>] __kmalloc_node_track_caller+0x5e/0x362 mm/slub.c:4957
[<ffffffff826ed714>] kmalloc_reserve net/core/skbuff.c:354 [inline]
[<ffffffff826ed714>] __alloc_skb+0xee/0x2e4 net/core/skbuff.c:426
[<ffffffff82be1fb2>] alloc_skb include/linux/skbuff.h:1158 [inline]
[<ffffffff82be1fb2>] nlmsg_new include/net/netlink.h:953 [inline]
[<ffffffff82be1fb2>] rtmsg_fib+0x108/0x2be net/ipv4/fib_semantics.c:518
[<ffffffff82bed266>] fib_table_insert+0x52a/0xebe net/ipv4/fib_trie.c:1389
[<ffffffff82bd1222>] fib_magic+0x3f4/0x438 net/ipv4/fib_frontend.c:1087
[<ffffffff82bd6178>] fib_add_ifaddr+0xd2/0x2e2 net/ipv4/fib_frontend.c:1109
[<ffffffff82bd797e>] fib_inetaddr_event+0xfe/0x19e net/ipv4/fib_frontend.c:1420
[<ffffffff800aac84>] notifier_call_chain+0xb8/0x188 kernel/notifier.c:84
[<ffffffff800ab16c>] blocking_notifier_call_chain kernel/notifier.c:319 [inline]
[<ffffffff800ab16c>] blocking_notifier_call_chain+0x50/0x78 kernel/notifier.c:307
[<ffffffff82baf09c>] __inet_insert_ifa+0x6ca/0x7e4 net/ipv4/devinet.c:555
[<ffffffff82bb200c>] inet_rtm_newaddr+0x7c2/0xbc2 net/ipv4/devinet.c:958
[<ffffffff8276b46c>] rtnetlink_rcv_msg+0x338/0x9a0 net/core/rtnetlink.c:5592
[<ffffffff8296ded2>] netlink_rcv_skb+0xf8/0x2be net/netlink/af_netlink.c:2494
[<ffffffff827624f4>] rtnetlink_rcv+0x26/0x30 net/core/rtnetlink.c:5610
[<ffffffff8296cbcc>] netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
[<ffffffff8296cbcc>] netlink_unicast+0x40e/0x5fe net/netlink/af_netlink.c:1343
[<ffffffff8296d29c>] netlink_sendmsg+0x4e0/0x994 net/netlink/af_netlink.c:1919
[<ffffffff826d264e>] sock_sendmsg_nosec net/socket.c:705 [inline]
[<ffffffff826d264e>] sock_sendmsg+0xa0/0xc4 net/socket.c:725
[<ffffffff826d7026>] __sys_sendto+0x1f2/0x2e0 net/socket.c:2040
[<ffffffff826d7152>] __do_sys_sendto net/socket.c:2052 [inline]
[<ffffffff826d7152>] sys_sendto+0x3e/0x52 net/socket.c:2048
[<ffffffff80005716>] ret_from_syscall+0x0/0x2
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/21 08:17 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 2414209c .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2023/02/13 15:35 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 957959cb .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2023/02/08 04:51 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 15c3d445 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2023/01/13 23:41 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 529798b0 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/12/21 03:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d d3e76707 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/12/19 22:59 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d c52b2efb .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/12/05 20:35 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d dff7de3a .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/11/23 11:27 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 52fdf57a .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/11/22 04:18 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 1c576c23 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/10/17 14:42 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 94744d21 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/09/26 10:11 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d d59ba983 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/09/20 13:58 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 7c41a9ba .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/09/14 19:03 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d b884348d .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/08/31 17:11 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 51e54e30 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/08/27 12:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 07177916 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/07/26 19:25 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 279b89c2 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/07/13 08:56 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 5d921b08 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/06/23 02:32 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 912f5df7 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/05/26 12:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 3037caa9 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/05/06 18:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d e60b1103 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/04/23 11:29 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 131df97d .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/03/28 17:08 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d ee339263 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
2022/03/17 14:49 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d dfa9a8ed .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in inet_rtm_newaddr
* Struck through repros no longer work on HEAD.