[dpdk-dev] [PATCH v2] memory: fix segfault on rte_mem_virt2memseg() call with invalid addr
Burakov, Anatoly
anatoly.burakov at intel.com
Fri Jun 1 16:58:05 CEST 2018
On 01-Jun-18 2:44 PM, Dariusz Stojaczyk wrote:
> When trying to use it with an address that's not
> managed by DPDK it would segfault due to a missing
> check. The doc says this function returns either
> a pointer or NULL, so let it do so.
>
> Changes from v1:
> * removed gerrit change id
> * added "git fixline" tags
>
> Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")
> Cc: anatoly.burakov at intel.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk at intel.com>
> ---
Please include Acks (Reviews, Tests...) in the commit message if they
were given for the previous version of the patchset. Also do not list
changes you've made in the commit message; instead, list changes in the
patch notes, after the first "---", like so:
area: fix blah
This patch fixes this and that.
Fixes: 123456 ("area: a buggy commit")
Cc: bug.author at example.com
Signed-off-by: Fix Author <fix.author at example.com>
Acked-by: fix.reviewer at example.com
---
v2:
- Fixed this
- Fixed that
--
Thanks,
Anatoly
More information about the dev
mailing list