aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <[email protected]>2019-02-27 11:10:18 +0300
committerIngo Molnar <[email protected]>2019-04-19 13:42:10 +0200
commit5b61d50ab4ef590f5e1d4df15cd2cea5f5715308 (patch)
tree5ff78a0cea29abcde6e7bc6f7c9e8e1f772a071a /tools/perf/scripts/python/exported-sql-viewer.py
parent1a010e29cfa00fee2888fd2fd4983f848cbafb58 (diff)
sched/core: Handle overflow in cpu_shares_write_u64
Bit shift in scale_load() could overflow shares. This patch saturates it to MAX_SHARES like following sched_group_set_shares(). Example: # echo 9223372036854776832 > cpu.shares # cat cpu.shares Before patch: 1024 After pattch: 262144 Signed-off-by: Konstantin Khlebnikov <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/155125501891.293431.3345233332801109696.stgit@buzz Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions