Re: [PATCH rdma-rc] RDMA/ucma: Don't copy data for unknown AF family

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 28, 2018 at 12:29:54PM -0600, Jason Gunthorpe wrote:
> On Wed, Mar 28, 2018 at 09:22:25PM +0300, Leon Romanovsky wrote:
>
> > > rdma_addr_size(&ctx->cm_id->route.addr.dst_addr) is not user
> > > input, it is part of the kernel state at this point. Right?
> > >
> > > Can rdma_addr_size even return 0 at this point?
> > >
> > > If yes, then we should return EINVAL, but that is to make the API sane
> > > for the user not to protect the kernel.
> >
> > I'm not near code now, but from what I remember, the user can call to
> > rdma_create_id(), it will create new ctx->cm_id but with addr zeroed,
> > because ucma_alloc_ctx() uses kzalloc.
> >
> > After that this user will call it ucma_query() and will hit this flow.
>
> Okay, sure, but the memcpy(a,b,0) isn't going to trigger KASN..

I disagree with you, but it doesn't matter here.

>
> This can't be the syzkaller bug, right? I can drop the reported-by?

I'm fine with any solution which will allow us to "close" this issue.

Thanks

>
> Jason

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux