diff options
author | Carl Henrik Lunde <[email protected]> | 2009-04-03 14:27:15 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-04-03 14:46:22 +0200 |
commit | a4b3ada83d06554d307dd54abdc62b2e5648264a (patch) | |
tree | 70413a3343c8a40a8d3b22ec6d020ef806ca7a9b /net/lapb/lapb_iface.c | |
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 <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: "Alan D. Brunelle" <[email protected]>
Cc: Steven Rostedt <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions