diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-01 13:15:23 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-01 13:15:23 -0800 |
commit | 27529c891b132f4fc65711334e885f466138ea2a (patch) | |
tree | ff21f3a06613638d83fe0280f7761ae73addd9ca /kernel/debug/kdb | |
parent | 8e44e6600caa7b96a5b71ae36c8829db753c2d70 (diff) | |
parent | 841a915d20c7b22fc4f36f12368daf94d9f8cb10 (diff) | |
download | linux-27529c891b132f4fc65711334e885f466138ea2a.tar.bz2 |
Merge tag 'trace-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing updates from Steven Rostedt:
"There's not much changes for the tracing system this release. Mostly
small clean ups and fixes.
The biggest change is to how bprintf works. bprintf is used by
trace_printk() to just save the format and args of a printf call, and
the formatting is done when the trace buffer is read. This is done to
keep the formatting out of the fast path (this was recommended by
you). The issue is when arguments are de-referenced.
If a pointer is saved, and the format has something like "%*pbl", when
the buffer is read, it will de-reference the argument then. The
problem is if the data no longer exists. This can cause the kernel to
oops.
The fix for this was to make these de-reference pointes do the
formatting at the time it is called (the fast path), as this
guarantees that the data exists (and doesn't change later)"
* tag 'trace-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
vsprintf: Do not have bprintf dereference pointers
ftrace: Mark function tracer test functions noinline/noclone
trace_uprobe: Display correct offset in uprobe_events
tracing: Make sure the parsed string always terminates with '\0'
tracing: Clear parser->idx if only spaces are read
tracing: Detect the string nul character when parsing user input string
Diffstat (limited to 'kernel/debug/kdb')
0 files changed, 0 insertions, 0 deletions