summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2021-11-13 01:02:08 +0900
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-11-12 15:48:46 -0500
commit63f84ae6b82bb4dff672f76f30c6fd7b9d3766bc (patch)
treefb646bd1bb322d521f83f081f635e9b4fac7747c /Kconfig
parentd7458bc0d8b409460713228d2ed279addb38947a (diff)
downloadlwn-63f84ae6b82bb4dff672f76f30c6fd7b9d3766bc.tar.gz
lwn-63f84ae6b82bb4dff672f76f30c6fd7b9d3766bc.zip
tracing/histogram: Do not copy the fixed-size char array field over the field size
Do not copy the fixed-size char array field of the events over the field size. The histogram treats char array as a string and there are 2 types of char array in the event, fixed-size and dynamic string. The dynamic string (__data_loc) field must be null terminated, but the fixed-size char array field may not be null terminated (not a string, but just a data). In that case, histogram can copy the data after the field. This uses the original field size for fixed-size char array field to restrict the histogram not to access over the original field size. Link: https://lkml.kernel.org/r/163673292822.195747.3696966210526410250.stgit@devnote2 Fixes: 02205a6752f2 (tracing: Add support for 'field variables') Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions