Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4024070rwr; Sat, 22 Apr 2023 18:31:09 -0700 (PDT) X-Google-Smtp-Source: AKy350arctj7NWO2yaCWhxci9GYz/nngDSITfCtgXkJZbFKYmJpeKzpCrzS9XOlVtffsAGI/CK/O X-Received: by 2002:a17:902:e544:b0:1a6:cf4b:4d7d with SMTP id n4-20020a170902e54400b001a6cf4b4d7dmr11808292plf.2.1682213468879; Sat, 22 Apr 2023 18:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682213468; cv=none; d=google.com; s=arc-20160816; b=lC3+Ys3ZKaHmWF8KXakbn57zzuUKK7RDgv98EEiZCByopgKSosu2Lqjjn9QyytmNwD KNeFeuVDHE+2A9+l/mdROfH7KaLDsXlSuj8m/iXBHb4PprnonwxDJT5t7dhZ6eKiNxUX ILYH9mwrF4Otq2WZz8pc2qHsv5sZenUq+3RWrA4GsnzgTuV0KPQqySFBM2tX5TF7MPaN GDT7lGrKTYvl1ih0Lz8YKeYieM6/H4G8s4bK7cEk/1XA+/5N8iK9rq/p8JyWPkWCgYbO hu+8wjx7j8eKxYIHRmLiY1GIuqOAk/fM9MGJLZA09Pgx3/MoE5qAWyR0eLqgMq0jWZfW brLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=q8VRNeqr3EzQLYWmemAVzstBD0W+cAm/QdJIUQrLxOs=; b=YY32yry9ayKIk33/SjRL/LA5TyKwMq2EuKiGXuUZgH2BmCZ3M/yrz0hMA15ph+ngiI H3TLZgeBO/VD5xtfFXXfvG3ar0eMaONaRG2VTOQG9tSkvX236RhscKla10NMg7kCQNN5 iL5wUBa8dV42p/OVhHCa34QekTFTaBfMNlNbxOH8dltPMwmq/vvbPNymrEy1jfU8s092 oYI/Hjg7K9tEFcMmgKgEn3Byc6++39RRcVUWFFwUDm1+RmTGxRPvcDHHzXrqZDjSGLiJ DC420kQKfCsuMSdXjK6PBLAgaHNkU7CQpN1WWucXQf+WEdDsjU3MoxCW67LNVSbxz0SW Ns0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fujitsu.com header.s=170520fj header.b=aSBjJlGr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a170903018500b0019e4154578esi8702970plg.76.2023.04.22.18.30.57; Sat, 22 Apr 2023 18:31:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fujitsu.com header.s=170520fj header.b=aSBjJlGr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230051AbjDWB1c (ORCPT + 99 others); Sat, 22 Apr 2023 21:27:32 -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=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YzSPLg2WLRfYpSVEuZlZGBgEOIpSC3KzSxBlX/ FKM7BqCTMqwcyhSczrwRu+iugxUxAi3dxgy0uSURISTUwuevwLF8z659/0LfmyafVDnO+vZrd eZFDgM3ZUeZk45PZG9NTz0qG3lx33Krcz2ZK2YKtluv2XotW2GxdyPx/iV/A5Nkrn+2sfaV2a vLmvC+Kt8s+RKas8E50mnmRnY1hTt/Txu1if85m2i/UXHrj102dsOtBZ+u5nly6KnZgO3vbRR m+WD+2Jb8/Hlm29YWS2fSGObEafze/zX97rEnL4XbHoa1dm+d9MeiMYv7P9kru0Jsn8XJiwbw NH2q4jgtk+XV9EE7rkBI93r1+78eDceZd8oGHLsheZ/EJ/vb0vdns+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 Content-Type: text/plain 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.29.2