Skip to content

tracing/filter: make filter_pred_pchar() survive the access to user space

Pingfan Liu lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing/filter: degrade addr in filter_pred_string() from double pointer to pointerkernel/trace/trace_events_filter.c+3 -32 replies
2/3tracing/filter: harden the prototype of predicate_parse()kernel/trace/trace_events_filter.c+4 -30 replies
3/3tracing/filter: make filter_pred_pchar() survive the access to user spacekernel/trace/trace.h kernel/trace/trace_events_filter.c+27 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] tracing/filter: make filter_pred_pchar() survive the access to user space

When
echo "filename ~ \"cpu\"" > events/syscalls/sys_enter_openat/filter echo 1 > events/syscalls/sys_enter_at/enable

The kernel will run into a #PF (see [3/3].
This series resorts to copy_from_user() to cope with the access to user space.

Cc: Steven Rostedt <[email protected]>
Cc: Ingo Molnar <[email protected]>
To: [email protected]

Pingfan Liu (3):
tracing/filter: degrade addr in filter_pred_string() from double
pointer to pointer
tracing/filter: harden the prototype of predicate_parse() tracing/filter: make filter_pred_pchar() survive the access to user
space

 kernel/trace/trace.h               |  1 +
 kernel/trace/trace_events_filter.c | 38 ++++++++++++++++++++++++------
 2 files changed, 32 insertions(+), 7 deletions(-)
Signature · 1 line
2.31.1