[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251023-athletic-courageous-pogona-1405d3-mkl@pengutronix.de>
Date: Thu, 23 Oct 2025 08:16:19 +0200
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: pip-izony <eeodqql09@...il.com>
Cc: Vincent Mailhol <mailhol@...nel.org>,
Kyungtae Kim <Kyungtae.Kim@...tmouth.edu>, Jimmy Assarsson <extja@...ser.com>, linux-can@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] can: kvaser_usb: leaf: Fix infinite loop on zero-length
cmd
On 22.10.2025 20:39:09, pip-izony wrote:
> From: Seungjin Bae <eeodqql09@...il.com>
>
> The `kvaser_usb_leaf_read_bulk_callback()` function parse received
> command buffers from the device. The firmware may insert zero-length
> placeholder commands to handle alignment with the USB endpoint's
> wMaxPacketSize.
>
> The driver attempts to skip these placeholders by aligning the buffer
> position `pos` to the next packet boundary using `round_up()`
> function.
What about the round_up() in kvaser_usb_leaf_wait_cmd()? Is it also
affected by this problem?
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists