DPDK patches and discussions
 help / color / mirror / Atom feed
From: Konstantin Ananyev <konstantin.ananyev@huawei.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: Bruce Richardson <bruce.richardson@intel.com>
Subject: RE: [PATCH v9 07/18] eal: use C library to parse filesystem table
Date: Tue, 30 Dec 2025 15:26:04 +0000	[thread overview]
Message-ID: <d9d43fe06e8340cfa8c9b24cf2a60db3@huawei.com> (raw)
In-Reply-To: <20251229204818.61231-8-stephen@networkplumber.org>



> Rather than doing parsing of /proc/mounts with open coded string
> handling, use the standard C library routines.
> These exist in BSD and Linux.
> 
> It also avoids any possible issues with escaped strings etc
> which the library handles. See getmntent(3) man page.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
>  lib/eal/linux/eal_hugepage_info.c | 58 ++++++++++---------------------
>  1 file changed, 18 insertions(+), 40 deletions(-)
> 
> diff --git a/lib/eal/linux/eal_hugepage_info.c b/lib/eal/linux/eal_hugepage_info.c
> index d47a19c56a..7161b1a2fb 100644
> --- a/lib/eal/linux/eal_hugepage_info.c
> +++ b/lib/eal/linux/eal_hugepage_info.c
> @@ -13,6 +13,7 @@
>  #include <inttypes.h>
>  #include <unistd.h>
>  #include <errno.h>
> +#include <mntent.h>
>  #include <sys/mman.h>
>  #include <sys/stat.h>
> 
> @@ -195,23 +196,13 @@ get_default_hp_size(void)
>  static int
>  get_hugepage_dir(uint64_t hugepage_sz, char *hugedir, int len)
>  {
> -	enum proc_mount_fieldnames {
> -		DEVICE = 0,
> -		MOUNTPT,
> -		FSTYPE,
> -		OPTIONS,
> -		_FIELDNAME_MAX
> -	};
>  	static uint64_t default_size = 0;
>  	const char proc_mounts[] = "/proc/mounts";
> -	const char hugetlbfs_str[] = "hugetlbfs";
> -	const size_t htlbfs_str_len = sizeof(hugetlbfs_str) - 1;
>  	const char pagesize_opt[] = "pagesize=";
>  	const size_t pagesize_opt_len = sizeof(pagesize_opt) - 1;
> -	const char split_tok = ' ';
> -	char *splitstr[_FIELDNAME_MAX];
>  	char found[PATH_MAX] = "";
>  	char buf[BUFSIZ];
> +	struct mntent entry;
>  	const struct internal_config *internal_conf =
>  		eal_get_internal_configuration();
>  	const size_t hugepage_dir_len = (internal_conf->hugepage_dir != NULL) ?
> @@ -226,56 +217,43 @@ get_hugepage_dir(uint64_t hugepage_sz, char *hugedir,
> int len)
>  		return -1;
>  	}
> 
> -	FILE *fd = fopen(proc_mounts, "r");
> -	if (fd == NULL)
> +	FILE *mounts = setmntent(proc_mounts, "r");
> +	if (mounts == NULL)
>  		rte_panic("Cannot open %s\n", proc_mounts);
> 
>  	if (default_size == 0)
>  		default_size = get_default_hp_size();
> 
> -	while (fgets(buf, sizeof(buf), fd)){
> +	while (getmntent_r(mounts, &entry, buf, sizeof(buf))) {
>  		const char *pagesz_str;
> -		size_t mountpt_len = 0;
> -
> -		if (rte_strsplit(buf, sizeof(buf), splitstr, _FIELDNAME_MAX,
> -				split_tok) != _FIELDNAME_MAX) {
> -			EAL_LOG(ERR, "Error parsing %s", proc_mounts);
> -			break; /* return NULL */
> -		}
> +		uint64_t pagesz = default_size;
> +		size_t mountpt_len;
> 
> -		if (strncmp(splitstr[FSTYPE], hugetlbfs_str, htlbfs_str_len) != 0)
> +		if (strcmp(entry.mnt_type, "hugetlbfs") != 0)
>  			continue;
> 
> -		pagesz_str = strstr(splitstr[OPTIONS], pagesize_opt);
> +		pagesz_str = strstr(entry.mnt_opts, pagesize_opt);
> +		if (pagesz_str)
> +			pagesz = rte_str_to_size(&pagesz_str[pagesize_opt_len]);
> 
> -		/* if no explicit page size, the default page size is compared */
> -		if (pagesz_str == NULL) {
> -			if (hugepage_sz != default_size)
> -				continue;
> -		}
> -		/* there is an explicit page size, so check it */
> -		else {
> -			uint64_t pagesz =
> rte_str_to_size(&pagesz_str[pagesize_opt_len]);
> -			if (pagesz != hugepage_sz)
> -				continue;
> -		}
> +		if (pagesz != hugepage_sz)
> +			continue;
> 
>  		/*
>  		 * If no --huge-dir option has been given, we're done.
>  		 */
>  		if (internal_conf->hugepage_dir == NULL) {
> -			strlcpy(found, splitstr[MOUNTPT], len);
> +			strlcpy(found, entry.mnt_dir, len);
>  			break;
>  		}
> 
> -		mountpt_len = strlen(splitstr[MOUNTPT]);
> +		mountpt_len = strlen(entry.mnt_dir);
> 
>  		/*
>  		 * Ignore any mount that doesn't contain the --huge-dir directory
>  		 * or where mount point is not a parent path of --huge-dir
>  		 */
> -		if (strncmp(internal_conf->hugepage_dir, splitstr[MOUNTPT],
> -				mountpt_len) != 0 ||
> +		if (strncmp(internal_conf->hugepage_dir, entry.mnt_dir,
> mountpt_len) != 0 ||
>  			(hugepage_dir_len > mountpt_len &&
>  				internal_conf->hugepage_dir[mountpt_len] != '/')) {
>  			continue;
> @@ -286,10 +264,10 @@ get_hugepage_dir(uint64_t hugepage_sz, char *hugedir,
> int len)
>  		 * (so /mnt/1 is preferred over /mnt for matching /mnt/1/2)).
>  		 */
>  		if (mountpt_len > strlen(found))
> -			strlcpy(found, splitstr[MOUNTPT], len);
> +			strlcpy(found, entry.mnt_dir, len);
>  	} /* end while fgets */
> 
> -	fclose(fd);
> +	endmntent(mounts);
> 
>  	if (found[0] != '\0') {
>  		/* If needed, return the requested dir, not the mount point. */
> --

Acked-by: Konstantin Ananyev <konstantin.ananyev@huawei.com> 

> 2.51.0
> 


  reply	other threads:[~2025-12-30 15:26 UTC|newest]

Thread overview: 165+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-02 17:24 [RFC 0/8] first steps in fixing buffer overflow Stephen Hemminger
2025-12-02 17:24 ` [RFC 1/8] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-02 17:24 ` [RFC 2/8] hash: fix possible ring name overflow Stephen Hemminger
2025-12-02 17:24 ` [RFC 3/8] eal: warn if thread name is truncated Stephen Hemminger
2025-12-02 17:24 ` [RFC 4/8] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-02 17:24 ` [RFC 5/8] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-02 17:24 ` [RFC 6/8] efd: avoid overflowing ring name Stephen Hemminger
2025-12-02 17:24 ` [RFC 7/8] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-02 17:24 ` [RFC 8/8] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-05  2:28 ` [RFC v2 00/14] lib: check for string overflow Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 01/14] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 02/14] test: avoid long hash names Stephen Hemminger
2025-12-05  8:29     ` Bruce Richardson
2025-12-05 17:00       ` Stephen Hemminger
2025-12-05 18:19         ` Bruce Richardson
2025-12-05  2:28   ` [RFC v2 03/14] lpm: restrict name size Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 04/14] hash: avoid possible ring name overflow Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 05/14] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 06/14] eal: warn if thread name is truncated Stephen Hemminger
2025-12-05  8:32     ` Bruce Richardson
2025-12-05  2:28   ` [RFC v2 07/14] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 08/14] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-05  8:34     ` Bruce Richardson
2025-12-05  2:28   ` [RFC v2 09/14] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 10/14] efd: avoid overflowing ring name Stephen Hemminger
2025-12-05  8:37     ` Bruce Richardson
2025-12-05  2:28   ` [RFC v2 11/14] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 12/14] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-05  8:46     ` Bruce Richardson
2025-12-05  2:28   ` [RFC v2 13/14] eal: check for hugefile path overflow Stephen Hemminger
2025-12-05  2:28   ` [RFC v2 14/14] lib: enable format overflow warnings Stephen Hemminger
2025-12-05 20:11   ` [PATCH v3 00/16] lib: find and fix possible string overflows Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 01/16] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 02/16] lpm: restrict name size Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 03/16] hash: add checks for hash name length Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 04/16] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 05/16] latencystats: add check for string overflow Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 06/16] efd: handle possible name truncation Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 07/16] eal: warn if thread name is truncated Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 08/16] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 09/16] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 10/16] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-08  8:58       ` Bruce Richardson
2025-12-08 19:14         ` Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 11/16] eal: check for hugefile path overflow Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 12/16] eal: check tailq length Stephen Hemminger
2025-12-08  8:58       ` Bruce Richardson
2025-12-05 20:11     ` [PATCH v3 13/16] eal: handle long shared library path Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 14/16] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 15/16] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-05 20:11     ` [PATCH v3 16/16] lib: enable format overflow warnings Stephen Hemminger
2025-12-06 18:43   ` [PATCH v4 00/16] lib: find and fix possible string overflows Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 01/16] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 02/16] lpm: restrict name size Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 03/16] hash: add checks for hash name length Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 04/16] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 05/16] latencystats: add check for string overflow Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 06/16] efd: handle possible name truncation Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 07/16] eal: warn if thread name is truncated Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 08/16] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 09/16] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 10/16] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 11/16] eal: check for hugefile path overflow Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 12/16] eal: check tailq length Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 13/16] eal: handle long shared library path Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 14/16] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 15/16] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-06 18:43     ` [PATCH v4 16/16] lib: enable format overflow warnings Stephen Hemminger
2025-12-07 19:11   ` [PATCH v5 00/17] lib: fix format overflows Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 01/17] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 02/17] lpm: restrict name size Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 03/17] hash: add checks for hash name length Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 04/17] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 05/17] latencystats: add check for string overflow Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 06/17] telemetry: avoid possible " Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 07/17] efd: handle possible name truncation Stephen Hemminger
2025-12-07 19:11     ` [PATCH v5 08/17] eal: warn if thread name is truncated Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 09/17] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 10/17] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 11/17] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 12/17] eal: check for hugefile path overflow Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 13/17] eal: check tailq length Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 14/17] eal: handle long shared library path Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 15/17] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 16/17] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-07 19:12     ` [PATCH v5 17/17] lib: enable format overflow warnings Stephen Hemminger
2025-12-16 23:20     ` [PATCH v5 00/17] lib: fix format overflows Patrick Robb
2025-12-17  6:57       ` Stephen Hemminger
2025-12-23 18:12   ` [PATCH v6 00/18] " Stephen Hemminger
2025-12-23 18:12     ` [PATCH v6 01/18] lpm: restrict name size Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 02/18] hash: add checks for hash name length Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 03/18] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 04/18] latencystats: add check for string overflow Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 05/18] telemetry: avoid possible " Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 06/18] efd: handle possible name truncation Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 07/18] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 08/18] eal: warn if thread name is truncated Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 09/18] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 10/18] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 11/18] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 12/18] eal: check for hugefile path overflow Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 13/18] eal: check tailq length Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 14/18] eal: handle long shared library path Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 15/18] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 16/18] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 17/18] cfgfile: add length checks and increase line buffer Stephen Hemminger
2025-12-23 18:13     ` [PATCH v6 18/18] lib: enable format overflow warnings Stephen Hemminger
2025-12-24 22:11 ` [PATCH v7 00/18] lib: fix format overflows Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 01/18] lpm: restrict name size Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 02/18] hash: add checks for hash name length Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 03/18] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 04/18] latencystats: add check for string overflow Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 05/18] telemetry: check for path overflow Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 06/18] efd: handle possible name truncation Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 07/18] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 08/18] eal: warn if thread name is truncated Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 09/18] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 10/18] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 11/18] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 12/18] eal: check for hugefile path overflow Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 13/18] eal: check tailq length Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 14/18] eal: handle long shared library path Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 15/18] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 16/18] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 17/18] cfgfile: add length checks and increase line buffer Stephen Hemminger
2025-12-24 22:11   ` [PATCH v7 18/18] lib: enable format overflow warnings Stephen Hemminger
2025-12-28 18:56 ` [PATCH v8 00/18] fix format overflows in libraries Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 01/18] lpm: restrict name size Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 02/18] hash: add checks for hash name length Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 03/18] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 04/18] latencystats: add check for string overflow Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 05/18] telemetry: check for path overflow Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 06/18] efd: handle possible name truncation Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 07/18] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 08/18] eal: warn if thread name is truncated Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 09/18] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 10/18] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 11/18] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 12/18] eal: check for hugefile path overflow Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 13/18] eal: check tailq length Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 14/18] eal: handle long shared library path Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 15/18] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 16/18] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 17/18] cfgfile: add length checks and increase line buffer Stephen Hemminger
2025-12-28 18:56   ` [PATCH v8 18/18] lib: enable format overflow warnings Stephen Hemminger
2025-12-29 19:37 ` [PATCH v9 00/18] fix format overflow in libraries Stephen Hemminger
2025-12-29 19:37   ` [PATCH v9 01/18] lpm: restrict name size Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 02/18] hash: add checks for hash name length Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 03/18] graph: avoid overflowing comment buffer Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 04/18] latencystats: add check for string overflow Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 05/18] telemetry: check for path overflow Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 06/18] efd: handle possible name truncation Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 07/18] eal: use C library to parse filesystem table Stephen Hemminger
2025-12-30 15:26     ` Konstantin Ananyev [this message]
2025-12-29 19:38   ` [PATCH v9 08/18] eal: warn if thread name is truncated Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 09/18] eal: avoid format overflow when handling addresses Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 10/18] eal: add check for sysfs path overflow Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 11/18] eal: limit maximum runtime directory and socket paths Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 12/18] eal: check for hugefile path overflow Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 13/18] eal: check tailq length Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 14/18] eal: handle long shared library path Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 15/18] ethdev: avoid possible overflow in xstat names Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 16/18] vhost: check for overflow in xstat name Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 17/18] cfgfile: add length checks and increase line buffer Stephen Hemminger
2025-12-29 19:38   ` [PATCH v9 18/18] lib: enable format overflow warnings Stephen Hemminger

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=d9d43fe06e8340cfa8c9b24cf2a60db3@huawei.com \
    --to=konstantin.ananyev@huawei.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    /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;
as well as URLs for NNTP newsgroup(s).