From: Sasha Levin Date: Thu, 4 Dec 2014 00:22:48 +0000 (-0500) Subject: time: settimeofday: Validate the values of tv from user X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~229^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ada1fc0e1c4775de0e043e1bd3ae9d065491aa5;p=pandora-kernel.git 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 Cc: Ingo Molnar Cc: stable Signed-off-by: Sasha Levin [jstultz: include trivial milisecond->microsecond correction noticed by Andy] Signed-off-by: John Stultz --- Reading git-diff-tree failed