projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7b028f
)
kasan: respect /proc/sys/kernel/traceoff_on_warning
author
Peter Zijlstra
<
[email protected]
>
Fri, 3 Feb 2017 21:13:12 +0000
(13:13 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 3 Feb 2017 22:13:19 +0000
(14:13 -0800)
After much waiting I finally reproduced a KASAN issue, only to find my
trace-buffer empty of useful information because it got spooled out :/
Make kasan_report honour the /proc/sys/kernel/traceoff_on_warning
interface.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Peter Zijlstra (Intel) <
[email protected]
>
Signed-off-by: Andrey Ryabinin <
[email protected]
>
Acked-by: Alexander Potapenko <
[email protected]
>
Cc: Dmitry Vyukov <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/kasan/report.c
patch
|
blob
|
history
diff --git
a/mm/kasan/report.c
b/mm/kasan/report.c
index b82b3e2151574ae1abbb2cd57624114727975410..f479365530b6484bbd5cae42064521fed362961e 100644
(file)
--- a/
mm/kasan/report.c
+++ b/
mm/kasan/report.c
@@
-13,6
+13,7
@@
*
*/
+#include <linux/ftrace.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/printk.h>
@@
-300,6
+301,8
@@
void kasan_report(unsigned long addr, size_t size,
if (likely(!kasan_report_enabled()))
return;
+ disable_trace_on_warning();
+
info.access_addr = (void *)addr;
info.access_size = size;
info.is_write = is_write;