From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+e04e2c007ba2c80476cb@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [hams?] KASAN: slab-use-after-free Read in rose_get_neigh
Date: Wed, 25 Jun 2025 15:12:07 +0800 [thread overview]
Message-ID: <20250625071208.1726-1-hdanton@sina.com> (raw)
In-Reply-To: <6807019a.050a0220.380c13.0001.GAE@google.com>
> Date: Mon, 21 Apr 2025 19:40:26 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 9d7a0577c9db gcc-15: disable '-Wunterminated-string-initia..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=139b5ccc580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=efa83f9a6dd67d67
> dashboard link: https://syzkaller.appspot.com/bug?extid=e04e2c007ba2c80476cb
> compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15652c70580000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17676c70580000
#syz test upstream master
--- x/net/rose/rose_route.c
+++ y/net/rose/rose_route.c
@@ -500,6 +500,7 @@ void rose_rt_device_down(struct net_devi
for (i = 0; i < t->count; i++) {
if (t->neighbour[i] != s)
continue;
+ t->neighbour[i] = NULL;
t->count--;
@@ -689,6 +690,8 @@ struct rose_neigh *rose_get_neigh(rose_a
for (node = rose_node_list; node != NULL; node = node->next) {
if (rosecmpm(addr, &node->address, node->mask) == 0) {
for (i = 0; i < node->count; i++) {
+ if (!node->neighbour[i])
+ continue;
if (node->neighbour[i]->restarted) {
res = node->neighbour[i];
goto out;
@@ -700,6 +703,8 @@ struct rose_neigh *rose_get_neigh(rose_a
for (node = rose_node_list; node != NULL; node = node->next) {
if (rosecmpm(addr, &node->address, node->mask) == 0) {
for (i = 0; i < node->count; i++) {
+ if (!node->neighbour[i])
+ continue;
if (!rose_ftimer_running(node->neighbour[i])) {
res = node->neighbour[i];
goto out;
--
next prev parent reply other threads:[~2025-06-25 7:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 6:56 syzbot
2025-04-22 2:40 ` syzbot
2025-06-24 12:43 ` Kohei Enju
2025-06-24 13:20 ` syzbot
2025-06-25 5:44 ` Kohei Enju
2025-06-25 6:21 ` syzbot
2025-06-25 7:12 ` Hillf Danton [this message]
2025-06-25 7:31 ` syzbot
2025-06-25 8:27 ` Hillf Danton
2025-06-25 9:26 ` syzbot
2025-06-28 12:04 ` Kohei Enju
2025-06-28 13:22 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250625071208.1726-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+e04e2c007ba2c80476cb@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®