From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id A32DF1B173 for ; Wed, 24 Jan 2018 16:36:07 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4E50D22359; Wed, 24 Jan 2018 10:36:07 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:36:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=NFVVfbnX+OvWmOPv2 rQOSlk6miKBK7dnQ6TqVucVEMw=; b=rLRk4QrewvltzJMYRrldRcLTVce/jBRQV 7PdlU2axqhUKz2sZ9mAjEoDrvK6R/uyIH1amhvqBJ44pYkCkg6J7oKDBsGXGGSGW g7FaiIMsuHpiHwKDrSmXdTMtpNzHv53tdyz+gS5cLy0zT5Cb1BMujx1QVURHDjI5 AGeMxknQZ5V5u+CVDfgUUMA1hbNDbEfDAJDbFPlQLv0+AfuVJjtFu/EtIWPze6B3 MbfCioqSw28JKhBFCk0lwh+qIsWdd10qUKjMjcXJVJVqc5V47Err5B86fcOTX/B7 b/Alo1pJulDqaYfIjUIBYQUzpVyFJYFQdnhMHtPDl+Y+AM2lQAoXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=NFVVfbnX+OvWmOPv2rQOSlk6miKBK7dnQ6TqVucVEMw=; b=MEAnWDt/ fC57NBC5yKP3cVcLBD+ddqLXXxNBhJAq3y1EJ47cs5Ljjuf9IICvevV3s8nXkAz6 E7m3wBftlOXoFvXEtpeaA6If//RFBn8Y2f/fEHbo0dTfzE8fwr8F9y3xeWgsHd/M rGwqbt0LAyr+Kfcbq3B1a8zcdFzeSJynHxgvaRrlZG77Cfs0vdNJ9LQFQ5K7yZAw FbmSwyrJBfWgKIGiNvr6HzCkXjx7c1/As5KI429fVBPFRfrCcS2fcmMUzOjAEiis 4bm1kdoBDQXVfk3HLlcyANYA14N4sqYONpck6u9WeKyK91GwibIUMBl2gBaKbSD3 J73KDxzewhEhbQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 26F3F7E1A2; Wed, 24 Jan 2018 10:36:04 -0500 (EST) From: Yuanhan Liu To: Yongseok Koh Cc: Wenzhuo Lu , dpdk stable Date: Wed, 24 Jan 2018 23:31:14 +0800 Message-Id: <1516808026-25523-6-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'app/testpmd: fix crash of txonly with multiple segments' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:36:07 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 6a08ab331fcc674c78ec4f84c72e6301444f629d Mon Sep 17 00:00:00 2001 From: Yongseok Koh Date: Tue, 26 Dec 2017 19:51:38 -0800 Subject: [PATCH] app/testpmd: fix crash of txonly with multiple segments [ upstream commit b03913e9e22fbd7206c3d266b0f52831eacd96b3 ] Running txonly mode can crash with "--txpkts=20,470". copy_len should be properly adjusted. Fixes: af75078fece3 ("first public release") Signed-off-by: Yongseok Koh Acked-by: Wenzhuo Lu --- app/test-pmd/txonly.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c index 309c738..4ce4d61 100644 --- a/app/test-pmd/txonly.c +++ b/app/test-pmd/txonly.c @@ -104,6 +104,7 @@ copy_buf_to_pkt_segs(void* buf, unsigned len, struct rte_mbuf *pkt, buf = ((char*) buf + copy_len); seg = seg->next; seg_buf = rte_pktmbuf_mtod(seg, char *); + copy_len = seg->data_len; } rte_memcpy(seg_buf, buf, (size_t) len); } -- 2.7.4