Received: by 10.192.165.148 with SMTP id m20csp1676591imm; Thu, 26 Apr 2018 00:06:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+4Y0z9SPPW3owciupD9tiLT2Bu/DEC6rw+5LidVOXvtAUkwmhAt4ygdRw0c2yQjSxUXbYg X-Received: by 10.101.64.201 with SMTP id u9mr26652908pgp.142.1524726375869; Thu, 26 Apr 2018 00:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524726375; cv=none; d=google.com; s=arc-20160816; b=SWrEMz+H/3F9i9pCkatYd5bJGRmYGUmTz6t1xFqIyknAbj0XyPZmW+oiOamrqPhCSP PNk40Yvwba90r8rxyGMZNJ1Odkz3eC6IbBrEhvAlCWvzRd81nz6ygA1FfdGCFWt1nYes h95szhRlwgbtXyEvBpoqZQmiu11XG4mwpi9/wU8djtUiJmbf62hyVch2rrNCpvu3ZucX IYTlvn9/QBgAX+Rea/q/XVckrddURKLpdziG18xnYGdekKWg/ErCFhXzleD8NSeXX4Ey zgCIhJ4HxxyWLfQ3xOWJxP5RFGQzNvTxvhlsj/niwAcowpm1CwqOc2Y7eszCnDqvXI9J SdeA== 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:arc-authentication-results; bh=twsFD2OScet1d+/EuGYaaH5J2q9pd9R7xhpliZeQoY4=; b=S2zjSWOnKeNg4E/yKGjH67niEshgDRNxGTCIrug8o5CpwszQNvW/nPX7ag2tFEiza+ h5ml6IZLLCFBT74Wax9lLTT+xe5da0ovV5xPFxPszyWCqdbD+TRbUsisLJoguXSr7BEl cqdyMKGAc1U8Ko8LS34nnM5FY6NIbg0cLITXpM0VpQ7wJJFn4OL5cCzhpbXwSUblBU0l muR9GINCGEmToWi9xYiFnUUOTWLsTSHzDT9ndpKIOL7rwJi1bfMjVxvZyKMfL/KJD5rw NZvxb1ZHFEVYNettesM+BKeGZuU41Rudcefnub11i02td320UzYMrOJJMxGQSRM2MbVs IUcA== 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 e20si3708674pgn.130.2018.04.26.00.06.02; Thu, 26 Apr 2018 00:06:15 -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 S1754172AbeDZHEW (ORCPT + 99 others); Thu, 26 Apr 2018 03:04:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42608 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753000AbeDZHEU (ORCPT ); Thu, 26 Apr 2018 03:04:20 -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 37A3B253; Thu, 26 Apr 2018 07:04:19 +0000 (UTC) Date: Thu, 26 Apr 2018 09:04:10 +0200 From: Greg Kroah-Hartman To: Geert Uytterhoeven Cc: Geert Uytterhoeven , Russell King , Adrian Salido , Nicolai Stange , Sasha Levin , Todd Kjos , Linux Kernel Mailing List Subject: Re: [PATCH v2 2/4] ARM: amba: Fix race condition with driver_override Message-ID: <20180426070410.GM14025@kroah.com> References: <1523366506-19832-1-git-send-email-geert+renesas@glider.be> <1523366506-19832-3-git-send-email-geert+renesas@glider.be> <20180425160645.GA16732@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 07:53:06PM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > On Wed, Apr 25, 2018 at 6:06 PM, Greg Kroah-Hartman > wrote: > > On Tue, Apr 10, 2018 at 03:21:44PM +0200, Geert Uytterhoeven wrote: > >> The driver_override implementation is susceptible to a race condition > >> when different threads are reading vs storing a different driver > >> override. Add locking to avoid this race condition. > >> > >> Cfr. commits 6265539776a0810b ("driver core: platform: fix race > >> condition with driver_override") and 9561475db680f714 ("PCI: Fix race > >> condition with driver_override"). > >> > >> Fixes: 3cf385713460eb2b ("ARM: 8256/1: driver coamba: add device binding path 'driver_override'") > >> Signed-off-by: Geert Uytterhoeven > >> Reviewed-by: Todd Kjos > >> Cc: stable > > > As this should go to stable kernels, I've fixed it up to apply without > > patch 1 as that's not a real "fix" that anyone needs... > > > > Please try to remember to put fixes first, and then "trivial" things > > later on in a series. > > I did it on purpose, as the fix is much more ugly without patch 1 applied. > Can't you just take patch 1, too? More consistency is always nice, even for > stable ;-) Consistency is nice, but when you have bug fixes that rely on "trivial" patches, it's usually not nice :( I already committed patch 2 to my tree without 1, so let's leave it as-is for now. thanks, greg k-h