linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] fix UAF when lookup kallsym after ftrace disabled
@ 2025-05-29 11:19 Ye Bin
  2025-05-29 11:19 ` [PATCH v3 1/2] ftrace: " Ye Bin
  2025-05-29 11:19 ` [PATCH v3 2/2] ftrace: don't allocate ftrace module map if ftrace is disabled Ye Bin
  0 siblings, 2 replies; 6+ messages in thread
From: Ye Bin @ 2025-05-29 11:19 UTC (permalink / raw)
  To: rostedt, mhiramat, mathieu.desnoyers, mark.rutland,
	linux-trace-kernel
  Cc: yebin, yebin10

Diff v3 vs v2:
(1) Only release 'mod_map' resource in ftrace_release_mod() when
    ftrace_disabled.

Diff v2 vs v1:
(1) Add description for PATCH[1/2];
(2) Move judgement from ftrace_free_mem() to allocate_ftrace_mod_map()

Ye Bin (2):
  ftrace: fix UAF when lookup kallsym after ftrace disabled
  ftrace: don't allocate ftrace module map if ftrace is disabled

 kernel/trace/ftrace.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-06-06  2:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 11:19 [PATCH v3 0/2] fix UAF when lookup kallsym after ftrace disabled Ye Bin
2025-05-29 11:19 ` [PATCH v3 1/2] ftrace: " Ye Bin
2025-06-02 15:28   ` Steven Rostedt
2025-06-06  1:52     ` yebin
2025-06-06  2:49       ` Steven Rostedt
2025-05-29 11:19 ` [PATCH v3 2/2] ftrace: don't allocate ftrace module map if ftrace is disabled Ye Bin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).