Re: [PATCH 4.9.y] ubi: Fix race condition between ubi volume creation and udev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <clay@xxxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Richard Weinberger <richard@xxxxxx>
> (clay: massaged to apply to 4.9.y)
> Signed-off-by: Clay McClure <clay@xxxxxxxxxxx>
> ---
> 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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]