From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from quartz.orcorp.ca ([184.70.90.242]:57352 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751714AbbHSRqX (ORCPT ); Wed, 19 Aug 2015 13:46:23 -0400 Date: Wed, 19 Aug 2015 11:46:14 -0600 From: Jason Gunthorpe To: Christoph Hellwig Cc: Doug Ledford , Sean Hefty , Hal Rosenstock , Eli Cohen , linux-rdma@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/3] IB/uverbs: reject invalid or unknown opcodes Message-ID: <20150819174614.GC22646@obsidianresearch.com> References: <1440002254-795-1-git-send-email-hch@lst.de> <1440002254-795-2-git-send-email-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1440002254-795-2-git-send-email-hch@lst.de> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Aug 19, 2015 at 06:37:32PM +0200, Christoph Hellwig wrote: > We have many WR opcodes that are only supported in kernel space > and/or require optional information to be copied into the WR > structure. Reject all those not explicitly handled so that we > can't pass invalid information to drivers. > > Cc: stable@vger.kernel.org > Signed-off-by: Christoph Hellwig > drivers/infiniband/core/uverbs_cmd.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) Oh yes, this is absolutely needed for -stable. Reviewed-by: Jason Gunthorpe AFAIK, this path is rarely (never?) actually used. I think all the drivers we have can post directly from userspace. Jason