diff options
| author | zhengbin <[email protected]> | 2019-07-07 00:51:41 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-07-07 10:05:40 +0000 |
| commit | 9176ab1b848059a0cd9caf39f0cebaa1b7ec5ec2 (patch) | |
| tree | 7100c6b23fae3ed167439119a7ca1ac71344d6eb /fs/proc/array.c | |
| parent | timer: Document TIMER_PINNED (diff) | |
| download | kernel-9176ab1b848059a0cd9caf39f0cebaa1b7ec5ec2.tar.gz kernel-9176ab1b848059a0cd9caf39f0cebaa1b7ec5ec2.zip | |
time: Validate user input in compat_settimeofday()
The user value is validated after converting the timeval to a timespec, but
for a wide range of negative tv_usec values the multiplication overflow turns
them in positive numbers. So the 'validated later' is not catching the
invalid input.
Signed-off-by: zhengbin <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
