Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4299855rwl; Wed, 28 Dec 2022 02:05:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXtsaoAYY775muoTmo+gxo8HOJK7ABMKxwBiLae1K9SZ3l/zvboAcAmEByTeCGyv4i4eo9TF X-Received: by 2002:aa7:d513:0:b0:462:9baa:7507 with SMTP id y19-20020aa7d513000000b004629baa7507mr21100242edq.8.1672221914488; Wed, 28 Dec 2022 02:05:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672221914; cv=none; d=google.com; s=arc-20160816; b=wJWkV0M+WNp6XBmDUXQNpNIqWPnRA+G3cGB0n2cE8pMyrFB/Vo58blRkmPaHeLzEG2 eFwB/i/B5BWRG67oK9IVm2UP4DOgVRWfRxQGYTyTg79J1FWPbXYU3BizMEQ+7D82SXSK ekVCl4LQbjppdNq3NJSii+7vXrsePBbHEHbA7K/UdjcsvGs+EwN9x8MyZBNH6HfcXLCS ybS2TNn5rCowenCYUizkEU68HN8adn3EK31ivbhSZLITyft/OqnEvx62s5YQ3IYPsP1R 97JuwehvTgRBkZC44Gxpxs8fEyOBDV4DZXkTND5xaMpW8lnw/aSjDAZJLu15kNWC6FHb NiBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:to:from:dkim-signature; bh=28gF9wDNgO/FuO9z/aqHV29t3Zhre6DiCUUi/RelYa8=; b=aya45lkZ4ZcL23lwcEwhmHeLCx0LmpglEr/eUCEN0EGOiBxvzPqM6g47aylKqa7TKJ 5E18NfaoS7ULjBKmRLssxJCyS54oB2zMAP4j/1uqnK0KisfG71qU9KsGjfQBhHBcBePc BerkBiZw8yPXWiBI8l/d7dYgP3qdbEDvm6mneiUp2xQwiW9Tx/yPjrZPrbpguE4mBEY+ H7kAK3gO2kvMbC+9qQ4HQsQdJ0jlpCRbLVR9aLIGeqsh1P8yzpSo4gnc0+B5QZX1hKWx 8ffy0ruPtJ6mS2SndMiNHElrU71uh1IL38KPiXb/kAFbSW6RCLf4MWrMWAXGCPeaO1F6 w3+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r0d7bSLM; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a50cd0a000000b0046bdaa564bdsi12484969edi.419.2022.12.28.02.04.55; Wed, 28 Dec 2022 02:05:14 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=r0d7bSLM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232565AbiL1J7T (ORCPT + 64 others); Wed, 28 Dec 2022 04:59:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbiL1J7S (ORCPT ); Wed, 28 Dec 2022 04:59:18 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46FD465B9; Wed, 28 Dec 2022 01:59:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BFBAAB8125D; Wed, 28 Dec 2022 09:59:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D854AC433EF; Wed, 28 Dec 2022 09:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672221554; bh=qDFmQ7WS+lHFEiuhdUxGz7qEzX+aRjlUsKSeYOaC1Mk=; h=From:To:In-Reply-To:References:Subject:Date:From; b=r0d7bSLMBDnBipGWUXFsUCCYlBZTA/29DyuatRWdC8OHXbP6irqUuP4exCly9k3H4 1+KmvEeAEMvRUDkhvp+nkRRGs3ydxCrJsBUj9jN4w9T+gmlQt43nbPQPvLi7I7Dkkv ex8jrbPM3YQYwCqeeJ1DBU3Bum9gMhaTCPnkvOf5Fsx6l8Bjqp2ljEJ+Ym59IJuU7S dICrALpTDU8f0aNWGW/v2spTTiNbb9gJQ70tPUjo2c0/YSwFlMTgU+ifmILBYESDHC idxlG+EwqJtQf0DewgB1hR/h05+XIuescu1bhhJn5fHJBGm/DHkW6vq0jTEPGouVoi H6x6ggLWeCdmA== From: Leon Romanovsky To: linux-rdma@vger.kernel.org, Kai Shen , Yang Li , linux-kernel@vger.kernel.org, Wei Yongjun , Cheng Xu , Miaoqian Lin , Jason Gunthorpe In-Reply-To: <20221220121139.1540564-1-linmq006@gmail.com> References: <20221220121139.1540564-1-linmq006@gmail.com> Subject: Re: [PATCH] RDMA/erdma: Fix refcount leak in erdma_mmap Message-Id: <167222155015.52802.7618270448671677586.b4-ty@kernel.org> Date: Wed, 28 Dec 2022 11:59:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-87e0e X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, 20 Dec 2022 16:11:39 +0400, Miaoqian Lin wrote: > rdma_user_mmap_entry_get() take reference, we should release it when not > need anymore, add the missing rdma_user_mmap_entry_put() in the error > path to fix it. > > Applied, thanks! [1/1] RDMA/erdma: Fix refcount leak in erdma_mmap https://git.kernel.org/rdma/rdma/c/ee84146c05ad23 Best regards, -- Leon Romanovsky