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
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]> Cc: stable <[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]>
- Loading branch information