]> git.baikalelectronics.ru Git - kernel.git/commit
module: fix reference to mod->percpu after freeing module.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 31 May 2010 10:23:50 +0000 (19:53 +0930)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 31 May 2010 18:21:32 +0000 (11:21 -0700)
commit4823f6e8fb523ed2ccc1afb096538d0e2cd4708b
tree00576870400cb640fe92ea3f525338e6e3733a2e
parent3173211281a3ce3c9872737cb9c520fbba09227a
module: fix reference to mod->percpu after freeing module.

Rafael sees a sometimes crash at precpu_modfree from kernel/module.c; it
only occurred with another (since-reverted) patch, but that patch simply
changed timing to uncover this bug, it was otherwise unrelated.

The comment about the mod being freed is self-explanatory, but neither
Tejun nor I read it.  This bug was introduced in 7fdfcc7332, after it
had previously been fixed in fcb0398635.  How embarrassing.

Reported-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Embarrassingly-Acked-by: Tejun Heo <tj@kernel.org>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Tested-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/module.c