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 620A53FD4 for ; Mon, 16 Dec 2024 13:32:53 +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=1734355973; cv=none; b=LofF27UDQVlo3lCIEqP5rGJnT25ow9Rb40UlioHYcqYJRnuHyBNsQL+tePPczqxZkhjkOa3LgbBkqnj62bmvaA9uJbLL9JGHti2l2EaM3UZ5mY73kLzjbx8bxPLRxnPFwYTd4L8wbgXZLl9OaUHZgS1bWUd+fFVNxVctLkl3lhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734355973; c=relaxed/simple; bh=Gqw2Rmmp3L7ugK/15rZY0VOdjFzQF0dBkDVeZZmUe8s=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rUATimQU15kZnxNAA0+Q15CPk9C01929KYxPkr2v+2j27AH+yiM6TBEKZGSHFz63dxlsNDA/3FgFv4n2umxNp1Dz96YY+gzQU5XUsG2QwWDswKzg8OwnfiUMpL6kw6cGZfeB5AFKlcpERpJCXh0PnHlAaX0gcMOKDi8nfTzdtDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20F4AC4CED0; Mon, 16 Dec 2024 13:32:52 +0000 (UTC) Date: Mon, 16 Dec 2024 08:33:24 -0500 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Al Viro , Michal Simek Subject: Re: [GIT PULL] ftrace: Fixes for v6.13 Message-ID: <20241216083324.5b2677f4@gandalf.local.home> In-Reply-To: <20241215202404.06f7be8f@batman.local.home> References: <20241214182138.4e7984a2@batman.local.home> <20241214220403.03a8f5d0@gandalf.local.home> <20241214221212.38cc22c3@gandalf.local.home> <20241214233855.46ad80e0@gandalf.local.home> <20241215050517.050e9d83@gandalf.local.home> <20241215202404.06f7be8f@batman.local.home> X-Mailer: Claws Mail 3.20.0git84 (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 On Sun, 15 Dec 2024 20:24:04 -0500 Steven Rostedt wrote: > > Isn't every single case of '%p' in this context from a TP_printk() situation? > > > > IOW, instead of dynamically creating a temporary buffer and adding > > that 'x' by hand, why wasn't that just a 'sed' script and done > > statically? > > > > In fact, wouldn't *most* of the sanity checking be possible to just do > > entirely statically instead of at runtime? > > > > Yeah, yeah, there's more than a few '%p' users, but > > > > git grep 'TP_printk.*%p[^A-Za-z]' | wc > > > > shows that it's manageable. That probably misses some multi-line > > cases, but still - doing this kind of "rewrite constant string at > > runtime because we didn't do it statically" seems *wrong*. > > > > And in this case, that wrongness was literally the cause of the bug. > > I'm also OK with that. Should that be done for 6.13 or something to be > added for 6.14? One issue with just doing it manually, is that it would need to be maintained, as one or two "%p" are added per release cycle. -- Steve