From: Jeongjun Park <aha310510@gmail.com>
To: syzbot+60cfa08822470bbebe44@syzkaller.appspotmail.com
Cc: syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [net?] [nfs?] KASAN: slab-out-of-bounds Read in cache_seq_start_rcu
Date: Wed, 22 Apr 2026 01:23:01 +0900 [thread overview]
Message-ID: <20260421162301.164054-1-aha310510@gmail.com> (raw)
In-Reply-To: <69e798fe.050a0220.24bfd3.0031.GAE@google.com>
#syz test upstream master
---
net/sunrpc/cache.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 7081c1214e6c..218994cd76fc 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -1357,6 +1357,9 @@ static void *__cache_seq_start(struct seq_file *m, loff_t *pos)
hlist_first_rcu(&cd->hash_table[hash])),
struct cache_head, cache_list);
+ if (hash >= cd->hash_size)
+ return NULL;
+
*pos = ((long long)hash << 32) + 1;
return ch;
}
--
next prev parent reply other threads:[~2026-04-21 16:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-21 15:34 [syzbot] [net?] [nfs?] KASAN: slab-out-of-bounds Read in cache_seq_start_rcu syzbot
2026-04-21 16:23 ` Jeongjun Park [this message]
2026-04-21 18:11 ` syzbot
2026-04-21 16:24 ` Jeongjun Park
2026-04-21 18:41 ` 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=20260421162301.164054-1-aha310510@gmail.com \
--to=aha310510@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+60cfa08822470bbebe44@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