diff options
author | Konstantin Khlebnikov <[email protected]> | 2019-02-27 11:10:17 +0300 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-04-19 13:42:09 +0200 |
commit | 1a010e29cfa00fee2888fd2fd4983f848cbafb58 (patch) | |
tree | fe7a600c464f655492c109f38f6e427e0a08327b /scripts/gdb/linux/modules.py | |
parent | bee9853932e90ce94bce4276ec6b7b06bc48070b (diff) |
sched/rt: Check integer overflow at usec to nsec conversion
Example of unhandled overflows:
# echo 18446744073709651 > cpu.rt_runtime_us
# cat cpu.rt_runtime_us
99
# echo 18446744073709900 > cpu.rt_period_us
# cat cpu.rt_period_us
348
After this patch they will fail with -EINVAL.
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/155125501739.293431.5252197504404771496.stgit@buzz
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions