summaryrefslogtreecommitdiffstats
path: root/kernel/sched/rt.c
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>2019-02-27 11:10:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-31 06:46:19 -0700
commit925275d0cc5d3710a4c06b043d5563015595616b (patch)
tree165fb3ddabf327be0e2a618686dcfb62473fd558 /kernel/sched/rt.c
parent4e4d5cea79a7ec06844981b1db87d431bddcf50b (diff)
downloadlinux-stable-925275d0cc5d3710a4c06b043d5563015595616b.tar.gz
linux-stable-925275d0cc5d3710a4c06b043d5563015595616b.tar.bz2
linux-stable-925275d0cc5d3710a4c06b043d5563015595616b.zip
sched/core: Check quota and period overflow at usec to nsec conversion
[ Upstream commit 1a8b4540db732ca16c9e43ac7c08b1b8f0b252d8 ] Large values could overflow u64 and pass following sanity checks. # echo 18446744073750000 > cpu.cfs_period_us # cat cpu.cfs_period_us 40448 # echo 18446744073750000 > cpu.cfs_quota_us # cat cpu.cfs_quota_us 40448 After this patch they will fail with -EINVAL. Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/155125502079.293431.3947497929372138600.stgit@buzz Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/sched/rt.c')
0 files changed, 0 insertions, 0 deletions