lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250813023044.2121943-1-wutengda@huaweicloud.com>
Date: Wed, 13 Aug 2025 02:30:42 +0000
From: Tengda Wu <wutengda@...weicloud.com>
To: Steven Rostedt <rostedt@...dmis.org>,
	Masami Hiramatsu <mhiramat@...nel.org>
Cc: Mark Rutland <mark.rutland@....com>,
	Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
	linux-trace-kernel@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Tengda Wu <wutengda@...weicloud.com>
Subject: [PATCH -next 0/2] ftrace: Some minor fixes for set_ftrace_{notrace,filter} file handling

Hello,

This patch series addresses two issues in the ftrace subsystem related
to the handling of set_ftrace_{notrace,filter} files.

Patch 1 removes an incorrect free_ftrace_hash call in ftrace_regex_open()
that could lead to use-after-free when seq_open fails.

Patch 2 fixes a potential use-after-free scenario that can occur during
concurrent read/write operations on the set_ftrace_{notrace,filter} files.

Both issues were reproducible. This patches aims to fix them.

Best regards,
Tengda

Tengda Wu (2):
  ftrace: Remove unnecessary free_ftrace_hash in ftrace_regex_open
  ftrace: Fix potential use-after-free for set_ftrace_{notrace,filter}
    files

 kernel/trace/ftrace.c | 28 ++++++++++++++++++++++++----
 kernel/trace/trace.h  |  2 ++
 2 files changed, 26 insertions(+), 4 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ