From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id A31FAA0471
	for <public@inbox.dpdk.org>; Thu, 18 Jul 2019 23:24:21 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id E66C6231E;
	Thu, 18 Jul 2019 23:24:20 +0200 (CEST)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com
 [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 1BB661DBE
 for <dev@dpdk.org>; Thu, 18 Jul 2019 23:24:20 +0200 (CEST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 0537142C;
 Thu, 18 Jul 2019 17:24:18 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Thu, 18 Jul 2019 17:24:19 -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=1YjDINDFfoyEZHZla/ivitoEAfJIk2aEVJVNsz3+oEE=; b=cNWtTnsOv/DE
 zaW0MQpcoTxoNPHjDjRKSukLFydj3iQP7E07RrIghNBHuS3y3QkPg51jY0ZniQ/P
 hp/IfSuNWnJhEkXkBsQj89c83bKbq8bEVECq8Wz2ypsKza9QvaR5c0saqMnuGo/P
 OIxx4MLhY25DpZjGsylDUylrSXZDtY8=
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=fm3; bh=1YjDINDFfoyEZHZla/ivitoEAfJIk2aEVJVNsz3+o
 EE=; b=p2JP5Vsk/wuMjBdI30EzDx6ueQKivZRf1FqYXSADYW5xk2hZRTHppnX4U
 REuRqrA1D8MozvpDPr81sUUqMC39fHFB+RKX6KsODOen7pjnhdL5ucZs9MqQRA6Y
 fAR0lRqlrxL1d8GjBBqCbxhFSSlSnj48vV3SxaiO0Xk46rTIhZ7vd3nBtr43NOeh
 e5q7m+5j+FcUH30Js5xiJj78zPSCSEPOoRXwF7QCh/ONZhYFwxc/YJipt5si0qX5
 meVluFGBdzt7PS5R9J4ts9UXrJt7yJyUwE5mxrKZ1t7QUynsD14kN8CzBjvYCRkc
 J5n9sh0t5cTatYTqWOr03KmTimi/g==
X-ME-Sender: <xms:geMwXYOZNuYPNYOP6EyUF-SupS83YTpTTiKvPJDr-rhD53punANElg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrieehgdduieegucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr
 shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf
 hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh
 ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedu
X-ME-Proxy: <xmx:guMwXfHu9p8_L-BSnDv0XtgotWm86aun-0eZ98NUekIVC2SDk8zL-A>
 <xmx:guMwXdGg0jUrWf2TQg1KF2LNhih4zUiKz0iAd54xaCSFWaSAOEVCHg>
 <xmx:guMwXU9-yznEEGekypqhOgPD-Za6Hvdjdx-HMMytFhfvmn2kw1ckgg>
 <xmx:guMwXUMyxUIFjZGg1ql5kGJfGOgGj9NBBenWZDHIhxa2AQLlv8jN-g>
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 6247B380079;
 Thu, 18 Jul 2019 17:24:17 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: dev@dpdk.org, Stephen Hemminger <stephen@networkplumber.org>,
 Yangchao Zhou <zhouyates@gmail.com>
Date: Thu, 18 Jul 2019 23:24:16 +0200
Message-ID: <1846983.CBm7lp9OS6@xps>
In-Reply-To: <20190711083335.55356aeb@hermes.lan>
References: <20190711123508.45219-1-ferruh.yigit@intel.com>
 <20190711083335.55356aeb@hermes.lan>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-dev] [PATCH] kni: fix possible buffer overflow
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

11/07/2019 17:33, Stephen Hemminger:
> On Thu, 11 Jul 2019 13:35:07 +0100
> Ferruh Yigit <ferruh.yigit@intel.com> wrote:
> 
> > 'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for
> > that case will be wrong and some values can cause buffer overflow
> > in destination mbuf data.
> > 
> > Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> 
> Acked-by: Stephen Hemminger <stephen@networkplumber.org>

Applied, thanks