[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <162111863369.1890426.15615918327643788763.b4-ty@ellerman.id.au>
Date: Sun, 16 May 2021 08:43:53 +1000
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: pmenzel@...gen.mpg.de,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>
Cc: linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH] powerpc/legacy_serial: Fix UBSAN: array-index-out-of-bounds
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
Powered by blists - more mailing lists