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

2018-07-19 Thread Burakov, Anatoly
On 18-Jul-18 10:44 PM, Stephen Hemminger wrote: DPDK malloc library allows broken programs to work because the semantics of zmalloc and malloc are the same. This patch changes to a more secure model which will catch (and crash) programs that reuse memory already freed. This supersedes earlier c

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

2018-07-19 Thread Bruce Richardson
On Thu, Jul 19, 2018 at 10:03:55AM +0100, Burakov, Anatoly wrote: > On 18-Jul-18 10:44 PM, Stephen Hemminger wrote: > > DPDK malloc library allows broken programs to work because > > the semantics of zmalloc and malloc are the same. > > > > This patch changes to a more secure model which will catc

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

2018-07-19 Thread Burakov, Anatoly
On 18-Jul-18 10:44 PM, Stephen Hemminger wrote: DPDK malloc library allows broken programs to work because the semantics of zmalloc and malloc are the same. This patch changes to a more secure model which will catch (and crash) programs that reuse memory already freed. This supersedes earlier c

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

2018-07-18 Thread Stephen Hemminger
DPDK malloc library allows broken programs to work because the semantics of zmalloc and malloc are the same. This patch changes to a more secure model which will catch (and crash) programs that reuse memory already freed. This supersedes earlier changes to zero memory on free and avoid zeroing me