#syz test: upstream 9d2ed026f031
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index ddbc4d7482d2..b03562301bfe 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -83,7 +83,7 @@ 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 (strlen(kobject_actions[action]) != count_first)
continue;
if (args)
*args = args_start;
Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-by: syzbot+d164947c037324221043@syzkaller.appspotmail.com Tested-by: syzbot+d164947c037324221043@syzkaller.appspotmail.com Tested on: commit: 9d2ed026 Merge tag 'sysctl-7.03-rc1' of git://git.kern.. git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=12f66415580000 kernel config: https://syzkaller.appspot.com/x/.config?x=996f19b48f3c7123 dashboard link: https://syzkaller.appspot.com/bug?extid=d164947c037324221043 compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 patch: https://syzkaller.appspot.com/x/patch.diff?x=14e91179580000 Note: testing is done by a robot and is best-effort only.
© 2016 - 2026 Red Hat, Inc.