[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFzw-K6XvDzTwHRyqQWdkDO8Zqz8Ak1qgNTzf6a3L9=80A@mail.gmail.com>
Date: Wed, 3 Aug 2011 14:35:09 -1000
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Marc Zyngier <marc.zyngier@....com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Vasiliy Kulikov <segoon@...nwall.com>,
Manuel Lauss <manuel.lauss@...glemail.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Richard Weinberger <richard@....at>,
Ingo Molnar <mingo@...e.hu>,
"kernel-hardening@...ts.openwall.com"
<kernel-hardening@...ts.openwall.com>,
"Paul E. McKenney" <paul.mckenney@...aro.org>
Subject: Re: [PATCH] shm: fix a race between shm_exit() and shm_init()
On Wed, Aug 3, 2011 at 12:30 AM, Marc Zyngier <marc.zyngier@....com> wrote:
>
> driver_init() is called from do_basic_setup(), before any initcall...
Ok, thanks everybody. I think the proper fix is the attached patch.
It's crazy to have usermode helpers enabled early during boot when
init etc haven't even been set up.
So does this finally fix the problem (I realize that there are other
patches floating around that *also* fix it, so please test this
without those other patches).
I'm planning on also applying the patch that optimizes the case of no
shm attaches, which would also hide the oops, but I think this
attached patch is the RightThing(tm).
Linus
View attachment "patch.diff" of type "text/x-patch" (1110 bytes)
Powered by blists - more mailing lists