projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] lockdep: do not touch console state when tainting the kernel
[cascardo/linux.git]
/
kernel
/
panic.c
diff --git
a/kernel/panic.c
b/kernel/panic.c
index
ab13f0f
..
8010b9b
100644
(file)
--- a/
kernel/panic.c
+++ b/
kernel/panic.c
@@
-18,6
+18,7
@@
#include <linux/interrupt.h>
#include <linux/nmi.h>
#include <linux/kexec.h>
#include <linux/interrupt.h>
#include <linux/nmi.h>
#include <linux/kexec.h>
+#include <linux/debug_locks.h>
int panic_on_oops;
int tainted;
int panic_on_oops;
int tainted;
@@
-172,6
+173,7
@@
const char *print_tainted(void)
void add_taint(unsigned flag)
{
void add_taint(unsigned flag)
{
+ debug_locks = 0; /* can't trust the integrity of the kernel anymore */
tainted |= flag;
}
EXPORT_SYMBOL(add_taint);
tainted |= flag;
}
EXPORT_SYMBOL(add_taint);
@@
-256,6
+258,7
@@
int oops_may_print(void)
*/
void oops_enter(void)
{
*/
void oops_enter(void)
{
+ debug_locks_off(); /* can't trust the integrity of the kernel anymore */
do_oops_enter_exit();
}
do_oops_enter_exit();
}