[PATCH 3.12 150/176] time: settimeofday: Validate the values of tv from user

2015-01-29 Thread Jiri Slaby
From: Sasha Levin 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6ada1fc0e1c4775de0e043e1bd3ae9d065491aa5 upstream. An unvalidated user input is multiplied by a constant, which can result in an undefined behaviour for large values. While

[PATCH 3.12 150/176] time: settimeofday: Validate the values of tv from user

2015-01-29 Thread Jiri Slaby
From: Sasha Levin sasha.le...@oracle.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6ada1fc0e1c4775de0e043e1bd3ae9d065491aa5 upstream. An unvalidated user input is multiplied by a constant, which can result in an undefined behaviour for