projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7fbcb
)
sched: Taint kernel with TAINT_WARN after sleep-in-atomic bug
author
Konstantin Khlebnikov
<khlebnikov@openvz.org>
Thu, 10 May 2012 12:20:04 +0000
(16:20 +0400)
committer
Ingo Molnar
<mingo@kernel.org>
Fri, 18 May 2012 11:07:40 +0000
(13:07 +0200)
Usually sleep-in-atomic bugs are followed by dozens other warnings.
This patch should help to figure out original source of problem.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link:
http://lkml.kernel.org/r/20120510122004.4873.12726.stgit@zurg
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched/core.c
b/kernel/sched/core.c
index 24ca677b545786dc23939c9c70e315a52b24c36b..ab9745f7e115ff92dc33c3a690a21eb65164e5c7 100644
(file)
--- a/
kernel/sched/core.c
+++ b/
kernel/sched/core.c
@@
-3138,6
+3138,7
@@
static noinline void __schedule_bug(struct task_struct *prev)
if (irqs_disabled())
print_irqtrace_events(prev);
dump_stack();
+ add_taint(TAINT_WARN);
}
/*