Skip to content
Snippets Groups Projects
Commit 1e6338cf authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware)
Browse files

vsprintf: Do not preprocess non-dereferenced pointers for bprintf (%px and %pK)


Commit 841a915d ("printf: Do not have bprintf dereference pointers")
would preprocess various pointers that are dereferenced in the bprintf()
because the recording and printing are done at two different times. Some
pointers stayed dereferenced in the ring buffer because user space could
handle them (namely "%pS" and friends). Pointers that are not dereferenced
should not be processed immediately but instead just saved directly.

Cc: stable@vger.kernel.org
Fixes: 841a915d ("printf: Do not have bprintf dereference pointers")
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent b28d7b2d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment