Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40cc9g4StlzF0ZM for ; Fri, 4 May 2018 12:56:55 +1000 (AEST) From: Michael Ellerman To: Sam Bobroff , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 03/13] powerpc/eeh: Fix use-after-release of EEH driver In-Reply-To: References: Date: Fri, 04 May 2018 12:56:55 +1000 Message-ID: <871ses9lhk.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sam Bobroff writes: > Correct two cases where eeh_pcid_get() is used to reference the driver's > module but the reference is dropped before the driver pointer is used. > > In eeh_rmv_device() also refactor a little so that only two calls to > eeh_pcid_put() are needed, rather than three and the reference isn't > taken at all if it wasn't needed. This sounds like a crash or memory corruption bug? But it doesn't have Fixes or Cc: stable. Is it not a major problem for some reason? cheers