Re: [PATCH rdma-rc v1] RDMA/core: Sanitize WQ state received from the userspace

From: Leon Romanovsky
Date: Wed May 19 2021 - 01:27:42 EST


On Tue, May 18, 2021 at 10:07:38PM +0000, Saleem, Shiraz wrote:
> > Subject: [PATCH rdma-rc v1] RDMA/core: Sanitize WQ state received from the
> > userspace
> >
> > From: Leon Romanovsky <leonro@xxxxxxxxxx>
> >
> > The mlx4 and mlx5 implemented differently the WQ input checks.
> > Instead of duplicating mlx4 logic in the mlx5, let's prepare the input in the central
> > place.
>
> Maybe some more verbiage about what the bug was in mlx5 that prompted this patch would
> be good since this an -rc fix.

It can go to -next too, the bug is that we didn't check for validity of
state input in mlx5. It is not real bug because our FW checked that, but
still worth to fix.

I'll add this.

Thanks

>
> Shiraz