[PATCH RESEND] tracing: Fix overflow in get_free_elt()

2024-08-04 Thread Tze-nan Wu
by preventing any further increments to "tracing_map->next_elt" once it reaches "tracing_map->max_elt". Co-developed-by: Cheng-Jui Wang Signed-off-by: Cheng-Jui Wang Signed-off-by: Tze-nan Wu --- We have encountered this issue internally after enabling the throttle_rss

[PATCH] tracing: Fix overflow in get_free_elt()

2024-07-10 Thread Tze-nan Wu
by preventing any further increments to "tracing_map->next_elt" once it reaches "tracing_map->max_elt". Co-developed-by: Cheng-Jui Wang Signed-off-by: Cheng-Jui Wang Signed-off-by: Tze-nan Wu --- kernel/trace/tracing_map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 d

[PATCH] tracing: Fix uaf issue in tracing_open_file_tr

2024-04-26 Thread Tze-nan wu
bb32500fb9b7 ("tracing: Have trace_event_file have ref counters") Co-developed-by: Cheng-Jui Wang Signed-off-by: Cheng-Jui Wang Signed-off-by: Tze-nan wu --- BTW, I've also attempted to reproduce the same issue in another environment (described below). It's also reproducible b