diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2014-12-03 19:22:48 -0500 |
---|---|---|
committer | Luis Henriques <luis.henriques@canonical.com> | 2015-02-02 10:01:02 +0000 |
commit | 66497921ef096800e2f731194c6ab531d0722ccb (patch) | |
tree | f56e67d74d4868ca281b159b90771211804770d4 /Documentation/kernel-parameters.txt | |
parent | e9f7cc53499ab56b0374061a9264b70df7870266 (diff) |
time: settimeofday: Validate the values of tv from user
commit 6ada1fc0e1c4775de0e043e1bd3ae9d065491aa5 upstream.
An unvalidated user input is multiplied by a constant, which can result in
an undefined behaviour for large values. While this is validated later,
we should avoid triggering undefined behaviour.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
[jstultz: include trivial milisecond->microsecond correction noticed
by Andy]
Signed-off-by: John Stultz <john.stultz@linaro.org>
[ luis: backported to 3.16: adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'Documentation/kernel-parameters.txt')
0 files changed, 0 insertions, 0 deletions