* [PATCH] doc: add PMD known issue
@ 2023-04-20 6:43 Mingjin Ye
0 siblings, 0 replies; 4+ messages in thread
From: Mingjin Ye @ 2023-04-20 6:43 UTC (permalink / raw)
To: dev; +Cc: yidingx.zhou, Mingjin Ye, Qiming Yang, Wenjun Wu
Add a known issue: ASLR feature causes core dump.
Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
---
doc/guides/nics/ixgbe.rst | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst
index b1d77ab7ab..459d0d8380 100644
--- a/doc/guides/nics/ixgbe.rst
+++ b/doc/guides/nics/ixgbe.rst
@@ -461,3 +461,18 @@ show bypass config
Show the bypass configuration for a bypass enabled NIC using the lowest port on the NIC::
testpmd> show bypass config (port_id)
+
+ASLR feature causes core dump
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Core dump may occur when we start secondary processes on the vf port.
+Mainstream Linux distributions have the ASLR feature enabled by default,
+and the text segment of the process memory space is randomized.
+The secondary process calls the function address shared by the primary
+process, resulting in a core dump.
+
+ .. Note::
+
+ Support for ASLR features varies by distribution. Redhat and
+ Centos series distributions work fine. Ubuntu distributions
+ will core dump, other Linux distributions are unknown.
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] doc: add PMD known issue
@ 2023-04-20 6:14 Mingjin Ye
2023-04-20 14:59 ` Stephen Hemminger
2023-04-20 15:22 ` Bruce Richardson
0 siblings, 2 replies; 4+ messages in thread
From: Mingjin Ye @ 2023-04-20 6:14 UTC (permalink / raw)
To: dev; +Cc: qiming.yang, yidingx.zhou, Mingjin Ye, Wenjun Wu
Add a known issue: ASLR feature causes core dump.
Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
---
doc/guides/nics/ixgbe.rst | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst
index b1d77ab7ab..c346e377e2 100644
--- a/doc/guides/nics/ixgbe.rst
+++ b/doc/guides/nics/ixgbe.rst
@@ -461,3 +461,18 @@ show bypass config
Show the bypass configuration for a bypass enabled NIC using the lowest port on the NIC::
testpmd> show bypass config (port_id)
+
+ASLR feature causes core dump
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Core dump may occur when we start secondary processes on the vf port.
+Mainstream Linux distributions have the ASLR feature enabled by default,
+and the text segment of the process's memory space is randomized.
+The secondary process calls the function address shared by the primary
+process, resulting in a core dump.
+
+ .. Note::
+
+ Support for ASLR features varies by distribution. Redhat and
+ Centos series distributions work fine. Ubuntu distributions
+ will core dump, other Linux distributions are unknown.
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] doc: add PMD known issue
2023-04-20 6:14 Mingjin Ye
@ 2023-04-20 14:59 ` Stephen Hemminger
2023-04-20 15:22 ` Bruce Richardson
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2023-04-20 14:59 UTC (permalink / raw)
To: Mingjin Ye; +Cc: dev, qiming.yang, yidingx.zhou, Wenjun Wu
On Thu, 20 Apr 2023 06:14:29 +0000
Mingjin Ye <mingjinx.ye@intel.com> wrote:
> Add a known issue: ASLR feature causes core dump.
>
> Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
> ---
Please provide back trace.
This should be fixable.
Fixing a bug is always better than documenting it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] doc: add PMD known issue
2023-04-20 6:14 Mingjin Ye
2023-04-20 14:59 ` Stephen Hemminger
@ 2023-04-20 15:22 ` Bruce Richardson
1 sibling, 0 replies; 4+ messages in thread
From: Bruce Richardson @ 2023-04-20 15:22 UTC (permalink / raw)
To: Mingjin Ye; +Cc: dev, qiming.yang, yidingx.zhou, Wenjun Wu
On Thu, Apr 20, 2023 at 06:14:29AM +0000, Mingjin Ye wrote:
> Add a known issue: ASLR feature causes core dump.
>
> Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
> ---
> doc/guides/nics/ixgbe.rst | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst
> index b1d77ab7ab..c346e377e2 100644
> --- a/doc/guides/nics/ixgbe.rst
> +++ b/doc/guides/nics/ixgbe.rst
> @@ -461,3 +461,18 @@ show bypass config
> Show the bypass configuration for a bypass enabled NIC using the lowest port on the NIC::
>
> testpmd> show bypass config (port_id)
> +
> +ASLR feature causes core dump
> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> +
> +Core dump may occur when we start secondary processes on the vf port.
> +Mainstream Linux distributions have the ASLR feature enabled by default,
> +and the text segment of the process's memory space is randomized.
> +The secondary process calls the function address shared by the primary
> +process, resulting in a core dump.
> +
> + .. Note::
> +
> + Support for ASLR features varies by distribution. Redhat and
> + Centos series distributions work fine. Ubuntu distributions
> + will core dump, other Linux distributions are unknown.
> --
I disagree about this description of the bug. ASLR is not the problem;
instead driver is just not multi-process aware and uses the same pointers
in both primary and secondary processes. You will hit this issue even
without ASLR if primary and secondary processes use different static
binaries. Therefore, IMHO, title should be that the VF driver is not
multi-process safe, rather than pinning the blame on ASLR.
/Bruce
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-20 15:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20 6:43 [PATCH] doc: add PMD known issue Mingjin Ye
-- strict thread matches above, loose matches on Subject: below --
2023-04-20 6:14 Mingjin Ye
2023-04-20 14:59 ` Stephen Hemminger
2023-04-20 15:22 ` Bruce Richardson
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).