On Thu, Feb 15, 2018 at 9:01 AM, Peter Zijlstra <pet...@infradead.org> wrote:
> On Thu, Feb 15, 2018 at 05:21:55PM +0100, Thomas Gleixner wrote:
>> The clockid argument of clockid_to_kclock() comes straight from user space
>> via various syscalls and is used as index into the posix_clocks array.
>> Protect it against spectre v1 array out of bounds speculation. Remove the
>> redundant check for !posix_clock[id] as this is another source for
>> speculation and does not provide any advantage over the return
>> posix_clock[id] path which returns NULL in that case anyway.
>> Signed-off-by: Thomas Gleixner <t...@linutronix.de>
>> Cc: sta...@vger.kernel.org
> Acked-by: Peter Zijlstra (Intel) <pet...@infradead.org>

Curious where this ended up, I don't see it on tip/master. In any event:

Acked-by: Dan Williams <dan.j.willi...@intel.com>

Reply via email to