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=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 080E6C3A59B for ; Fri, 30 Aug 2019 18:30:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5E8123430 for ; Fri, 30 Aug 2019 18:29:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Lf4dnyCz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbfH3S36 (ORCPT ); Fri, 30 Aug 2019 14:29:58 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:44518 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727959AbfH3S35 (ORCPT ); Fri, 30 Aug 2019 14:29:57 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7UITZJx130598; Fri, 30 Aug 2019 18:29:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2019-08-05; bh=UROzgxy4gwf+lssO4y/eZXZsSZiY/0z4fQU2UC97ndA=; b=Lf4dnyCzWL3fS3f0gm1PAaWpm7EUKZKbnVRev2it3WLu4t0oqrNaZKZ9sHbqyaLn9X+y +Thg3BVXbHuRHTNG4STdIU9CPCMfUot9gnEtdzJutnsxvhtJTjDFMGtBvMBsLefG6fRi vjT8xr7s4i4zZuipMYaj4jLDwkhwoy6Uelj25jpAenZRKtvg8i6fLp7suQpGd0zFjwkP A/gd4kBBfLZc8xIXXgqP/VeROgA6XJ4T/jeLhT3g5cSCpkwMwsLcGNx2M7vq0eeephII F6StdMwKBz4MYm8sEBdNhUjBiNbR/dKYiRdFwsUkm9AT1Y2tP/uhsFVpRWy7TPYYp/Ih TQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2uq94j800t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Aug 2019 18:29:55 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7UIIOuG152476; Fri, 30 Aug 2019 18:27:51 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 2upc8xsufx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Aug 2019 18:27:51 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x7UIRogF011053; Fri, 30 Aug 2019 18:27:51 GMT Received: from anon-dhcp-153.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 30 Aug 2019 11:27:50 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: qedr memory leak report From: Chuck Lever In-Reply-To: <93085620-9DAA-47A3-ACE1-932F261674AC@oracle.com> Date: Fri, 30 Aug 2019 14:27:49 -0400 Cc: linux-rdma Content-Transfer-Encoding: 7bit Message-Id: <13F323F2-D618-46C3-BE1B-106FD2BEE7F4@oracle.com> References: <93085620-9DAA-47A3-ACE1-932F261674AC@oracle.com> To: Michal Kalderon X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9365 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908300177 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9365 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908300177 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org > On Aug 30, 2019, at 2:03 PM, Chuck Lever wrote: > > Hi Michal- > > In the middle of some other testing, I got this kmemleak report > while testing with FastLinq cards in iWARP mode: > > unreferenced object 0xffff888458923340 (size 32): > comm "mount.nfs", pid 2294, jiffies 4298338848 (age 1144.337s) > hex dump (first 32 bytes): > 20 1d 69 63 88 88 ff ff 20 1d 69 63 88 88 ff ff .ic.... .ic.... > 00 60 7a 69 84 88 ff ff 00 60 82 f9 00 00 00 00 .`zi.....`...... > backtrace: > [<000000000df5bfed>] __kmalloc+0x128/0x176 > [<0000000020724641>] qedr_alloc_pbl_tbl.constprop.44+0x3c/0x121 [qedr] > [<00000000a361c591>] init_mr_info.constprop.41+0xaf/0x21f [qedr] > [<00000000e8049714>] qedr_alloc_mr+0x95/0x2c1 [qedr] > [<000000000e6102bc>] ib_alloc_mr_user+0x31/0x96 [ib_core] > [<00000000d254a9fb>] frwr_init_mr+0x23/0x121 [rpcrdma] > [<00000000a0364e35>] rpcrdma_mrs_create+0x45/0xea [rpcrdma] > [<00000000fd6bf282>] rpcrdma_buffer_create+0x9e/0x1c9 [rpcrdma] > [<00000000be3a1eba>] xprt_setup_rdma+0x109/0x279 [rpcrdma] > [<00000000b736b88f>] xprt_create_transport+0x39/0x19a [sunrpc] > [<000000001024e4dc>] rpc_create+0x118/0x1ab [sunrpc] > [<00000000cca43a49>] nfs_create_rpc_client+0xf8/0x15f [nfs] > [<00000000073c962c>] nfs_init_client+0x1a/0x3b [nfs] > [<00000000b03964c4>] nfs_init_server+0xc1/0x212 [nfs] > [<000000001c71f609>] nfs_create_server+0x74/0x1a4 [nfs] > [<000000004dc919a1>] nfs3_create_server+0xb/0x25 [nfsv3] > > It's repeated many times. > > The workload was an unremarkable software build and regression test > suite on an NFSv3 mount with RDMA. Also seeing one of these per NFS mount: unreferenced object 0xffff888869f39b40 (size 64): comm "kworker/u28:0", pid 17569, jiffies 4299267916 (age 1592.907s) hex dump (first 32 bytes): 00 80 53 6d 88 88 ff ff 00 00 00 00 00 00 00 00 ..Sm............ 00 48 e2 66 84 88 ff ff 00 00 00 00 00 00 00 00 .H.f............ backtrace: [<0000000063e652dd>] kmem_cache_alloc_trace+0xed/0x133 [<0000000083b1e912>] qedr_iw_connect+0xf9/0x3c8 [qedr] [<00000000553be951>] iw_cm_connect+0xd0/0x157 [iw_cm] [<00000000b086730c>] rdma_connect+0x54e/0x5b0 [rdma_cm] [<00000000d8af3cf2>] rpcrdma_ep_connect+0x22b/0x360 [rpcrdma] [<000000006a413c8d>] xprt_rdma_connect_worker+0x24/0x88 [rpcrdma] [<000000001c5b049a>] process_one_work+0x196/0x2c6 [<000000007e3403ba>] worker_thread+0x1ad/0x261 [<000000001daaa973>] kthread+0xf4/0xf9 [<0000000014987b31>] ret_from_fork+0x24/0x30 Looks like this one is not being freed: 514 ep = kzalloc(sizeof(*ep), GFP_KERNEL); 515 if (!ep) 516 return -ENOMEM; -- Chuck Lever