From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34155 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032879AbeBOOT3 (ORCPT ); Thu, 15 Feb 2018 09:19:29 -0500 Date: Thu, 15 Feb 2018 15:19:31 +0100 From: Greg KH To: Clay McClure Cc: stable@vger.kernel.org, Richard Weinberger Subject: Re: [PATCH 4.9.y] ubi: Fix race condition between ubi volume creation and udev Message-ID: <20180215141931.GA4200@kroah.com> References: <1518639358-3301-1-git-send-email-clay@daemons.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518639358-3301-1-git-send-email-clay@daemons.net> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Feb 14, 2018 at 12:15:58PM -0800, Clay McClure wrote: > This is a conceptual cherry-pick of commit > a51a0c8d213594bc094cb8e54aad0cb6d7f7b9a6 upstream. > > Similar to commit 714fb87e8bc0 ("ubi: Fix race condition between ubi > device creation and udev"), we should make the volume active before > registering it. > > Signed-off-by: Clay McClure > Cc: > Signed-off-by: Richard Weinberger > (clay: massaged to apply to 4.9.y) > Signed-off-by: Clay McClure > --- > Hello, > > The race fixed by this upstream patch also occurs in 4.9, 4.4, and > at least as far back as 3.14 (where we originally found it). This > massaged patch applies cleanly to 4.9.y and 4.4.y and possibly to > earlier kernels. I'd like to get an ack from Richard here to verify this is ok before applying it. thanks, greg k-h