Re: [PATCH for-next 03/20] RDMA/rtrs-clt: No need to check queue_depth when receiving

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

 



On Mon, May 10, 2021 at 1:53 PM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
>
> On Mon, May 10, 2021 at 01:00:33PM +0200, Haris Iqbal wrote:
> > On Sun, May 9, 2021 at 1:24 PM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
> > >
> > > On Mon, May 03, 2021 at 01:48:01PM +0200, Gioh Kim wrote:
> > > > From: Gioh Kim <gi-oh.kim@xxxxxxxxxxxxxxx>
> > > >
> > > > The queue_depth size is sent from server and
> > > > server already checks validity of the value.
> > >
> > > Do you trust server? What will be if server is not reliable and sends
> > > garbage?
> >
> > Hi Leon,
> >
> > The server code checks for the queue_depth before sending. If the
> > server is really running malicious code, then the queue_depth is the
> > last thing that the client needs to worry about.
>
> Like what? for an example?

Like accessing compromised block devices. If the queue_depth is
garbage, the client would fail at allocation with ENOMEM; thats it.

>
> Thanks



[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