Re: [PATCH RFC 17/38] net: pktgen: reject device names with a '/'

From: Alexey Dobriyan

Date: Wed Nov 04 2026 - 14:32:24 EST


> --- a/net/core/pktgen.c
> +++ b/net/core/pktgen.c
> @@ -3831,6 +3831,10 @@ static int pktgen_add_device(struct pktgen_thread *t, const char *ifname)
> + /* The name becomes the name of a file in /proc/net/pktgen. */
> + if (strchr(ifname, '/'))
> + return -EINVAL;

I posted string_is_vfs_ready() to catch dots as well but it disappeared somewhere:
https://lore.kernel.org/linux-fsdevel/vqeq3ioklrgrf227zgdfho4virh74qrt5reoyptmzgktyronbr@c2mw32pqikft/

./../alexey