Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Sasha Levin <[email protected]> [jstultz: include trivial milisecond->microsecond correction noticed by Andy] Signed-off-by: John Stultz <[email protected]> [lizf: Backported to 3.4: adjust filename] Signed-off-by: Zefan Li <[email protected]> Signed-off-by: D. Andrei Măceș <[email protected]>
- Loading branch information