Re: [PATCH v1] ARM: bcm2835: Fix integer overflow in rpi_firmware_print_firmware_revision()

2020-06-17 Thread Nicolas Saenz Julienne
On Tue, 2020-06-16 at 19:31 +0300, Andy Shevchenko wrote: > time64_t is 64-bit width type, we are not supposed to supply lesser ones > as in the case of rpi_firmware_print_firmware_revision() after the commit > 4a60f58ee002 ("ARM: bcm2835: Switch to use %ptT"). Use temporary variable > of time64_t

Re: [PATCH v1] ARM: bcm2835: Fix integer overflow in rpi_firmware_print_firmware_revision()

2020-06-16 Thread Petr Mladek
On Tue 2020-06-16 18:42:00, Nicolas Saenz Julienne wrote: > On Tue, 2020-06-16 at 19:31 +0300, Andy Shevchenko wrote: > > time64_t is 64-bit width type, we are not supposed to supply lesser ones > > as in the case of rpi_firmware_print_firmware_revision() after the commit > > 4a60f58ee002 ("ARM: bc

Re: [PATCH v1] ARM: bcm2835: Fix integer overflow in rpi_firmware_print_firmware_revision()

2020-06-16 Thread Sergey Senozhatsky
On (20/06/16 18:42), Nicolas Saenz Julienne wrote: > On Tue, 2020-06-16 at 19:31 +0300, Andy Shevchenko wrote: > > time64_t is 64-bit width type, we are not supposed to supply lesser ones > > as in the case of rpi_firmware_print_firmware_revision() after the commit > > 4a60f58ee002 ("ARM: bcm2835:

Re: [PATCH v1] ARM: bcm2835: Fix integer overflow in rpi_firmware_print_firmware_revision()

2020-06-16 Thread Nicolas Saenz Julienne
On Tue, 2020-06-16 at 19:31 +0300, Andy Shevchenko wrote: > time64_t is 64-bit width type, we are not supposed to supply lesser ones > as in the case of rpi_firmware_print_firmware_revision() after the commit > 4a60f58ee002 ("ARM: bcm2835: Switch to use %ptT"). Use temporary variable > of time64_t

[PATCH v1] ARM: bcm2835: Fix integer overflow in rpi_firmware_print_firmware_revision()

2020-06-16 Thread Andy Shevchenko
time64_t is 64-bit width type, we are not supposed to supply lesser ones as in the case of rpi_firmware_print_firmware_revision() after the commit 4a60f58ee002 ("ARM: bcm2835: Switch to use %ptT"). Use temporary variable of time64_t type to correctly handle lesser types. Fixes: 4a60f58ee002 ("ARM: