diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-04-11 07:52:18 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-12 09:59:27 (GMT) |
commit | 8433a40eb7f2c4883ad57f9900f63e4d59240eb7 (patch) | |
tree | 7fab36945d0266ca00a9a13c2061cc2a0a2ae5dc /mm/filemap_xip.c | |
parent | 0462b5664b2bda5a18fef7efb5bb32ce36590c1a (diff) | |
download | linux-fsl-qoriq-8433a40eb7f2c4883ad57f9900f63e4d59240eb7.tar.xz |
tracing/filters: NIL-terminate user input filter
Make sure messages from user space are NIL-terminated strings,
otherwise we could dump random memory while reading filter file.
Try this:
# echo 'parent_comm ==' > events/sched/sched_process_fork/filter
# cat events/sched/sched_process_fork/filter
parent_comm == �
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Tom Zanussi <tzanussi@gmail.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <49E04C32.6060508@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm/filemap_xip.c')
0 files changed, 0 insertions, 0 deletions