Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1036079ybt; Wed, 8 Jul 2020 19:05:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5bVv0lOdBYOw/ZxkqHfanXqfQXMg1cATEmIsRvhb2u1zh+NSiSDEygYOC8hY5bB5mrqN2 X-Received: by 2002:aa7:d043:: with SMTP id n3mr72542732edo.102.1594260329212; Wed, 08 Jul 2020 19:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594260329; cv=none; d=google.com; s=arc-20160816; b=Sg4hOZDiJ3hy8XOcMPkJgrF7q5UDt6+YVnE3UpKxFWg5BgKn6ailjd2pXZpv57+n7x xI9c8edNGhABwsm2uFd+n0B9LZxi6K+QdYzv5OHGoYJu7gyRKa+IetnalVKilaq6uvyO uNVAJyzG/CtYtyUmtFM1tVfmnmqzG9bFGZqhQXXn4etES9huAgUWCAOq16jb3xIsyS3W K/pN1m8jTn2QRJ83tf98TiOdf/NLN8VnYd8B3wdYWEo4bVAQs28qwW/hlI1MWVuEkwgm ATluRxUI0P0YXfvpTYsNq/q6JruyuH6PmPIpFULHpA6p0kBYCuSNSfpJz2OfDKfbohAS r5RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=33GfuHrr9xu2ArYN9s8Nf8gyHSSYEi6KGvWOiY/YSDA=; b=n5pYAn6YW5a9lGRIowpzsRbo6D+0YiHs4iVbyI+MlnxOJcqnwQU0b623M2vzVJZ9TI NxyXXa22QgAsCWwP5+Ii+kgTL91USujMnkmHoXoaakNPktALqZcQ74PLPyHW/e8PpEak kNjE/N6PyyZqNX3L60uO5QGHS+HIH29QzdFoQ01qlT92BfZXdTJ25iRQNpg8bKUn/5E6 7MaIKa2OVPmm8jJI1CAucXP/4/DCtLM666HfaYFhXLtjD1Wwn1sHi9vR2cq1RlGMxPQ6 GXO1MdLXFmCdcx3vtjPLHyLN57BNvupcWX8ZTR25lb3kTHql14Rj4hIU/VWrLsYf+oGU E1pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb9si990948ejb.176.2020.07.08.19.05.01; Wed, 08 Jul 2020 19:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726122AbgGICEl (ORCPT + 99 others); Wed, 8 Jul 2020 22:04:41 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:36770 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726072AbgGICEk (ORCPT ); Wed, 8 Jul 2020 22:04:40 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6E24292A9D235B4B7F6B; Thu, 9 Jul 2020 10:04:38 +0800 (CST) Received: from [127.0.0.1] (10.174.177.218) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Jul 2020 10:04:30 +0800 Subject: Re: [PATCH RESEND] 9p: Fix memory leak in v9fs_mount To: Dominique Martinet CC: , , , , , References: <20200615012153.89538-1-zhengbin13@huawei.com> <20200615102053.GA11026@nautica> From: "Zhengbin (OSKernel)" Message-ID: Date: Thu, 9 Jul 2020 10:04:30 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20200615102053.GA11026@nautica> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.177.218] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Is this OK? I don't see it on linux-next On 2020/6/15 18:20, Dominique Martinet wrote: > Zheng Bin wrote on Mon, Jun 15, 2020: >> v9fs_mount >> v9fs_session_init >> v9fs_cache_session_get_cookie >> v9fs_random_cachetag -->alloc cachetag >> v9ses->fscache = fscache_acquire_cookie -->maybe NULL >> sb = sget -->fail, goto clunk >> clunk_fid: >> v9fs_session_close >> if (v9ses->fscache) -->NULL >> kfree(v9ses->cachetag) >> >> Thus memleak happens. >> >> Signed-off-by: Zheng Bin > Thanks, will run tests & queue next weekend >