Skip to content
Commit fdeb17c7 authored by Hui Su's avatar Hui Su Committed by Jan Kara
Browse files

trace: fix potenial dangerous pointer



The bdi_dev_name() returns a char [64], and
the __entry->name is a char [32].

It maybe dangerous to TP_printk("%s", __entry->name)
after the strncpy().

CC: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201124165205.GA23937@rlk
Acked-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarHui Su <sh_def@163.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 127c501a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment