diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-01-12 15:14:46 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-25 12:01:14 -0800 |
commit | 5859b9077763ea1c3f4db47522bdcf300aedb080 (patch) | |
tree | f8b68d1987d9b4c86d79312eb46357cdeb89fdfe /fs/ext4 | |
parent | 76e88140aa9111605768e7725ec1c5b709d51865 (diff) |
serial: omap: Prevent DoS using unprivileged ioctl(TIOCSRS485)
commit 308bbc9ab838d0ace0298268c7970ba9513e2c65 upstream.
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")
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions