]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tracing: Add ustring operation to filtering string pointers
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 14 Jan 2022 01:08:40 +0000 (20:08 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:45 +0000 (15:17 +0100)
commitc6f0a2df4f4abd13cd0e26a84613948954fab196
tree97a91d45537a53e9edcbf0eeef6486e16264b967
parent94f5e913ae9335447a5630c9416f1beeceef27da
tracing: Add ustring operation to filtering string pointers

BugLink: https://bugs.launchpad.net/bugs/1964361
[ Upstream commit f37c3bbc635994eda203a6da4ba0f9d05165a8d6 ]

Since referencing user space pointers is special, if the user wants to
filter on a field that is a pointer to user space, then they need to
specify it.

Add a ".ustring" attribute to the field name for filters to state that the
field is pointing to user space such that the kernel can take the
appropriate action to read that pointer.

Link: https://lore.kernel.org/all/yt9d8rvmt2jq.fsf@linux.ibm.com/
Fixes: 77360f9bbc7e ("tracing: Add test for user space strings when filtering on string pointers")
Tested-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Documentation/trace/events.rst
kernel/trace/trace_events_filter.c