From: Max Staudt <max@enpas.org>
To: Dan Carpenter <dan.carpenter@linaro.org>,
Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-can@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH net] can: can327: fix snprintf() limit in can327_handle_prompt()
Date: Tue, 19 Nov 2024 09:48:53 +0900 [thread overview]
Message-ID: <8c358157-d28d-4c42-b983-4191061edd70@enpas.org> (raw)
In-Reply-To: <e5572514-83d7-4b7e-b4f0-5318c6722250@stanley.mountain>
Hi all,
As promised, here is a patch cleaning up can327's payload "encoding"
(the hex dump part), plus a comment explaining why Dan's finding turned
out not to be security relevant. It's as Vincent already explained, plus
additional background information:
https://lore.kernel.org/linux-can/20241119003815.767004-1-max@enpas.org/T/
I've taken the liberty of not CC'ing the network maintainers on that
patch, hence this email with a pointer to it for anyone interested. In
the end, while it looked worrying at first, it ended up being just a
minor cleanup.
Thanks Dan for pointing out that ugly piece of code. I'd really like to
one day find the time to do some further cleanup, and especially further
commenting in order to reduce the bus factor, but oh well...
Max
prev parent reply other threads:[~2024-11-19 0:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 9:03 [PATCH net] can: can327: fix snprintf() limit in can327_handle_prompt() Dan Carpenter
2024-11-14 9:19 ` Max Staudt
2024-11-14 9:26 ` Dan Carpenter
2024-11-14 9:29 ` Dan Carpenter
2024-11-14 10:11 ` Max Staudt
2024-11-14 9:34 ` Vincent Mailhol
2024-11-14 9:57 ` Dan Carpenter
2024-11-14 12:35 ` Vincent Mailhol
2024-11-14 13:34 ` Marc Kleine-Budde
2024-11-14 14:54 ` Vincent Mailhol
2024-11-14 15:08 ` Dan Carpenter
2024-11-14 15:24 ` Vincent Mailhol
2024-11-14 15:42 ` Dan Carpenter
2024-11-19 0:48 ` Max Staudt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c358157-d28d-4c42-b983-4191061edd70@enpas.org \
--to=max@enpas.org \
--cc=andrew+netdev@lunn.ch \
--cc=dan.carpenter@linaro.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailhol.vincent@wanadoo.fr \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox