[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1541938036-29498-1-git-send-email-zhizhouzhang@asrmicro.com>
Date: Sun, 11 Nov 2018 20:07:16 +0800
From: Zhizhou Zhang <zhizhouzhang@...micro.com>
To: <catalin.marinas@....com>, <will.deacon@....com>,
<mpatocka@...hat.com>, <alex.popov@...ux.com>,
<labbott@...hat.com>, <panand@...hat.com>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <zhizhouzh@...il.com>,
<zhizhouzhang@...micro.com>
Subject: [PATCH] arm64: disable KASAN for save_trace()
save_trace() which is called from walk_stackframe() always try to
read/write caller's stack. This results KASAN stack-out-of-bounds
warning. So mute it.
Signed-off-by: Zhizhou Zhang <zhizhouzhang@...micro.com>
---
arch/arm64/kernel/stacktrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c
index 4989f7e..e93ca67 100644
--- a/arch/arm64/kernel/stacktrace.c
+++ b/arch/arm64/kernel/stacktrace.c
@@ -107,7 +107,7 @@ struct stack_trace_data {
unsigned int skip;
};
-static int save_trace(struct stackframe *frame, void *d)
+static int __no_sanitize_address save_trace(struct stackframe *frame, void *d)
{
struct stack_trace_data *data = d;
struct stack_trace *trace = data->trace;
--
2.7.4
Powered by blists - more mailing lists