Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp827118ybi; Fri, 24 May 2019 12:06:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMpfYeR24ehbxUf6oizoYTS2kXEpWmlHgfrkrto+2+eL5WvV4NFE4JbyWxvONYyasVog2/ X-Received: by 2002:a17:902:1347:: with SMTP id r7mr64364196ple.45.1558724802554; Fri, 24 May 2019 12:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558724802; cv=none; d=google.com; s=arc-20160816; b=d4YBTYiReJVSXI+X09AX5CuRZHME1g29CmwTbt52I7+Or2f1927r0oE/s5mki6zGLV GyeXTED62XogL0cb0uM2WFW6iEaYpOzuyYWliKKQvA2h29vXNu6lOJYVmFFPcZPOYUMt Pf5Q1mk91pT2gpgfs1EznVLok7qiiMdlwamwJ2bpVxrQQ/8jwRNUaT4DsA7NE7Ylj9lO UfUi27f7CxLsMGQB7JAtJ7eEKtrXN2jAAIedwdrOfcPZiWqaOBNRkSbNBnm0mHzMgJhF Bq3S4AXZIQNpVvVMdpyOGP1M3aN6/lnGVkf72BIUWJ4SSsSBCG2LCTt+YliL068Ahc+G CS/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vnhZbrrGeG321fDrz3riHB7WBiYI5heF19ePCQ1phs8=; b=gVh5jOu9FoVaNrvNmdjnsfEhFi7IKg3MBYZLM/Zh5nAKX0+lifaceFSKVS1w+Y5oRK Hy6BFSzmk38B7V3IQ3ykEveOyGFzhnikW3YWuznibnwW9rax1x/U+RpN1JuJa8BHwPZb +Cuw8hrByUpDZfxlkxjjIDioshN+IbRXoP2Oyaua8p1BM4kY1162gwQP8tbeUCs4nhXs iTQp8ZzHxik177HeIA6OEAMINfKiknIeN5VKP9WBjd0F71rDmYw21rRyEmSXoBmQ4dQ7 F9RPXs0AiAoO0HvnlhIqHdSiYexXL01hKTwpviS0mGXp0H7GJdTfdm6AVpap0h1dKSSn ALaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t4FjFl1k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 126si5806045pgc.2.2019.05.24.12.06.26; Fri, 24 May 2019 12:06:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t4FjFl1k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391510AbfEXTEM (ORCPT + 99 others); Fri, 24 May 2019 15:04:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:35910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfEXTEM (ORCPT ); Fri, 24 May 2019 15:04:12 -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 234CE21848; Fri, 24 May 2019 19:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558724651; bh=+Ljjnw/DvlVxiX3j7z/OH3g1FmEAAQfgPnF+JE7yyEE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t4FjFl1ktvIqAo8X88jpOJF7YZjvmLLSCRSz7PCaX+05g4bof96YnxWTsFwCK+avX g+YwoGbSB9RuJ00cvmFWNR0Kaq/Q1QMem4OW4PMGWR1kwgndtDvR+aiSveIfb9BUhu JGcnMHsH5co4wSc8kkZKHxY1M1zKOlH9YplhwAXg= Date: Fri, 24 May 2019 21:04:09 +0200 From: Greg KH To: Prateek Sood Cc: rafael@kernel.org, sramana@codeaurora.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] drivers: core: Remove glue dirs early only when refcount is 1 Message-ID: <20190524190409.GA29565@kroah.com> References: <20190501065313.GA30616@kroah.com> <1556711999-16898-1-git-send-email-prsood@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556711999-16898-1-git-send-email-prsood@codeaurora.org> 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 01, 2019 at 05:29:59PM +0530, Prateek Sood wrote: > While loading firmware blobs parallely in different threads, it is possible > to free sysfs node of glue_dirs in device_del() from a thread while another > thread is trying to add subdir from device_add() in glue_dirs sysfs node. Is this the same fix that: Subject: [PATCH v4] driver core: Fix use-after-free and double free on glue directory is also trying to fix? Why is it doing so in such a different way? thanks, greg k-h