DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] devargs: Fix crash due to global devargs uninitailization from secondary process
@ 2022-02-14 17:08 madhuker.mythri
  2022-02-14 17:33 ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: madhuker.mythri @ 2022-02-14 17:08 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Madhuker Mythri

From: Madhuker Mythri <madhuker.mythri@oracle.com>

Failsafe pmd started crashing with global devargs syntax as devargs is
not memset to zero. Access it to in rte_devargs_parse() resulted in a
crash when called from secondary process.

Bugzilla Id: 933

Signed-off-by: Madhuker Mythri <madhuker.mythri@oracle.com>
---
 lib/eal/common/eal_common_devargs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/eal/common/eal_common_devargs.c b/lib/eal/common/eal_common_devargs.c
index 69004b0a2d..ad60febad9 100644
--- a/lib/eal/common/eal_common_devargs.c
+++ b/lib/eal/common/eal_common_devargs.c
@@ -190,6 +190,7 @@ rte_devargs_parse(struct rte_devargs *da, const char *dev)
 
 	if (da == NULL)
 		return -EINVAL;
+	memset(da, 0, sizeof(*da));
 
 	/* First parse according global device syntax. */
 	if (rte_devargs_layers_parse(da, dev) == 0) {
-- 
2.32.0.windows.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-27 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 17:08 [PATCH] devargs: Fix crash due to global devargs uninitailization from secondary process madhuker.mythri
2022-02-14 17:33 ` Ferruh Yigit
2022-02-15 11:20   ` [External] : " Madhuker Mythri
2022-02-27 18:31     ` Thomas Monjalon

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).