aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2018-04-20 12:29:51 +0000
committerIngo Molnar <[email protected]>2018-05-05 06:32:36 +0000
commit7281c8dec8a87685cb54d503d8cceef5a0fc2fdd (patch)
treed6297b366411ba9abe1dc8caa98f1d1fb91006ec /lib/memory-notifier-error-inject.c
parentsched/core: Introduce set_special_state() (diff)
downloadkernel-7281c8dec8a87685cb54d503d8cceef5a0fc2fdd.tar.gz
kernel-7281c8dec8a87685cb54d503d8cceef5a0fc2fdd.zip
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]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions