From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 96C184C99 for ; Fri, 27 Jul 2018 12:18:06 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id h20-v6so4887207wmb.4 for ; Fri, 27 Jul 2018 03:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HChQikxxubVcLoUPyQUPaOGjNrcDkHvvWHQGSZaiYLc=; b=G72rfLVR341XEplNOtfiBbP7U5CA1SEhaaTbIFcOJLZqoipmMWHyJjJQ8ExJTC7Pm5 X1ae8iseOFgdWjMcIsLIGQBZTR7AxfNg9XJA3ctGxha/kQcGVPjfn4qkkewLN/2R6b9C Vmm3rPQYtN5LpLJ2E+06K6bC/ouaiR+6l8w/CAkfk5YOognf3v0eEBmJrLcmgqrFWFKD /CThT+22NFZIG0Gbc+fCqlJ10hsEflUqDEmrbd63C4j6AA/IK5gwfql+FSllzAncUxgT gSNdEhT2uUzt339TagAZaYPeFIuePnjPLw350jqpnSR3GVdHWiOYhp3fGZ9GMcWGtsBo jA7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HChQikxxubVcLoUPyQUPaOGjNrcDkHvvWHQGSZaiYLc=; b=FTEMG14pxjJ7s2sxIQCAjEpI5tNejoPZ1NUcx7yX9p73yziaG/xajtN2yZsiaZrkNh 7+dGcerVrYJerapLAi/7448zEWaeWnQb5ymAYzOCOR2lvfP9PQNBAWoM0zD3Dlw/+y/a /c3C9IyaiIDGHv8AH2LdlB3QgQxJ8CDwse2oDWhpV7/AbA1ggVv6285O8H4/vOUOzC43 eVV+M/tnVjurCLPhxEYa/6CWJGdmMckMsP3EPw2iGGWuGnmnm0RBTVqNb8Bzi7ynCQDE wlDaHQqDvq3JEB05Qrbi85B5L0Ru4jyUfrziz46InIiQMQaoetznjaPc55avsJLo3Vj6 M5sQ== X-Gm-Message-State: AOUpUlG8hWrLunu3f0U6HkyVF/jyAIKY6/LS9qKPlIrkoISqrxJ5Dosu BddA5RynpG7RZOiIrCLs+6zSKxgxJ0w= X-Google-Smtp-Source: AAOMgpcCIvjkpHkDAWjZWhwW+X1DkN1+SwWOlyVwWBD/TU7QORTduuLahPUAkTP6wasTVhQWLc7lPw== X-Received: by 2002:a1c:4887:: with SMTP id v129-v6mr3666997wma.129.1532686686306; Fri, 27 Jul 2018 03:18:06 -0700 (PDT) Received: from localhost ([2a00:23c5:be94:4600:7b12:f8a0:fd52:f87d]) by smtp.gmail.com with ESMTPSA id w62-v6sm4135125wmg.46.2018.07.27.03.18.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 03:18:05 -0700 (PDT) From: luca.boccassi@gmail.com To: Bruce Richardson Cc: dpdk stable Date: Fri, 27 Jul 2018 11:17:43 +0100 Message-Id: <20180727101748.30228-7-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180727101748.30228-1-luca.boccassi@gmail.com> References: <20180724160752.20287-34-luca.boccassi@gmail.com> <20180727101748.30228-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'examples/exception_path: fix out-of-bounds read' has been queued to LTS release 16.11.8 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: Fri, 27 Jul 2018 10:18:06 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/29/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 80b172eae686ac21e880b13d36edad8c7cf3db96 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Mon, 16 Jul 2018 17:03:47 +0100 Subject: [PATCH] examples/exception_path: fix out-of-bounds read [ upstream commit 4341adf272144689540a8e0f615f12eef7e21109 ] When printing out stats from the exception_path app, all possible lcore_ids are iterated. However, the app only supports up to 64 cores. To prevent possible errors, and to remove coverity warnings, explicitly check for out-of-range lcore ids before printing. Coverity issue: 268335 Fixes: af75078fece3 ("first public release") Signed-off-by: Bruce Richardson --- examples/exception_path/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c index e70549bee..9ab5054e3 100644 --- a/examples/exception_path/main.c +++ b/examples/exception_path/main.c @@ -165,6 +165,9 @@ print_stats(void) " Lcore Port RX TX Dropped on TX\n" "------- ------ ------------ ------------ ---------------\n"); RTE_LCORE_FOREACH(i) { + /* limit ourselves to application supported cores only */ + if (i >= APP_MAX_LCORE) + break; printf("%6u %7u %13"PRIu64" %13"PRIu64" %16"PRIu64"\n", i, (unsigned)port_ids[i], lcore_stats[i].rx, lcore_stats[i].tx, -- 2.18.0