diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-07-07 02:51:41 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-07-07 12:05:40 +0200 |
commit | 9176ab1b848059a0cd9caf39f0cebaa1b7ec5ec2 (patch) | |
tree | 7100c6b23fae3ed167439119a7ca1ac71344d6eb /kernel/events | |
parent | timer: Document TIMER_PINNED (diff) | |
download | linux-9176ab1b848059a0cd9caf39f0cebaa1b7ec5ec2.tar.xz linux-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 <zhengbin13@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1562460701-113301-1-git-send-email-zhengbin13@huawei.com
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions