]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] lockdep: disable lock debugging when kernel state becomes untrusted
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 10 Jul 2006 11:45:42 +0000 (04:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:27 +0000 (13:24 -0700)
commit352fc3eb661e86c65cfaec4eec9f8e1866551b9d
treee17756b3ed27b0f4953547c39cf46864cdd6f818
parentba4ac97d62cb35e71ae51e603d9f82b7fd3a1cf5
[PATCH] lockdep: disable lock debugging when kernel state becomes untrusted

Disable lockdep debugging in two situations where the integrity of the
kernel no longer is guaranteed: when oopsing and when hitting a
tainting-condition.  The goal is to not get weird lockdep traces that don't
make sense or are otherwise undebuggable, to not waste time.

Lockdep assumes that the previous state it knows about is valid to operate,
which is why lockdep turns itself off after the first violation it reports,
after that point it can no longer make that assumption.

A kernel oops means that the integrity of the kernel compromised; in
addition anything lockdep would report is of lesser importance than the
oops.

All the tainting conditions are of similar integrity-violating nature and
also make debugging/diagnosing more difficult.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/panic.c