Re: [dpdk-dev] [RFC v2] mem: poison memory when freed

2018-07-20 Thread Burakov, Anatoly
On 19-Jul-18 5:20 PM, Stephen Hemminger wrote: DPDK malloc library allows broken programs to work because the semantics of zmalloc and malloc are the same. This patch enables a more secure model which will catch (and crash) programs that reuse memory already freed if RTE_MALLOC_DEBUG is enabled

Re: [dpdk-dev] [RFC v2] mem: poison memory when freed

2018-07-19 Thread Andrew Rybchenko
On 19.07.2018 19:20, Stephen Hemminger wrote: DPDK malloc library allows broken programs to work because the semantics of zmalloc and malloc are the same. This patch enables a more secure model which will catch (and crash) programs that reuse memory already freed if RTE_MALLOC_DEBUG is enabled.

Re: [dpdk-dev] [RFC v2] mem: poison memory when freed

2018-07-19 Thread Andrew Rybchenko
On 19.07.2018 19:20, Stephen Hemminger wrote: DPDK malloc library allows broken programs to work because the semantics of zmalloc and malloc are the same. This patch enables a more secure model which will catch (and crash) programs that reuse memory already freed if RTE_MALLOC_DEBUG is enabled.

[dpdk-dev] [RFC v2] mem: poison memory when freed

2018-07-19 Thread Stephen Hemminger
DPDK malloc library allows broken programs to work because the semantics of zmalloc and malloc are the same. This patch enables a more secure model which will catch (and crash) programs that reuse memory already freed if RTE_MALLOC_DEBUG is enabled. Signed-off-by: Stephen Hemminger --- v2 -