lkml.org 
[lkml]   [2022]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] tracing/filter: make filter_pred_pchar() survive the access to user space
Date
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 <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@redhat.com>
To: linux-kernel@vger.kernel.org


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(-)

--
2.31.1

\
 
 \ /
  Last update: 2022-01-07 05:51    [W:0.094 / U:1.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site