From patchwork Sun Apr 23 01:26:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhijian Li (Fujitsu)" X-Patchwork-Id: 13221145 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F23EAC7618E for ; Sun, 23 Apr 2023 01:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjDWB1b (ORCPT ); Sat, 22 Apr 2023 21:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjDWB1a (ORCPT ); Sat, 22 Apr 2023 21:27:30 -0400 Received: from mail1.bemta34.messagelabs.com (mail1.bemta34.messagelabs.com [195.245.231.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14E0310E2; Sat, 22 Apr 2023 18:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.com; s=170520fj; t=1682213247; i=@fujitsu.com; bh=q8VRNeqr3EzQLYWmemAVzstBD0W+cAm/QdJIUQrLxOs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=aSBjJlGrF+mkkCk+0LdlH8rMxJNKRRdqZ65YCqyN4OCDI+PvyDkSUyTMDeIS2i1H0 Jpjarf4+ywBAWyhTl3qHN/J4ubuXXfeNf83wyLzV1GCVUlC9wRTxL9Z0HGR2pxBFEg SfROSGP4Jzu2TLjAhtKAJP0geTzhSU1voG8Uw78zftkMoXiij6Gcww1BU95QpEcdB1 pFW8w4JNVbSpYpGzpvgvmridzipOtCLoVpu/WgkpCvZOQ2Wpne8/NYnUMLKHW4seY4 nL4I5R6NW/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vdns+ToN1tpHayxO7JT2TQ36 clhtQc8ECfdeZa9J2x4fVTlWvWbf5Cf3ajdGan8IvqvEUpyRaKjFXFScCAB9YHZ+cQMAAA== X-Env-Sender: lizhijian@fujitsu.com X-Msg-Ref: server-20.tower-565.messagelabs.com!1682213245!159966!1 X-Originating-IP: [62.60.8.97] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.105.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1217 invoked from network); 23 Apr 2023 01:27:25 -0000 Received: from unknown (HELO n03ukasimr01.n03.fujitsu.local) (62.60.8.97) by server-20.tower-565.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 23 Apr 2023 01:27:25 -0000 Received: from n03ukasimr01.n03.fujitsu.local (localhost [127.0.0.1]) by n03ukasimr01.n03.fujitsu.local (Postfix) with ESMTP id D7C4C100226; Sun, 23 Apr 2023 02:27:24 +0100 (BST) Received: from R01UKEXCASM223.r01.fujitsu.local (R01UKEXCASM223 [10.182.185.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by n03ukasimr01.n03.fujitsu.local (Postfix) with ESMTPS id CAF6B1001BF; Sun, 23 Apr 2023 02:27:24 +0100 (BST) Received: from d3e152dc4f88.localdomain (10.167.226.45) by R01UKEXCASM223.r01.fujitsu.local (10.182.185.121) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sun, 23 Apr 2023 02:27:21 +0100 From: Li Zhijian To: , , , , CC: , , Li Zhijian Subject: [PATCH for-next v2 0/3] RDMA/rtrs: bugfix and cleanups Date: Sun, 23 Apr 2023 01:26:49 +0000 Message-ID: <1682213212-2-1-git-send-email-lizhijian@fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.226.45] X-ClientProxiedBy: G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) To R01UKEXCASM223.r01.fujitsu.local (10.182.185.121) X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org V2: - Add new patch2 to fix a memory leak - rewrite original patch2 to patch3 by refactoring the cleanup path instead of introducing a new flag - Drop original patch3: RDMA/rtrs: Fix use-after-free in rtrs_clt_rdma_cm_handler The problem it tried to addressing doesn't appear after the new patch3 where it adjust the cleanup order It's trying to fix 1 issue triggered by the following script which connect/disconnect rnbd frequently. # cat rnbd-self.sh #!/bin/bash /root/rpma/tools/config_softroce.sh eth0 modprobe rnbd_server modprobe rnbd_client while true; do echo "sessname=xyz path=ip: device_path=/dev/nvme0n1" > /sys/devices/virtual/rnbd-client/ctl/map_device for i in /sys/block/rnbd*/rnbd/unmap_device do echo "normal" > $i done done Li Zhijian (3): RDMA/rtrs: remove duplicate cq_num assignment RDMA/rtrs: Fix the last iu->buf leak in err path RDMA/rtrs: Fix rxe_dealloc_pd warning drivers/infiniband/ulp/rtrs/rtrs-clt.c | 56 +++++++++++--------------- drivers/infiniband/ulp/rtrs/rtrs.c | 4 +- 2 files changed, 26 insertions(+), 34 deletions(-)