Staging
v0.7.0
https://github.com/torvalds/linux
Revision 8433a40eb7f2c4883ad57f9900f63e4d59240eb7 authored by Li Zefan on 11 April 2009, 07:52:18 UTC, committed by Ingo Molnar on 12 April 2009, 09:59:27 UTC
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>
1 parent 0462b56
History
Tip revision: 8433a40eb7f2c4883ad57f9900f63e4d59240eb7 authored by Li Zefan on 11 April 2009, 07:52:18 UTC
tracing/filters: NIL-terminate user input filter
Tip revision: 8433a40
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.6 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 110.3 KB
Makefile -rw-r--r-- 53.6 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top