From: Edward Adam Davis <eadavis@sina.com>
To: syzbot+9a321aea9d851b299486@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [kernel?] KASAN: global-out-of-bounds Read in bus_uevent_store
Date: Tue, 15 Sep 2026 19:00:30 +0800 [thread overview]
Message-ID: <20260915110030.918688-1-eadavis@sina.com> (raw)
In-Reply-To: <6aa82301.a211d2ce.1a5198.0296.GAE@google.com>
From: Edward Aadm Davis <eadavis@sina.com>
#syz test: upstream 50d05c7c76c9
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index ddbc4d7482d2..25c89a36fb39 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -83,7 +83,8 @@ static int kobject_action_type(const char *buf, size_t count,
for (action = 0; action < ARRAY_SIZE(kobject_actions); action++) {
if (strncmp(kobject_actions[action], buf, count_first) != 0)
continue;
- if (kobject_actions[action][count_first] != '\0')
+ if (count_first <= strlen(kobject_actions[action]) &&
+ kobject_actions[action][count_first] != '\0')
continue;
if (args)
*args = args_start;
next prev parent reply other threads:[~2026-09-15 11:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 16:38 syzbot
2026-09-15 11:00 ` Edward Adam Davis [this message]
2026-09-15 11:22 ` syzbot
2026-09-15 11:24 ` Edward Adam Davis
2026-09-15 12:06 ` syzbot
2026-09-15 12:20 ` [PATCH] sysfs: prevent writing excessively large files Edward Adam Davis
2026-09-16 7:17 ` Greg KH
2026-09-16 10:19 ` Edward Adam Davis
2026-09-16 17:44 ` Greg KH
2026-09-17 4:24 ` Edward Adam Davis
2026-09-17 7:34 ` Greg KH
2026-09-17 7:56 ` Edward Adam Davis
2026-09-17 10:00 ` David Laight
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=20260915110030.918688-1-eadavis@sina.com \
--to=eadavis@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+9a321aea9d851b299486@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®