Skip to content

Commit

Permalink
lockdep, bug: Exclude TAINT_OOT_MODULE from disabling lock debugging
Browse files Browse the repository at this point in the history
We do want to allow lock debugging for GPL-compatible modules
that are not (yet) built in-tree.  This was disabled as a
side-effect of commit 2449b8b
('module,bug: Add TAINT_OOT_MODULE flag for modules not built
in-tree').  Lock debug warnings now include taint flags, so
kernel developers should still be able to deflect warnings
caused by out-of-tree modules.

The TAINT_PROPRIETARY_MODULE flag for non-GPL-compatible modules
will still disable lock debugging.

Signed-off-by: Ben Hutchings <[email protected]>
Cc: Nick Bowler <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Debian kernel maintainers <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Alan Cox <[email protected]>
Link: http://lkml.kernel.org/r/1323268258.18450.11.camel@deadeye
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
bwhacks authored and Ingo Molnar committed Dec 7, 2011
1 parent 81140ac commit 9ec84ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,12 @@ void add_taint(unsigned flag)
* Can't trust the integrity of the kernel anymore.
* We don't call directly debug_locks_off() because the issue
* is not necessarily serious enough to set oops_in_progress to 1
* Also we want to keep up lockdep for staging development and
* post-warning case.
* Also we want to keep up lockdep for staging/out-of-tree
* development and post-warning case.
*/
switch (flag) {
case TAINT_CRAP:
case TAINT_OOT_MODULE:
case TAINT_WARN:
case TAINT_FIRMWARE_WORKAROUND:
break;
Expand Down

0 comments on commit 9ec84ac

Please sign in to comment.