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 16.02.2024 14:22:02, Marc Kleine-Budde wrote:
> 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

This patch is good as it is, the conversion to
timecounter/cyclecounter is future work.

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