Peter Hurley 308bbc9ab8 serial: omap: Prevent DoS using unprivileged ioctl(TIOCSRS485)
The omap-serial driver emulates RS485 delays using software timers,
but neglects to clamp the input values from the unprivileged
ioctl(TIOCSRS485). Because the software implementation busy-waits,
malicious userspace could stall the cpu for ~49 days.

Clamp the input values to < 100ms.

Fixes: 4a0ac0f55b18 ("OMAP: add RS485 support")
Cc: <stable@vger.kernel.org>  # 3.12+
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-06 23:04:51 -08:00
..
2015-11-04 21:35:12 -08:00
2016-01-31 17:00:27 -08:00
2015-03-31 12:04:13 +02:00
2015-05-10 19:26:37 +02:00
2015-10-17 21:11:29 -07:00
2015-10-17 21:14:06 -07:00
2015-11-20 16:19:54 -08:00
2015-12-12 23:05:28 -08:00
2015-12-13 19:59:48 -08:00