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

2024-07-21 Thread 吳澤南
On Wed, 2024-07-10 at 17:19 +0800, Tze-nan Wu wrote: > "tracing_map->next_elt" in get_free_elt() is at risk of overflowing. > > Once it overflows, new elements can still be inserted into the > tracing_map > even though the maximum number of elements (`max_elts`) has been > reached. > Continuing to

[PATCH] tracing: Fix overflow in get_free_elt()

2024-07-10 Thread Tze-nan Wu
"tracing_map->next_elt" in get_free_elt() is at risk of overflowing. Once it overflows, new elements can still be inserted into the tracing_map even though the maximum number of elements (`max_elts`) has been reached. Continuing to insert elements after the overflow could result in the tracing_map