syzbot


kernel panic: corrupted stack end in rtnl_newlink

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+0600986d88e2d4d7ebb8@syzkaller.appspotmail.com
Fix commit: b81d591386c3 riscv: Increase stack size under KASAN
First crash: 1000d, last: 647d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.10 000/599] 5.10.110-rc1 review 628 (629) 2022/05/08 12:31
[PATCH 5.16 0000/1017] 5.16.19-rc1 review 1034 (1035) 2022/04/07 08:34
[PATCH 5.15 000/913] 5.15.33-rc1 review 932 (933) 2022/04/06 15:36
[PATCH 5.17 0000/1126] 5.17.2-rc1 review 1143 (1144) 2022/04/06 14:06
[syzbot] kernel panic: corrupted stack end in rtnl_newlink 4 (5) 2022/03/14 12:05
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel panic: corrupted stack end in rtnl_newlink 1 1227d 1227d 0/1 auto-closed as invalid on 2021/11/21 12:28
linux-5.15 BUG: stack guard page was hit in rtnl_newlink 1 601d 601d 0/3 auto-obsoleted due to no activity on 2023/08/09 14:38
linux-6.1 BUG: stack guard page was hit in rtnl_newlink 2 555d 555d 0/3 auto-obsoleted due to no activity on 2023/09/04 15:24
upstream BUG: stack guard page was hit in rtnl_newlink net 259 548d 1234d 0/28 auto-obsoleted due to no activity on 2023/08/23 09:10

Sample crash report:
device hsr_slave_0 entered promiscuous mode
device hsr_slave_1 entered promiscuous mode
debugfs: Directory 'hsr0' with parent 'hsr' already present!
Cannot create hsr debugfs directory
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 2038 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
[<ffffffff8066764e>] idr_preload_end include/linux/idr.h:174 [inline]
[<ffffffff8066764e>] __kernfs_new_node+0x5e8/0x5f2 fs/kernfs/dir.c:597
[<ffffffff8066a298>] kernfs_new_node+0x66/0xbe fs/kernfs/dir.c:647
[<ffffffff8066e3fc>] __kernfs_create_file+0x4e/0x1e8 fs/kernfs/file.c:987
[<ffffffff806700ba>] sysfs_add_file_mode_ns+0x138/0x254 fs/sysfs/file.c:294
[<ffffffff80671e06>] create_files fs/sysfs/group.c:64 [inline]
[<ffffffff80671e06>] internal_create_group+0x274/0x722 fs/sysfs/group.c:148
[<ffffffff80672d12>] internal_create_groups.part.0+0x64/0xe8 fs/sysfs/group.c:188
[<ffffffff80672dc2>] internal_create_groups fs/sysfs/group.c:184 [inline]
[<ffffffff80672dc2>] sysfs_create_groups+0x2c/0x48 fs/sysfs/group.c:214
[<ffffffff813e6d4a>] device_add_groups drivers/base/core.c:2471 [inline]
[<ffffffff813e6d4a>] device_add_attrs drivers/base/core.c:2619 [inline]
[<ffffffff813e6d4a>] device_add+0x656/0x129e drivers/base/core.c:3356
[<ffffffff827bdb6e>] netdev_register_kobject+0xcc/0x208 net/core/net-sysfs.c:2008
[<ffffffff82746298>] register_netdevice+0x8ee/0xc6a net/core/dev.c:9667
[<ffffffff8180c800>] geneve_configure+0x48c/0x748 drivers/net/geneve.c:1391
[<ffffffff8180cc08>] geneve_newlink+0x14c/0x222 drivers/net/geneve.c:1634
[<ffffffff8276a91a>] __rtnl_newlink+0xc16/0xfa0 net/core/rtnetlink.c:3479
[<ffffffff8276ad04>] rtnl_newlink+0x60/0x8c net/core/rtnetlink.c:3527
[<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 (3489):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/24 12:49 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 630c6bc9 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/24 05:21 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 630c6bc9 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/24 01:04 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4359978e .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/23 22:29 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4359978e .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/23 18:16 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4359978e .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/23 15:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4359978e .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/23 15:16 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4359978e .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/23 13:17 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9e2ebb3c .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/23 09:47 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9e2ebb3c .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/23 05:40 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9e2ebb3c .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 23:10 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9f1e2cb3 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 21:03 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9f1e2cb3 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 20:00 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9f1e2cb3 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 18:57 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9f1e2cb3 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 13:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 42a4d508 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 11:55 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 42a4d508 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 08:59 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 42a4d508 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 07:35 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 42a4d508 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 06:30 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 42a4d508 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 05:06 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 42a4d508 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 03:43 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 42a4d508 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 02:15 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d ec0a9fe9 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/22 00:29 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d ec0a9fe9 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/21 17:59 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d ec0a9fe9 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/21 16:38 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d ec0a9fe9 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/21 11:47 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 rtnl_newlink
2023/02/21 10:19 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 rtnl_newlink
2023/02/21 07:10 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 rtnl_newlink
2023/02/21 06:06 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 rtnl_newlink
2023/02/21 04:49 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 rtnl_newlink
2023/02/21 00:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4f5f5209 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/20 22:52 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4f5f5209 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/20 20:45 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4f5f5209 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/20 19:40 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4f5f5209 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/20 17:32 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4f5f5209 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/20 16:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 4f5f5209 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/20 11:53 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/20 08:52 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/19 22:03 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/19 19:12 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/19 15:49 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/19 13:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/19 11:01 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/19 10:27 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/19 07:52 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/18 23:04 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2023/02/18 20:18 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bcdf85f8 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2022/03/14 07:10 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 9e8eaa75 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
2022/03/08 16:34 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 74583f1b92cb 9e8eaa75 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in rtnl_newlink
* Struck through repros no longer work on HEAD.