Re: [PATCH 1/3] can: peak_usb: fix potential "UBSAN: shitf-out-of-bounds" issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15.02.2024 16:26:54, Stephane Grosjean wrote:
> Shift exponent 32 is too large for 32-bit type 'int' so u64 values are
> used instead.

FYI: Consider migrating this code to timecounter_read/cyclecounter. See

| https://elixir.bootlin.com/linux/v6.7/source/drivers/net/can/spi/mcp251xfd/mcp251xfd-timestamp.c

for an example.

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: signature.asc
Description: PGP signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux