Go to file
Steven Rostedt (Google) e5c624f027 tracing: Have event inject files inc the trace array ref count
The event inject files add events for a specific trace array. For an
instance, if the file is opened and the instance is deleted, reading or
writing to the file will cause a use after free.

Up the ref count of the trace_array when a event inject file is opened.

Link: https://lkml.kernel.org/r/20230907024804.292337868@goodmis.org
Link: https://lore.kernel.org/all/1cb3aee2-19af-c472-e265-05176fe9bd84@huawei.com/

Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Zheng Yejian <zhengyejian1@huawei.com>
Fixes: 6c3edaf9fd ("tracing: Introduce trace event injection")
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-09-07 16:38:54 -04:00
arch This push fixes a random config build failure on powerpc. 2023-09-01 15:39:25 -07:00
block
certs
crypto
Documentation Tracing updates for 6.6: 2023-09-01 16:34:25 -07:00
drivers for-linus-2023083101 2023-09-01 12:31:44 -07:00
fs tracefs/eventfs: Use dput to free the toplevel events directory 2023-09-07 16:04:47 -04:00
include tracing: Replace strlcpy with strscpy in trace/events/task.h 2023-09-01 21:00:00 -04:00
init workqueue: Changes for v6.6 2023-09-01 16:06:32 -07:00
io_uring
ipc
kernel tracing: Have event inject files inc the trace array ref count 2023-09-07 16:38:54 -04:00
lib percpu: changes for v6.6 2023-09-01 15:44:45 -07:00
LICENSES
mm percpu: changes for v6.6 2023-09-01 15:44:45 -07:00
net
rust
samples
scripts
security
sound
tools Tracing updates for 6.6: 2023-09-01 16:34:25 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap for-linus-2023083101 2023-09-01 12:31:44 -07:00
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS cgroup: Changes for v6.6 2023-09-01 15:58:21 -07:00
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.