All of lore.kernel.org
 help / color / mirror / Atom feed
From: Haggai Eran <haggaie@mellanox.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagig@dev.mellanox.co.il>,
	Doug Ledford <dledford@redhat.com>,
	Sean Hefty <sean.hefty@intel.com>,
	Hal Rosenstock <hal.rosenstock@gmail.com>,
	Eli Cohen <eli@mellanox.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH 1/3] IB/uverbs: reject invalid or unknown opcodes
Date: Mon, 24 Aug 2015 09:52:14 +0300	[thread overview]
Message-ID: <55DABF1E.2050804@mellanox.com> (raw)
In-Reply-To: <20150822082516.GC1857@lst.de>

On 22/08/2015 11:25, Christoph Hellwig wrote:
> On Sat, Aug 22, 2015 at 06:38:47AM +0000, Haggai Eran wrote:
>> It looks like the default case in the non-UD branch is currently used to handle plain IB_WR_SEND operations, so the patch would cause these to return an error.
> 
> Indeed.  It's handled fine in patch 2 which splits up the case, but
> will be incorrectly rejected with just this patch applied.

Okay. Maybe you can just add a case for IB_WR_SEND in this patch to
avoid hurting bisectability.

Looking at the uverbs part in patch 2, I think the changes are okay. I
noticed there's a (__be32 __force) cast of the immediate data from
userspace (it was already in the existing code). I wonder, why not
define the field in the uapi struct as __be32 in the first place?

Haggai

  reply	other threads:[~2015-08-24  6:52 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19 16:37 shrink struct ib_send_wr Christoph Hellwig
     [not found] ` <1440002254-795-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2015-08-19 16:37   ` [PATCH 1/3] IB/uverbs: reject invalid or unknown opcodes Christoph Hellwig
2015-08-19 16:37     ` Christoph Hellwig
     [not found]     ` <1440002254-795-2-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2015-08-19 17:46       ` Jason Gunthorpe
2015-08-19 17:46         ` Jason Gunthorpe
2015-08-19 17:48         ` Christoph Hellwig
     [not found]           ` <20150819174802.GA13875-jcswGhMUV9g@public.gmane.org>
2015-08-19 17:54             ` Jason Gunthorpe
2015-08-19 17:54               ` Jason Gunthorpe
     [not found]               ` <20150819175425.GE22646-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-08-20  8:49                 ` Sagi Grimberg
2015-08-20  8:49                   ` Sagi Grimberg
     [not found]                   ` <55D594B3.7090807-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-08-20 22:30                     ` Steve Wise
2015-08-20 22:30                       ` Steve Wise
     [not found]         ` <20150819174614.GC22646-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-08-19 19:50           ` Hefty, Sean
2015-08-19 19:50             ` Hefty, Sean
2015-08-20  9:22             ` Christoph Hellwig
2015-08-20  8:52     ` Sagi Grimberg
     [not found]       ` <55D59553.4080306-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-08-22  6:38         ` Haggai Eran
2015-08-22  6:38           ` Haggai Eran
2015-08-22  8:25           ` Christoph Hellwig
2015-08-24  6:52             ` Haggai Eran [this message]
     [not found]               ` <55DABF1E.2050804-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-08-24  6:55                 ` Christoph Hellwig
2015-08-24  6:55                   ` Christoph Hellwig
     [not found]                   ` <20150824065501.GA31990-jcswGhMUV9g@public.gmane.org>
2015-08-24  7:59                     ` Haggai Eran
2015-08-24  7:59                       ` Haggai Eran
2015-08-25  8:55                       ` Christoph Hellwig
2015-08-19 16:37   ` [PATCH 3/3] IB: remove xrc_remote_srq_num from struct ib_send_wr Christoph Hellwig
     [not found]     ` <1440002254-795-4-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2015-08-19 17:48       ` Jason Gunthorpe
2015-08-20  8:57       ` Sagi Grimberg
2015-08-20  9:01   ` shrink " Sagi Grimberg
2015-08-26  9:00 shrink struct ib_send_wr V3 Christoph Hellwig
2015-08-26  9:00 ` [PATCH 1/3] IB/uverbs: reject invalid or unknown opcodes Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DABF1E.2050804@mellanox.com \
    --to=haggaie@mellanox.com \
    --cc=dledford@redhat.com \
    --cc=eli@mellanox.com \
    --cc=hal.rosenstock@gmail.com \
    --cc=hch@lst.de \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sagig@dev.mellanox.co.il \
    --cc=sean.hefty@intel.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.