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@daemons.net Cc: stable@vger.kernel.org Signed-off-by: Richard Weinberger richard@nod.at (clay: massaged to apply to 4.9.y) Signed-off-by: Clay McClure clay@daemons.net
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