From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C308346E6C for ; Thu, 21 May 2026 20:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779396410; cv=none; b=ch0UVEKzuPWrKrSWfhIP1ds7n02E6aU8UEX/jjqQEb/eA8v0e9DXaivq8cXrystWwBuJ4hgiFj+0UqpwcMR0mtk2Td4O6/nD62OVyE5bS2OVpj59aq0VZOCEgILe1ON7zekOvhgrSJFBX9EtsN7YU3ilbGGyBXGtuXG8Qq/3TVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779396410; c=relaxed/simple; bh=gc2CYNmIPEbrqAH7uvOl7a9EYLqTM9cCf/TodgnoQvg=; h=Message-ID:Date:From:To:Cc:Subject; b=ZK65zxER2qNQqGadgL4NjeSt5aQFtcdr2Tg6vWRGRYlh2Ee5IHYEj5I3Cl3iGGvXJK+FI3IrK46accVh//MlXuTR1NvFfqSwl3yuVSXObf4t986laA+uK9/+fWm8n1JZbubzQSJWBDbJVIZnxdA4hIuNpN4WbSMFUJM5HMlxNZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hOaQqo2/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hOaQqo2/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B585E1F00A3C; Thu, 21 May 2026 20:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779396408; bh=pV8jdYxtGkSonO6Iyvlr93q+W458zU00wSfTnqJfIZw=; h=Date:From:To:Cc:Subject; b=hOaQqo2/Lw+lvDKJE7BRba9EwDIJUZ+wMS1zTWEJfS8+TuEwrr65nbD/AlJIjG7ff FuunIvxINJDsNJIzyO0WQU8col73CYa9u2hCMm4IB64bU9EOKecTO6AVUfkSvoYoCH AaJ98g8KuNCnhmK53mzCVry5Y1XfKZR50sZDujD2Gs/NMkD0KYT46QXWcn9yLKWLIF b5A9dQKVyLX9nUC6+MiC1thoKbExdM8NY0uab3NzV5ZFuBt5ccVWWKY6BFwFvS5aao ADQ3HqJGOeXSHenkXxsVfOhvexMbo9AKSVwgyC09tzTCjYW+N6SWNT32JxWuEPqKrE ySiGShZrtlUKQ== Received: from rostedt by gandalf with local (Exim 4.99.2) (envelope-from ) id 1wQAIQ-00000005bnE-2Dp6; Thu, 21 May 2026 16:47:10 -0400 Message-ID: <20260521204527.100913207@kernel.org> User-Agent: quilt/0.69 Date: Thu, 21 May 2026 16:45:27 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-linus][PATCH 0/2] tracing: Fixes for 7.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tracing fixes for v7.1: - Avoid NULL return from hist_field_name() The function hist_field_name() is directly passed to a strcat() which does not handle "NULL" characters. Return a zero length string when size is greater than the limit. This is used only to output already created histograms and no field currently is greater than the limit. But it should still not return NULL. - Do not call map->ops->elt_free() on allocation failure When elt_alloc() fails, it should not call the map->ops->elt_free() function if it exists, as that function may not be able to handle the free on allocation failures. The ->elt_free() should only be called when elt_alloc() succeeds. git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace/fixes Head SHA1: 8f0f5c4fb9df0e19a341e0c6ed8dc4fda9124f03 David Carlier (1): tracing: Avoid NULL return from hist_field_name() on truncation Masami Hiramatsu (Google) (1): tracing: Do not call map->ops->elt_free() if elt_alloc() fails ---- kernel/trace/trace_events_hist.c | 6 ++---- kernel/trace/tracing_map.c | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 8 deletions(-)