[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-rdma
Subject:    Re: [PATCH v5 06/13] SIW application interface
From:       Leon Romanovsky <leon () kernel ! org>
Date:       2019-02-28 19:25:50
Message-ID: 20190228192550.GQ15253 () mtr-leonro ! mtl ! com
[Download RAW message or body]


On Thu, Feb 28, 2019 at 05:57:55PM +0200, Gal Pressman wrote:
> On 28-Feb-19 17:38, Bernard Metzler wrote:
> >>> +
> >>> +		rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp));
> >>
> >> All ib_copy_from/to_udata should copy the minimum of sizeof() and
> >> udata->inlen/outlen. Applies to other places in the code as well.
> >>
> > Hmmm, shouldn't better the rdma core take care of that?
>
> Sounds like a good idea, I would love to see such patch :).
> Anyway, this should be fixed here or in the core code.

If you are talking about drivers/infiniband/core/*, so yes, it was
discussed several times, but no one actually sent a patch.

Thanks

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic