Re: [PATCHv2] habanalabs: fix potential spectre v1 gadgets

From: Greg Kroah-Hartman
Date: Wed Feb 02 2022 - 14:02:29 EST


On Wed, Feb 02, 2022 at 06:19:24PM +0100, Jordy Zomer wrote:
> It appears like nr could be a Spectre v1 gadget as it's supplied by a
> user and used as an array index. Prevent the contents
> of kernel memory from being leaked to userspace via speculative
> execution by using array_index_nospec.

Can you wrap your lines in a standard way?


>
> Thanks for noticing Oded, made the changes.

This line should not be in the changelog :(

thanks,

greg k-h