From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 691A05F72 for ; Wed, 27 Mar 2019 11:26:31 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D77A421CE0; Wed, 27 Mar 2019 06:26:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 27 Mar 2019 06:26:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=a88FHDYOieNnWupJuj0LICklPJhQ9yeXUWpx9GvMeKY=; b=ec4jGaCUOqai tPOxni6aPRxpj36fvmDgKfdCwINHTrGGLUJDS0fy3kwvcqLBUUvmgXDbg3gv39cY PnRqTuYUHzzuheIE5eBJOkrwfaSW3W4bJxxKvv4tp1XNX9F1EY1TcHNLyxg5hTgE Zgt4VXVAXKaO/YaKkKom9kIV2Zwg4wc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=a88FHDYOieNnWupJuj0LICklPJhQ9yeXUWpx9GvMe KY=; b=3DgD105h+nd97YG+jz0gQ8Y3K0kfAb+U3qVRIEaWqWId0GeV5isP9X0fR WkAPPHfkIkDap5JaZOB9mdTZR2CkWlHFgeUw/ZkqNNcrniW1daG8H1Cu2MsTSTMp uC5Hvpzm25TI2kLU+koCSFVvKIAl61Pkjx78ogYOE/Pxq0Yas0SMnHQAFwtq85j2 CPHid1i1NnGiFjY3b82e4JkH8FO/tthceanI89AEg9g/GIu/zygQuwn914w8ZjBQ 0mhqr7gjvMIAPcdd0B280YX63e1QWq/jRV5RQ8DDztdw1LhIXXaQp57ExiSQJqvT hdyhobRZYdjZDps8EXyzZzistwFAg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrkedvgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E87A810317; Wed, 27 Mar 2019 06:26:29 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org Date: Wed, 27 Mar 2019 11:26:28 +0100 Message-ID: <10293234.krj7TAs3ua@xps> In-Reply-To: <20190216015016.10426-1-stephen@networkplumber.org> References: <20190216015016.10426-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] mem: poison memory when freed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2019 10:26:31 -0000 16/02/2019 02:50, 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 > Acked-by: Andrew Rybchenko > Reviewed-by: Anatoly Burakov Applied, thanks From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 1E946A05D3 for ; Wed, 27 Mar 2019 11:26:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E384F5F2A; Wed, 27 Mar 2019 11:26:32 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 691A05F72 for ; Wed, 27 Mar 2019 11:26:31 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D77A421CE0; Wed, 27 Mar 2019 06:26:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 27 Mar 2019 06:26:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=a88FHDYOieNnWupJuj0LICklPJhQ9yeXUWpx9GvMeKY=; b=ec4jGaCUOqai tPOxni6aPRxpj36fvmDgKfdCwINHTrGGLUJDS0fy3kwvcqLBUUvmgXDbg3gv39cY PnRqTuYUHzzuheIE5eBJOkrwfaSW3W4bJxxKvv4tp1XNX9F1EY1TcHNLyxg5hTgE Zgt4VXVAXKaO/YaKkKom9kIV2Zwg4wc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=a88FHDYOieNnWupJuj0LICklPJhQ9yeXUWpx9GvMe KY=; b=3DgD105h+nd97YG+jz0gQ8Y3K0kfAb+U3qVRIEaWqWId0GeV5isP9X0fR WkAPPHfkIkDap5JaZOB9mdTZR2CkWlHFgeUw/ZkqNNcrniW1daG8H1Cu2MsTSTMp uC5Hvpzm25TI2kLU+koCSFVvKIAl61Pkjx78ogYOE/Pxq0Yas0SMnHQAFwtq85j2 CPHid1i1NnGiFjY3b82e4JkH8FO/tthceanI89AEg9g/GIu/zygQuwn914w8ZjBQ 0mhqr7gjvMIAPcdd0B280YX63e1QWq/jRV5RQ8DDztdw1LhIXXaQp57ExiSQJqvT hdyhobRZYdjZDps8EXyzZzistwFAg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrkedvgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E87A810317; Wed, 27 Mar 2019 06:26:29 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org Date: Wed, 27 Mar 2019 11:26:28 +0100 Message-ID: <10293234.krj7TAs3ua@xps> In-Reply-To: <20190216015016.10426-1-stephen@networkplumber.org> References: <20190216015016.10426-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2] mem: poison memory when freed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190327102628.GfhNd85t_UkDOiAYKQCKagPYFGIkaOgUBIiJxFtuxlo@z> 16/02/2019 02:50, 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 > Acked-by: Andrew Rybchenko > Reviewed-by: Anatoly Burakov Applied, thanks