[PATCH] ftrace: remove KASAN poison in ftrace_ops_test()

2018-11-10 Thread Zhizhou Zhang
ftrace_ops_test() passed local varible parameter to hash_contains_ip(), which could result KASAN stack-out-of-bounds warning. Signed-off-by: Zhizhou Zhang --- kernel/trace/ftrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index f536f60

[PATCH] arm64: disable KASAN for save_trace()

2018-11-10 Thread Zhizhou Zhang
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 --- arch/arm64/kernel/stacktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/

[PATCH] arm64: don't account for cpu offline time with irqsoff tracer

2018-09-05 Thread Zhizhou Zhang
racing_on $ echo 0 > /sys/devices/system/cpu/cpu1/online $ # wait a while ... $ echo 1 > /sys/devices/system/cpu/cpu1/online $ cat /sys/kernel/debug/tracing/trace Signed-off-by: Zhizhou Zhang --- arch/arm64/kernel/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/smp

[PATCH] arm64: make secondary_start_kernel() notrace

2018-06-12 Thread Zhizhou Zhang
ernel/debug/tracing/current_tracer echo 1 > /sys/kernel/debug/tracing/tracing_on echo 1 > /sys/devices/system/cpu/cpu1/online Signed-off-by: Zhizhou Zhang --- arch/arm64/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/k

Re: [PATCH] arm64: add architecture specified current_pt_regs

2016-02-19 Thread Zhizhou Zhang
On Fri, Feb 19, 2016 at 6:32 PM, Will Deacon wrote: > On Fri, Feb 19, 2016 at 10:30:09AM +0800, Zhi-zhou wrote: >> On Thu, Feb 18, 2016 at 7:58 PM, Catalin Marinas >> wrote: >> > >> > On Thu, Feb 18, 2016 at 07:48:35PM +0800, Zhi-zhou Zhang wrote: >> > > From: zhizhou >> > > >> > > This patch is