[PATCH] powerpc/legacy_serial: Fix UBSAN: array-index-out-of-bounds

Michael Ellerman patch-notifications at ellerman.id.au
Sun May 16 08:43:53 AEST 2021


On Sat, 8 May 2021 06:36:21 +0000 (UTC), Christophe Leroy wrote:
> UBSAN complains when a pointer is calculated with invalid
> 'legacy_serial_console' index, allthough the index is verified
> before dereferencing the pointer.
> 
> Fix it by checking 'legacy_serial_console' validity before
> calculating pointers.

Applied to powerpc/fixes.

[1/1] powerpc/legacy_serial: Fix UBSAN: array-index-out-of-bounds
      https://git.kernel.org/powerpc/c/63970f3c37e75997ed86dbdfdc83df35f2152bb1

cheers


More information about the Linuxppc-dev mailing list