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=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT autolearn=ham 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 E3295C04E53 for ; Wed, 15 May 2019 11:34:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B3D4C21473 for ; Wed, 15 May 2019 11:34:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557920067; bh=UKdAqxo5hGOoDMAl9NLSkpt4zg9p5OCAItHb4xUscto=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=ws7ISVa0W3ntzu3WNziTryGgGq5Y9o8BDUAcGxrOzuWfhkn4CIMlJUz3dN7d1mHT+ O8TaYKD8RlW8YK/GK6odQxTO8nA5lhbBYb+Tx1UF1N90Sjkj1uEi96HMbJc7acymL4 N+Pn9ePL8bvYwxY8HmHc2S7v/N67VkJwigwR6Raw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733023AbfEOLe0 (ORCPT ); Wed, 15 May 2019 07:34:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:46472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727283AbfEOLeZ (ORCPT ); Wed, 15 May 2019 07:34:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 522922053B; Wed, 15 May 2019 11:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557920064; bh=UKdAqxo5hGOoDMAl9NLSkpt4zg9p5OCAItHb4xUscto=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0INscPJUwspjjab4+Ys0uyPkmH3TYHvz0F5xmbtnQ+A6D3MDwqBqNrbGh64zhPHAH qkrpQ3WdcqkqAIQNM97IqfuuML5BH9yZH5XjOzjncOvYvGckk/vCJnSBkG+x4QATpQ Te7wIAaisgKKB5rhWXwslNrfah0Qp0vHk/YHWt+4= Date: Wed, 15 May 2019 13:30:19 +0200 From: Greg Kroah-Hartman To: Christophe Leroy Cc: "Tobin C. Harding" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Remove double free Message-ID: <20190515113019.GB11749@kroah.com> References: <20190515090750.30647-1-tobin@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 15, 2019 at 11:26:03AM +0200, Christophe Leroy wrote: > kobject_put() released index_dir->kobj Yes, but what is that kobject enclosed in? > but who will release 'index' ? The final kobject_put() will do that, see cacheinfo_create_index_dir() for the details. And please do not top-post, you lost all context. greg k-h