[PATCH 39/66] tracing: Fix out of bounds write in get_trace_buf