From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D30D8C43219 for ; Fri, 3 May 2019 15:07:26 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 6316C205ED for ; Fri, 3 May 2019 15:07:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="R/Fj4j0j"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="vNPK3BJL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6316C205ED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 38EB95F1A; Fri, 3 May 2019 17:07:25 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 645595F19; Fri, 3 May 2019 17:07:24 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D3784261C8; Fri, 3 May 2019 11:07:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 03 May 2019 11:07:23 -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=YnnN5vEPHyTWt2LuSk051kHKZSgAKZsakt8n4cleE/Q=; b=R/Fj4j0jc8ay PPmLENta4C+FLIloGGnVHl2hBH/xtWtAHzXfNn0LVNtI8xBjvTp48U9ZYsYY2ZnQ BonF20FphLzCwIiTE2skrUc0krnqPfN+6Ya7HRlwA/MIDXMJDbtUZkFExmcT1gqo 0ryO44i4r7pWedvXm7t1hsSFJTy7IPk= 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=YnnN5vEPHyTWt2LuSk051kHKZSgAKZsakt8n4cleE /Q=; b=vNPK3BJLhrDMMIjJnzzgFbJEMgzrGKAR8IdcrIAu9ziBSTGoElkrQqvkJ 56EzwA1bbwrCTxtxbv2A95bwKCg9Qhw680PbMfiaEQ8b/xd8Maqcv7OMrYE2ASXQ 5ukUKUiJXTtYvSZXnMOlas8UyUXoK3LJgPPIsyHNCmhYBkiVUrpmuwlUul/L8X4b GNsO6GyxeaaG5xqkOMgcGAQ411OeKxqaLMTdQGhD6CJ13bwhHh/eJkogiGRIkMph de3efbgz8R8y97p+7fpM0w9sPHD0dombAtfK7KHAJhDPNFFLzXbpRc1xb4GB8yFq Dt60rphosNMaF277nxS/qvYpPqtRg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedugdekkecutefuodetggdotefrodftvf 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 61154E4625; Fri, 3 May 2019 11:07:22 -0400 (EDT) From: Thomas Monjalon To: Anatoly Burakov Cc: dev@dpdk.org, keith.wiles@intel.com, herakliusz.lipiec@intel.com, stable@dpdk.org Date: Fri, 03 May 2019 17:07:20 +0200 Message-ID: <4603474.Ut7UvzHKc3@xps> In-Reply-To: <6b8908ab3f0d662c803dba10eba2cae989f8ef4f.1556546216.git.anatoly.burakov@intel.com> References: <6b8908ab3f0d662c803dba10eba2cae989f8ef4f.1556546216.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] ipc: handle more invalid parameter cases 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" 29/04/2019 15:59, Anatoly Burakov: > Length of buffer and number of fd's to send are signed values, so > they can be negative, but the API doesn't check for that. Fix it > by checking for negative values as well. > > Fixes: bacaa2754017 ("eal: add channel for multi-process communication") > Cc: stable@dpdk.org > > Signed-off-by: Anatoly Burakov Applied, thanks