Linux CAN drivers development
 help / color / mirror / Atom feed
* Re: [PATCH] can: kvaser_usb: leaf: Fix infinite loop on zero-length cmd
@ 2025-10-23  6:16 Marc Kleine-Budde
  2025-10-23 16:30 ` [PATCH v2] can: kvaser_usb: leaf: Fix potential infinite loop in command parsers pip-izony
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Kleine-Budde @ 2025-10-23  6:16 UTC (permalink / raw)
  To: pip-izony
  Cc: Vincent Mailhol, Kyungtae Kim, Jimmy Assarsson, linux-can,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

On 22.10.2025 20:39:09, pip-izony wrote:
> From: Seungjin Bae <eeodqql09@gmail.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   |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-03  8:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAAsoPpV7Kzap1Sn8QFtBbvwW-DJMTTcU_bBOUDYYC286Uaddtg@mail.gmail.com>
2025-10-23 16:27 ` [PATCH v2] can: kvaser_usb: leaf: Fix potential infinite loop in command parsers pip-izony
2025-10-26 13:26   ` Jimmy Assarsson
2025-10-29 10:53     ` Jimmy Assarsson
     [not found]       ` <CAAsoPpWaj4iq7HN7DiGpEGTpCv34jNneC-5oLdtyou9qniU2Yw@mail.gmail.com>
2025-11-03  8:51         ` Jimmy Assarsson
2025-10-23  6:16 [PATCH] can: kvaser_usb: leaf: Fix infinite loop on zero-length cmd Marc Kleine-Budde
2025-10-23 16:30 ` [PATCH v2] can: kvaser_usb: leaf: Fix potential infinite loop in command parsers pip-izony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox