From patchwork Thu Apr 2 11:07:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 46721 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B8C56216D1 for ; Thu, 2 Apr 2015 11:08:12 +0000 (UTC) Received: by lbcne10 with SMTP id ne10sf9440846lbc.1 for ; Thu, 02 Apr 2015 04:08:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=nLF3nA1LBhi5xvrNltYXgm5I/l/LbyqDbHW6Hj4XS3E=; b=hmdK8NxtdlmG9SMEEBEqfmTBdRXyIGtRMPL+xNjZZmEy19mbsOAXH7ojIRMNWw/Kg/ Stk+wqcjQ+sK7v/o/I+BQBRMX08pXG6HvKXm9RW+ik7yQF1M8SFw5FYC5j7XMa/PpBku TgnrUMUONoqH5uoL4pdAASflslULw5FES7b+jZ/eAXK/PCyRzL6OqIc957Kuel2CQRiD vRghxQ9C969cYlrpkllnJ6XulG24HOQNFuf2rElDQhuFitLgNbcP11PfJANj/JDAG1D4 4X4HlMAn3urUgyR7xTRxwg54gqWFrC6AsMzTjSOiL9ouYcE5OuVS1pOVsJVtWor8EepF Sm3w== X-Gm-Message-State: ALoCoQmoBOiSUizygdevCv+7HHOjFLuflRBR9sq0Pa9uRFb4418mW5OqPXeEkQuzR+KyHHawNDnl X-Received: by 10.194.11.70 with SMTP id o6mr12097772wjb.6.1427972891640; Thu, 02 Apr 2015 04:08:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.5 with SMTP id f5ls207263laa.29.gmail; Thu, 02 Apr 2015 04:08:11 -0700 (PDT) X-Received: by 10.112.159.162 with SMTP id xd2mr5390929lbb.67.1427972891410; Thu, 02 Apr 2015 04:08:11 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id pp3si3972184lbc.77.2015.04.02.04.08.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2015 04:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lajy8 with SMTP id y8so57261625laj.0 for ; Thu, 02 Apr 2015 04:08:11 -0700 (PDT) X-Received: by 10.112.8.76 with SMTP id p12mr36469900lba.29.1427972891239; Thu, 02 Apr 2015 04:08:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1259557lbq; Thu, 2 Apr 2015 04:08:10 -0700 (PDT) X-Received: by 10.140.16.162 with SMTP id 31mr31979959qgb.31.1427972889845; Thu, 02 Apr 2015 04:08:09 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j9si4649520qcf.21.2015.04.02.04.08.07; Thu, 02 Apr 2015 04:08:09 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id D8BA265086; Thu, 2 Apr 2015 11:08:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9CDCE6507E; Thu, 2 Apr 2015 11:08:06 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8BED765084; Thu, 2 Apr 2015 11:08:01 +0000 (UTC) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by lists.linaro.org (Postfix) with ESMTPS id E476A6507E for ; Thu, 2 Apr 2015 11:08:00 +0000 (UTC) Received: by wgra20 with SMTP id a20so81574301wgr.3 for ; Thu, 02 Apr 2015 04:08:00 -0700 (PDT) X-Received: by 10.181.28.170 with SMTP id jp10mr5320252wid.25.1427972880150; Thu, 02 Apr 2015 04:08:00 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id u16sm6772551wjr.5.2015.04.02.04.07.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Apr 2015 04:07:59 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Thu, 2 Apr 2015 12:07:39 +0100 Message-Id: <1427972861-14593-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH 1/3] validation: pktio: fix memory corruption X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stuart.haslam@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 A magic number, used to ensure jumbo frames are transmitted and received in full, is written to the end of a packet buffer at a fixed offset of 9170 bytes. However for non-jumbo tests this is way beyond the end of the allocated buffer. Signed-off-by: Stuart Haslam --- test/validation/odp_pktio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c index e022c33..5ea45e4 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -95,7 +95,8 @@ static int pktio_pkt_set_seq(odp_packet_t pkt) CU_ASSERT_FATAL(data != NULL); data->head.magic = TEST_SEQ_MAGIC; - data->magic2 = TEST_SEQ_MAGIC; + if (test_jumbo) + data->magic2 = TEST_SEQ_MAGIC; data->head.seq = tstseq; odp_packet_copydata_in(pkt, l4_off+ODPH_UDPHDR_LEN,