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
Attachment:
signature.asc
Description: PGP signature