Files
linux/kernel
Peter Zijlstra 7281c8dec8 sched/core: Fix possible Spectre-v1 indexing for sched_prio_to_weight[]
> kernel/sched/core.c:6921 cpu_weight_nice_write_s64() warn: potential spectre issue 'sched_prio_to_weight'

Userspace controls @nice, so sanitize the value before using it to
index an array.

Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
2018-05-05 08:32:36 +02:00
..
2018-04-20 22:09:51 +02:00
…
…
2018-03-15 20:34:40 +01:00
…
…
…
…
…
2018-01-05 18:43:00 +11:00
2018-04-11 10:28:35 -07:00
…
2018-04-30 12:09:56 -04:00
…
…