From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D15ED1D45E8 for ; Fri, 17 Apr 2026 01:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776387947; cv=none; b=MoPwbsZcVjCKM6eIjsn8d8tT8m/4jWKpSeBXuQ2mCmQ7LPntU38y/em7RmcJLp4dZ3PzxnqUkm8g4PtM5Tmnfm7k784vdLAcCnEWowXIcGxEFbOinieCFOdKgaBQRnd7XmjHYuhBPFic4Wmzi9GrSXtm4RlpcgQ9ZYLCn+JuAyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776387947; c=relaxed/simple; bh=Asen3Kd0gEwrdq4vXXdBEyO7g5WtQ/xaUeigUlRjoLs=; h=Date:From:To:Cc:Subject:Message-Id:Mime-Version:Content-Type; b=irHwfytnNZHDs20jDMYN2CVaau6nRlvKJarICAv42HXiAcEGlRmpaILYcY9QhfyKPfzcpI8GsFvreEPyUtJhHVFRTSjRdiekAlwymtKszaBBVUymEo7dW9aYfERidQymxM+yoqwil/Gj+4NRXtCc/V/CptIIyXld+N1T6851WI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kS//lP0p; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kS//lP0p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0187FC2BCAF; Fri, 17 Apr 2026 01:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776387947; bh=Asen3Kd0gEwrdq4vXXdBEyO7g5WtQ/xaUeigUlRjoLs=; h=Date:From:To:Cc:Subject:From; b=kS//lP0phPjowgs31aMkTMl40+6jye2veDPS7PTkqb/zFDNp+CFsTIrhehf3Zl6aM 3aC9JYUuE5BY3hRfhCUiIdJtTrGzPD9PzdiQG6/93exgx14pTz7jGlnAtbV+giHzTW SNLXQabt6qRZiJNC8SA58HBA7wx8NdiiiVZoYTy8XtOcqyGRZReSMiyppe0dFp3BAI /c38ZzHmHv7ao+NzjCixQCVXL49VrSNVW5weM9JT9yNhyId2DuKFoQ+7+dB6OMWMDu I0OzM4R1afzyS0nFMyuluPx60j/Hd/s+heKRXOkIIZYQjJkeKd2R6tJJW8QSakG+VU Y+K/v4uWj3Y1g== Date: Fri, 17 Apr 2026 10:05:43 +0900 From: Masami Hiramatsu (Google) To: Linus Torvalds Cc: Martin Kaiser , Steven Rostedt , Masami Hiramatsu , linux-kernel@vger.kernel.org Subject: [GIT PULL] probes: Updates for v7.1 Message-Id: <20260417100543.1f96ba198e7bd99abc0ddbe1@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Linus, Probes updates for v7.1 - fprobe: do not zero out unused fgraph_data. This removes unneeded memset of fgraph_data in fprobe entry handler. Please pull the latest probes-v7.1 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git probes-v7.1 Tag SHA1: bf593fe216d8bf264b53e0235145363623bc92f0 Head SHA1: e0a384434ae1bdfb03954c46c464e3dbd3223ad6 Martin Kaiser (1): tracing: fprobe: do not zero out unused fgraph_data ---- kernel/trace/fprobe.c | 2 -- 1 file changed, 2 deletions(-) --------------------------- commit e0a384434ae1bdfb03954c46c464e3dbd3223ad6 Author: Martin Kaiser Date: Wed Mar 25 00:47:01 2026 +0900 tracing: fprobe: do not zero out unused fgraph_data If fprobe_entry does not fill the allocated fgraph_data completely, the unused part does not have to be zeroed. fgraph_data is a short-lived part of the shadow stack. The preceding length field allows locating the end regardless of the content. Link: https://lore.kernel.org/all/20260324084804.375764-1-martin@kaiser.cx/ Signed-off-by: Martin Kaiser Signed-off-by: Masami Hiramatsu (Google) diff --git a/kernel/trace/fprobe.c b/kernel/trace/fprobe.c index dcadf1d23b8a..56d145017902 100644 --- a/kernel/trace/fprobe.c +++ b/kernel/trace/fprobe.c @@ -450,8 +450,6 @@ static int fprobe_fgraph_entry(struct ftrace_graph_ent *trace, struct fgraph_ops used += FPROBE_HEADER_SIZE_IN_LONG + size_words; } } - if (used < reserved_words) - memset(fgraph_data + used, 0, reserved_words - used); /* If any exit_handler is set, data must be used. */ return used != 0; -- Masami Hiramatsu (Google)