Searched hist:"9176 ab1b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/time/ |
H A D | time.c | 9176ab1b Sat Jul 06 19:51:41 CDT 2019 zhengbin <zhengbin13@huawei.com> 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 9176ab1b Sat Jul 06 19:51:41 CDT 2019 zhengbin <zhengbin13@huawei.com> 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
|