Received: by 10.213.65.68 with SMTP id h4csp313922imn; Fri, 6 Apr 2018 00:09:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx489w/j4DDzFQFrqKhYlcWAXeafQLW+E10btcH7OzLAfyKIVcUpo+XjVfwsiFjyL1Sq5IsC5 X-Received: by 10.99.5.137 with SMTP id 131mr16501960pgf.99.1522998564073; Fri, 06 Apr 2018 00:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522998564; cv=none; d=google.com; s=arc-20160816; b=LtRE+HV2jrB/kJBzGG+nI0u7evljPmew788oAKFYq0pNRGa20Ryn0tNPeH000R9q0m IT72bZ0fl48qlzDgwST0733h6FsIuW7G3ROukrqena8Q9ZyzQY18pwEp+Hy8SSALJ1Jh YOtfW72fyVWYpixa93gqe7tEuv3QCKTTXLUkdo9k5icUD3LnucMlOXjeYBqB47fdI6sh ebsAROGXDX89zmbfCDvARppFHYsxwRoc+XCETeUK741pV6wL1CA8CN3Z/C7koRoEmB+v xDJ88T+Rk7rnJmqtTdBoGBXshodLXNCbXVj+N6wM+uN4cI/SHzfg27mHb02hVsUfx8P9 GItA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ob7LDz1e9tbttOKvMdiXsrkC8pLARA+Y3S4gM1jj0MM=; b=hGTWr0t7iXOOy8JBbKTPkYe18+aMFGC0w8AyR8kcKZugTfZPM37Cjwmn2A1G8GREep vCAuWcJobGGuVNgl3B1OMt7sKI4fwcuIMnvD4i9LAuwB4GQ6Vw5PzatNYwW1sF3N7eZ6 7pMkRaKBRFzbpmqYRKdMJ4rkOyvMSUDWkUuBghAVm7l+wE6LOZawGZ7NMnj5dGSnuivp zi0dwIqAoJEZk5OT5/hJJAvKOdxB3ocwx4FCU0+kFUsuuD5KSYiP3e4UelzKqEjLVcMd hBFBZWuF03dpEa0heBnxfab+LuqEa5j1J9yO1Ih4ymKU5/mkuEA+J0KEbzu//A8zAmde sJGA== ARC-Authentication-Results: i=1; mx.google.com; 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 m8si6633450pgu.98.2018.04.06.00.09.09; Fri, 06 Apr 2018 00:09:24 -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; 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 S1751417AbeDFHHa (ORCPT + 99 others); Fri, 6 Apr 2018 03:07:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52254 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbeDFHH3 (ORCPT ); Fri, 6 Apr 2018 03:07:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DDC4CA7B; Fri, 6 Apr 2018 07:07:28 +0000 (UTC) Date: Fri, 6 Apr 2018 09:07:27 +0200 From: Greg Kroah-Hartman To: Ben Hutchings Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Rafael J. Wysocki" , Viresh Kumar , Sasha Levin Subject: Re: [PATCH 4.4 092/134] cpufreq: Fix governor module removal race Message-ID: <20180406070727.GD8416@kroah.com> References: <20180319171849.024066323@linuxfoundation.org> <20180319171902.578082436@linuxfoundation.org> <1522616201.2654.79.camel@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1522616201.2654.79.camel@codethink.co.uk> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 01, 2018 at 09:56:41PM +0100, Ben Hutchings wrote: > On Mon, 2018-03-19 at 19:06 +0100, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.??If anyone has any objections, please let me know. > > > > ------------------ > > > > From: "Rafael J. Wysocki" > > > > > > [ Upstream commit a8b149d32b663c1a4105273295184b78f53d33cf ] > [...] > > --- a/drivers/cpufreq/cpufreq.c > > +++ b/drivers/cpufreq/cpufreq.c > > @@ -551,6 +551,8 @@ static int cpufreq_parse_governor(char * > > ? *governor = t; > > ? err = 0; > > ? } > > + if (t && !try_module_get(t->owner)) > > + t = NULL; > > This won't work because t is dead after this point. ?The fix appears to > depend on: > > commit 045149e6a22119e5bf0d16a0b24a4173a2abb71d > Author: Rafael J. Wysocki > Date: Thu Nov 23 01:23:16 2017 +0100 > > cpufreq: Clean up cpufreq_parse_governor() > > which moves the assignment to *governor further down. Ick, this also didn't make it into 4.9.y so I'm just reverting it from everywhere. thanks for the review! greg k-h