]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/rv: Fix substring match when listing container monitors
authorGabriele Monaco <gmonaco@redhat.com>
Thu, 14 May 2026 15:20:43 +0000 (17:20 +0200)
committerGabriele Monaco <gmonaco@redhat.com>
Thu, 4 Jun 2026 14:44:25 +0000 (16:44 +0200)
commitba0247c5aa3fcb2890a92a97a88c70fe5ce704a6
tree3d0bd64f941946f5f0e651d18e8c9eb8c1127dda
parenta963fbf3166f2e178ac38b6c3c186a0c98092fb9
tools/rv: Fix substring match when listing container monitors

When listing monitors within a specific container (rv list <container>),
the tool incorrectly matched monitors if the requested container name
was only a prefix of the actual container (e.g., 'rv list sche' would
incorrectly list monitors from 'sched:').

Fix this by ensuring the container name is an exact match and is
immediately followed by the ':' separator.

Fixes: eba321a16fc6 ("tools/rv: Add support for nested monitors")
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20260514152055.229162-3-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
tools/verification/rv/src/in_kernel.c