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=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 6555EC4321A for ; Thu, 27 Jun 2019 21:16:12 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id ECC48208CB for ; Thu, 27 Jun 2019 21:16:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="CMYCeJtD"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="b53alnKI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECC48208CB 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 5DE1A2B82; Thu, 27 Jun 2019 23:16:10 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 371511E20; Thu, 27 Jun 2019 23:16:08 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A64FF220CB; Thu, 27 Jun 2019 17:16:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 27 Jun 2019 17:16:07 -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=y5BgeXs2VVqV1VYeo7fzEWDJZiUXDGt5ukfOt7rPsHs=; b=CMYCeJtDkYGM +f/JlPpAXZYzmFHhEVMPCR8B9gCBKKdd+PpQEJdWzs9PSde7pLe2mSsI/aXgI9+m RX26X8tuGTdq4XmZSAfZqmJzLjclesFo0OH2B6GlvOzeTbaskNdKFCrH25202uV2 9PFnWeufOsxu4UUQb4qRBnUuiflBNds= 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=y5BgeXs2VVqV1VYeo7fzEWDJZiUXDGt5ukfOt7rPs Hs=; b=b53alnKIxiuJBVJkAYxVw8HjEHkUGCH9kaM8ucwV9Z4KaJ4wkMURkg37D Ok5kDhfFa9eS7j13bjaWOMtffEIyCpjyqcZR580r+Mvtb6nFNOF9e/1Mg/mmowME XNAG8+84OMmRd1nzJBWHWFiV7UKE+4lrvTlV0Hv516e5RuYdkJT9pMkj+glL9MqK sXE7LaVKpxDy618iZzomt7ETUUFLN3h4go4LkJZQ98IzSHfv40NipPcWh+VJ5i+p lyKPDNSyimOQ+mfKkeaIDBvpiiTDRzav2tpPffS/OIN5+jRN0SjMBLZHdCzwWGYP 5sOSliNBRpwZ00ym2VVKkcmgRLwVQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekgdduieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuff homhgrihhnpeguphgukhdrohhrghenucfkphepjeejrddufeegrddvtdefrddukeegnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtne cuvehluhhsthgvrhfuihiivgeptd 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 D637580063; Thu, 27 Jun 2019 17:16:05 -0400 (EDT) From: Thomas Monjalon To: Konstantin Ananyev Cc: dev@dpdk.org, michel@digirati.com.br, stable@dpdk.org Date: Thu, 27 Jun 2019 23:16:04 +0200 Message-ID: <1574152.yE7rOHmIcX@xps> In-Reply-To: <20190621142649.14125-1-konstantin.ananyev@intel.com> References: <20190621142649.14125-1-konstantin.ananyev@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] bpf: fix invalid array size 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" 21/06/2019 16:26, Konstantin Ananyev: > Array ins_chk in lib/librte_bpf/bpf_validate.c has 255 entries. > So the instruction with opcode == 255 will reading beyond array > boundaries. > For more details please refer to: > https://bugs.dpdk.org/show_bug.cgi?id=283 > > Fixes: 6e12ec4c4d6d ("bpf: add more checks") > Cc: stable@dpdk.org > > Reported-by: Michel Machado > Signed-off-by: Konstantin Ananyev Applied, thanks