[lkml]   [2018]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH V2] posix-timers: Protect posix clock array access against speculation
On Thu, Feb 15, 2018 at 9:01 AM, Peter Zijlstra <> 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 <>
>> Cc:
> Acked-by: Peter Zijlstra (Intel) <>

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

Acked-by: Dan Williams <>

 \ /
  Last update: 2018-03-07 19:14    [W:0.073 / U:2.996 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site