DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] doc: known issue on EAL argv
@ 2016-05-13  5:14 Jingjing Wu
  2016-05-16 13:01 ` Mcnamara, John
  2016-05-23 14:24 ` [dpdk-dev] [PATCH v2] doc: add known issue with " Jingjing Wu
  0 siblings, 2 replies; 5+ messages in thread
From: Jingjing Wu @ 2016-05-13  5:14 UTC (permalink / raw)
  To: david.marchand; +Cc: dev, jingjing.wu, ziye.yang, bruce.richardson

This patch docs the issue on EAL argument that the last EAL
argument is replaced by program name in argv[].

Reported-by: Ziye Yang <ziye.yang@intel.com>
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
---
 doc/guides/rel_notes/known_issues.rst | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/doc/guides/rel_notes/known_issues.rst b/doc/guides/rel_notes/known_issues.rst
index 923a202..9f03733 100644
--- a/doc/guides/rel_notes/known_issues.rst
+++ b/doc/guides/rel_notes/known_issues.rst
@@ -618,3 +618,22 @@ DPDK may not build on some Intel CPUs using clang < 3.7.0
 
 **Driver/Module**:
    Environment Abstraction Layer (EAL).
+
+
+The last EAL argument is replaced by program name in argv[]
+-----------------------------------------------------------
+
+**Description**:
+   The last EAL argument will be replaced by program name in argv[] after eal_parse_args, and it causes the pointer to the last EAL argument lost.
+
+**Implication**:
+  If the last EAL argument in argv is generated by malloc function, changing it will cause memory issues when free the argument.
+
+**Resolution/Workaround**:
+   Application should not consider the value in argv[] as unchanged.
+
+**Affected Environment/Platform**:
+   ALL.
+
+**Driver/Module**:
+   Environment Abstraction Layer (EAL).
-- 
2.4.0

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

* Re: [dpdk-dev] [PATCH] doc: known issue on EAL argv
  2016-05-13  5:14 [dpdk-dev] [PATCH] doc: known issue on EAL argv Jingjing Wu
@ 2016-05-16 13:01 ` Mcnamara, John
  2016-05-23 14:24 ` [dpdk-dev] [PATCH v2] doc: add known issue with " Jingjing Wu
  1 sibling, 0 replies; 5+ messages in thread
From: Mcnamara, John @ 2016-05-16 13:01 UTC (permalink / raw)
  To: Wu, Jingjing, david.marchand
  Cc: dev, Wu, Jingjing, Yang, Ziye, Richardson, Bruce

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jingjing Wu
> Sent: Friday, May 13, 2016 6:15 AM
> To: david.marchand@6wind.com
> Cc: dev@dpdk.org; Wu, Jingjing <jingjing.wu@intel.com>; Yang, Ziye
> <ziye.yang@intel.com>; Richardson, Bruce <bruce.richardson@intel.com>
> Subject: [dpdk-dev] [PATCH] doc: known issue on EAL argv
> 
> This patch docs the issue on EAL argument that the last EAL argument is
> replaced by program name in argv[].
> 
> Reported-by: Ziye Yang <ziye.yang@intel.com>
> Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>


Hi Ziye,


The title would be better as "doc: add known issue with EAL argv"


Also, below are some suggested changes to the docs in the patch:




The last EAL argument is replaced by the program name in argv[]
---------------------------------------------------------------

**Description**:
   The last EAL argument is replaced by the program name in ``argv[]`` after ``eal_parse_args()`` is called.
   This is the intended behavior but it causes the pointer to the last EAL argument to be lost.

**Implication**:
  If the last EAL argument in ``argv[]`` is generated by a malloc function, changing it will cause memory
  issues when freeing the argument.

**Resolution/Workaround**:
   An application should not consider the value in ``argv[]`` as unchanged.

**Affected Environment/Platform**:
   All.

**Driver/Module**:
   Environment Abstraction Layer (EAL).

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

* [dpdk-dev] [PATCH v2] doc: add known issue with EAL argv
  2016-05-13  5:14 [dpdk-dev] [PATCH] doc: known issue on EAL argv Jingjing Wu
  2016-05-16 13:01 ` Mcnamara, John
@ 2016-05-23 14:24 ` Jingjing Wu
  2016-06-09  8:58   ` Mcnamara, John
  1 sibling, 1 reply; 5+ messages in thread
From: Jingjing Wu @ 2016-05-23 14:24 UTC (permalink / raw)
  To: david.marchand; +Cc: dev, jingjing.wu, ziye.yang, bruce.richardson

This patch docs the issue on EAL argument that the last EAL
argument is replaced by program name in argv[].

Reported-by: Ziye Yang <ziye.yang@intel.com>
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
---
 doc/guides/rel_notes/known_issues.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/doc/guides/rel_notes/known_issues.rst b/doc/guides/rel_notes/known_issues.rst
index 923a202..8ca2a86 100644
--- a/doc/guides/rel_notes/known_issues.rst
+++ b/doc/guides/rel_notes/known_issues.rst
@@ -618,3 +618,24 @@ DPDK may not build on some Intel CPUs using clang < 3.7.0
 
 **Driver/Module**:
    Environment Abstraction Layer (EAL).
+
+
+The last EAL argument is replaced by the program name in argv[]
+-----------------------------------------------------------
+
+**Description**:
+   The last EAL argument is replaced by program name in ``argv[]`` after ``eal_parse_args`` is called.
+   This is the intended behavior but it causes the pointer to the last EAL argument to be lost.
+
+**Implication**:
+  If the last EAL argument in ``argv[]`` is generated by a malloc function, changing it will cause memory
+  issues when freeing the argument.
+
+**Resolution/Workaround**:
+   An application should not consider the value in ``argv[]`` as unchanged.
+
+**Affected Environment/Platform**:
+   ALL.
+
+**Driver/Module**:
+   Environment Abstraction Layer (EAL).
-- 
2.4.0

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

* Re: [dpdk-dev] [PATCH v2] doc: add known issue with EAL argv
  2016-05-23 14:24 ` [dpdk-dev] [PATCH v2] doc: add known issue with " Jingjing Wu
@ 2016-06-09  8:58   ` Mcnamara, John
  2016-06-14 14:58     ` Thomas Monjalon
  0 siblings, 1 reply; 5+ messages in thread
From: Mcnamara, John @ 2016-06-09  8:58 UTC (permalink / raw)
  To: Wu, Jingjing, david.marchand
  Cc: dev, Wu, Jingjing, Yang, Ziye, Richardson, Bruce

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jingjing Wu
> Sent: Monday, May 23, 2016 3:25 PM
> To: david.marchand@6wind.com
> Cc: dev@dpdk.org; Wu, Jingjing <jingjing.wu@intel.com>; Yang, Ziye
> <ziye.yang@intel.com>; Richardson, Bruce <bruce.richardson@intel.com>
> Subject: [dpdk-dev] [PATCH v2] doc: add known issue with EAL argv
> 
> This patch docs the issue on EAL argument that the last EAL argument is
> replaced by program name in argv[].
> 
> Reported-by: Ziye Yang <ziye.yang@intel.com>
> Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>

Acked-by: John McNamara <john.mcnamara@intel.com>

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

* Re: [dpdk-dev] [PATCH v2] doc: add known issue with EAL argv
  2016-06-09  8:58   ` Mcnamara, John
@ 2016-06-14 14:58     ` Thomas Monjalon
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2016-06-14 14:58 UTC (permalink / raw)
  To: Wu, Jingjing
  Cc: dev, Mcnamara, John, david.marchand, Yang, Ziye, Richardson, Bruce

> > This patch docs the issue on EAL argument that the last EAL argument is
> > replaced by program name in argv[].
> > 
> > Reported-by: Ziye Yang <ziye.yang@intel.com>
> > Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
> 
> Acked-by: John McNamara <john.mcnamara@intel.com>

Applied (with small rst fix), thanks

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

end of thread, other threads:[~2016-06-14 14:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-13  5:14 [dpdk-dev] [PATCH] doc: known issue on EAL argv Jingjing Wu
2016-05-16 13:01 ` Mcnamara, John
2016-05-23 14:24 ` [dpdk-dev] [PATCH v2] doc: add known issue with " Jingjing Wu
2016-06-09  8:58   ` Mcnamara, John
2016-06-14 14:58     ` 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).