From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38DD5C433ED for ; Wed, 19 May 2021 05:27:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0606761355 for ; Wed, 19 May 2021 05:27:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237125AbhESF26 (ORCPT ); Wed, 19 May 2021 01:28:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:59152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbhESF25 (ORCPT ); Wed, 19 May 2021 01:28:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1312D601FA; Wed, 19 May 2021 05:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621402057; bh=R2CqO90CmXrJc4sOmOG/G284wQWK7uB3qAUY9i++Aes=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GcoQKDoXyy94pFNGuxECmvqjM9h89YNOxOEblwZTVrdDqJcoLjfTF9eb5dxKC0Bah I+b5/RoNg0P9nI44IOq8S7Dzf0o+NZ0bqBJbwYZ9MxlpqRv+rr3GkEw2P6xmvx5gLR I65DmeMsq0mqhhO0CBL3iONU0jDbvbDIkq97ld73BR0kOk5gVo//TXV+58n55rzg7l nKjuQ0LV3m7+O9q4Gv4E1ICQ5I8hey/UZp0gQh6mn0ZVF4OHzoN+8+u2JcMvagHbXI kn/liM35P05AOrZlfEPwskB845Liqdhc6g558vTMhpBx8pPpsRUsbIqNJCttRJUKA3 OyYLWNK+L42xg== Date: Wed, 19 May 2021 08:27:34 +0300 From: Leon Romanovsky To: "Saleem, Shiraz" Cc: Doug Ledford , Jason Gunthorpe , Jiapeng Chong , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Yishai Hadas Subject: Re: [PATCH rdma-rc v1] RDMA/core: Sanitize WQ state received from the userspace Message-ID: References: <0433d8013ed3a2ffdd145244651a5edb2afbd75b.1621342527.git.leonro@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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 > > > > 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