diff options
author | Carl Henrik Lunde <chlunde@ping.uio.no> | 2009-04-03 14:27:15 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-03 14:46:22 +0200 |
commit | a4b3ada83d06554d307dd54abdc62b2e5648264a (patch) | |
tree | 70413a3343c8a40a8d3b22ec6d020ef806ca7a9b /drivers/sh | |
parent | 18cea4591a98817697017bcb056a848bae1205df (diff) |
blktrace: NUL-terminate user space messages
Impact: fix corrupted blkparse output
Make sure messages from user space are NUL-terminated strings,
otherwise we could dump random memory to the block trace file.
Additionally, I've limited the message to BLK_TN_MAX_MSG-1
characters, because the last character would be stripped by
vscnprintf anyway.
Signed-off-by: Carl Henrik Lunde <chlunde@ping.uio.no>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: "Alan D. Brunelle" <alan.brunelle@hp.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20090403122714.GT5178@kernel.dk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions