* [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity
@ 2026-10-02 10:30 Andy Shevchenko
2026-10-13 20:54 ` Andy Shevchenko
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-10-02 10:30 UTC (permalink / raw)
To: linux-arm-msm, linux-kernel
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Andy Shevchenko
As Sashiko pointed out in [1] the %*pEp makes the whole thing
like "no escape". To add some sanity to this the used specifier
also includes ESCAPE_HEX.
Link: https://lore.kernel.org/r/179089728102.434549.12368098081790653201@kernel.org [1]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
Just a Link tag (no Fixes et alia) as the escaping seems to be a guard
that never fired so far.
drivers/soc/qcom/cmd-db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c
index 3f1eee784387..bed14b92c194 100644
--- a/drivers/soc/qcom/cmd-db.c
+++ b/drivers/soc/qcom/cmd-db.c
@@ -308,7 +308,7 @@ static int cmd_db_debugfs_dump(struct seq_file *seq, void *p)
ent = rsc_to_entry_header(rsc);
for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) {
- seq_printf(seq, "0x%05x: %*pEp", le32_to_cpu(ent->addr),
+ seq_printf(seq, "0x%05x: %*pEhp", le32_to_cpu(ent->addr),
(int)strnlen(ent->id, sizeof(ent->id)), ent->id);
len = le16_to_cpu(ent->len);
--
2.50.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity
2026-10-02 10:30 [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity Andy Shevchenko
@ 2026-10-13 20:54 ` Andy Shevchenko
2026-10-13 21:50 ` Dmitry Baryshkov
2026-10-14 8:31 ` Abel Vesa
2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-10-13 20:54 UTC (permalink / raw)
To: linux-arm-msm, linux-kernel; +Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa
On Fri, Oct 02, 2026 at 12:30:46PM +0200, Andy Shevchenko wrote:
> As Sashiko pointed out in [1] the %*pEp makes the whole thing
> like "no escape". To add some sanity to this the used specifier
> also includes ESCAPE_HEX.
Any comments on this, please?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity
2026-10-02 10:30 [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity Andy Shevchenko
2026-10-13 20:54 ` Andy Shevchenko
@ 2026-10-13 21:50 ` Dmitry Baryshkov
2026-10-14 8:31 ` Abel Vesa
2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2026-10-13 21:50 UTC (permalink / raw)
To: Andy Shevchenko
Cc: linux-arm-msm, linux-kernel, Bjorn Andersson, Konrad Dybcio, Abel Vesa
On Fri, Oct 02, 2026 at 12:30:46PM +0200, Andy Shevchenko wrote:
> As Sashiko pointed out in [1] the %*pEp makes the whole thing
> like "no escape". To add some sanity to this the used specifier
> also includes ESCAPE_HEX.
>
> Link: https://lore.kernel.org/r/179089728102.434549.12368098081790653201@kernel.org [1]
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>
> Just a Link tag (no Fixes et alia) as the escaping seems to be a guard
> that never fired so far.
>
The names are ASCII-only, but it's worth using escapes just in case we
parse CMD-DB incorrectly.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity
2026-10-02 10:30 [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity Andy Shevchenko
2026-10-13 20:54 ` Andy Shevchenko
2026-10-13 21:50 ` Dmitry Baryshkov
@ 2026-10-14 8:31 ` Abel Vesa
2 siblings, 0 replies; 4+ messages in thread
From: Abel Vesa @ 2026-10-14 8:31 UTC (permalink / raw)
To: Andy Shevchenko
Cc: linux-arm-msm, linux-kernel, Bjorn Andersson, Konrad Dybcio, Abel Vesa
On 26-10-02 12:30:46, Andy Shevchenko wrote:
> As Sashiko pointed out in [1] the %*pEp makes the whole thing
> like "no escape". To add some sanity to this the used specifier
> also includes ESCAPE_HEX.
>
> Link: https://lore.kernel.org/r/179089728102.434549.12368098081790653201@kernel.org [1]
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-14 8:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-02 10:30 [PATCH v1 1/1] soc: qcom: cmd-db: Use %*pEhp specifier to add some sanity Andy Shevchenko
2026-10-13 20:54 ` Andy Shevchenko
2026-10-13 21:50 ` Dmitry Baryshkov
2026-10-14 8:31 ` Abel Vesa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®