Re: [PATCH] [fix for stable] tracing: Fix irqs-off tag display in syscall tracing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013/7/29 9:33, zhangwei(Jovi) wrote:
> commit 11034ae9c20f4057a6127fc965906417978e69b2 upstream
> 

I don't think the stable versions that contain this fix have been released,
so I think you should ask Greg to drop the patch and resend the patch with
this fix folded.

> Initialization of variable irq_flags and pc was missed when backport
> 11034ae9c to linux-3.0.y and linux-3.4.y, my fault.
> 
> Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@xxxxxxxxxx>
> ---
>  kernel/trace/trace_syscalls.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
> index e675182..c9ce09a 100644
> --- a/kernel/trace/trace_syscalls.c
> +++ b/kernel/trace/trace_syscalls.c
> @@ -358,6 +358,9 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret)
>  	if (!sys_data)
>  		return;
> 
> +	local_save_flags(irq_flags);
> +	pc = preempt_count();
> +
>  	event = trace_current_buffer_lock_reserve(&buffer,
>  			sys_data->exit_event->event.type, sizeof(*entry),
>  			irq_flags, pc);
> 

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]