Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5341643ybi; Tue, 28 May 2019 11:21:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwcmrRY/Gr3QGhZLQGUHf+b0aSKvBi1/BtQlm3eaEc01ROrWCBkdHe2FVslJfTt01tQ+9i X-Received: by 2002:a63:5b5c:: with SMTP id l28mr88989379pgm.158.1559067712010; Tue, 28 May 2019 11:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559067712; cv=none; d=google.com; s=arc-20160816; b=CCt2JhKm9wJNCJm3nGSi/FKFaQIkzfxbKeFFLVlKPU3pH+IZo9Gnm86+eeJ+Ipj5du iRj1vQCjNSaeys0hLi03WCUl1bJS+i6s8vngSlIX7U7t01uN8pkX2gi+FNXILkmnGfIF 2OxmDnGV054sgCYDgU0KSCpQu5+6BBEst2MfwZtaTFTd6ReZ6IItT7kQXuCY6ccjDJAJ awe9+2/3xcb9iwWVaZlPBOHCBZrZDR7FJd8yIBSEaagftkP+dBdVyt+FvPnPALg8PMWK zzm0AFH2BAmmeMq7/Yr5i78r8uiT4lQYhzdQC58wUrwxP4ySVeVacvOp3Lvaw11YLMf2 7AwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=p/ZP6Jue6Y3UkX85XyEr8IRMM6jl+1wuY+GDILnBZJU=; b=Wa5NtUw0X/wz+hCF2pUZK1Whhd7wfk5q2JiOF66j57TPsjqeamR9cBbfSG3zhjuVWp LZUYj76AEI77jkbgFvqOIkeOYwV6vQOBDYE4rSRHl7JGq+zTNEmRITVPeSdm1x3WwCNq BUjsipbueA89pcHlhYBcilz/y3gMw6s64CTJ/0bmgh7xe5e7Z1BLrH3fOpctM2m0i0QP PImZoPsQQr0j8mDGQl+OqO/HFInMj6uTmzxDRiIaRSEmmdVEWzoHYUeMcJD4Bkev6fVs p+rN4zIw1G8qe4Cs0kdvZlU8rY2pgfWGMgjkOs7coI+vX2WvJVILMn1qOyI09GCPcy/E mE+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g20si22638061pgi.193.2019.05.28.11.21.36; Tue, 28 May 2019 11:21:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727983AbfE1SUV (ORCPT + 99 others); Tue, 28 May 2019 14:20:21 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:49522 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727428AbfE1SUV (ORCPT ); Tue, 28 May 2019 14:20:21 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d8]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 352F812DAD570; Tue, 28 May 2019 11:20:20 -0700 (PDT) Date: Tue, 28 May 2019 11:20:19 -0700 (PDT) Message-Id: <20190528.112019.816281435273023187.davem@davemloft.net> To: maxime.chevallier@bootlin.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, antoine.tenart@bootlin.com, thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, lkp@intel.com, dan.carpenter@oracle.com Subject: Re: [PATCH net-next] net: mvpp2: cls: Check RSS table index validity when creating a context From: David Miller In-Reply-To: <20190527115201.12721-1-maxime.chevallier@bootlin.com> References: <20190527115201.12721-1-maxime.chevallier@bootlin.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 28 May 2019 11:20:20 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Chevallier Date: Mon, 27 May 2019 13:52:01 +0200 > Make sure we don't use an out-of-bound index for the per-port RSS > context array. > > As of today, the global context creation in mvpp22_rss_context_create > will prevent us from reaching this case, but we should still make sure > we are using a sane value anyway. > > Reported-by: kbuild test robot > Reported-by: Dan Carpenter > Signed-off-by: Maxime Chevallier Applied.