mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
tracing: do not leak kernel addresses
CVE-2017-0630 This likely breaks tracing tools like trace-cmd. It logs in the same format but now addresses are all 0x0. Bug: 34277115 Change-Id: Ifb0d4d2a184bf0d95726de05b1acee0287a375d9 Signed-off-by: Jian Qiu <qiujian@rock-chips.com>
This commit is contained in:
committed by
Tao Huang
parent
5f09850f65
commit
56bb2ed623
@@ -304,7 +304,7 @@ static int t_show(struct seq_file *m, void *v)
|
||||
if (!*fmt)
|
||||
return 0;
|
||||
|
||||
seq_printf(m, "0x%lx : \"", *(unsigned long *)fmt);
|
||||
seq_printf(m, "0x%lx : \"", 0L);
|
||||
|
||||
/*
|
||||
* Tabs and new lines need to be converted.
|
||||
|
||||
Reference in New Issue
Block a user