aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPeter Hurley <[email protected]>2016-01-12 23:14:46 +0000
committerGreg Kroah-Hartman <[email protected]>2016-02-07 07:04:51 +0000
commit308bbc9ab838d0ace0298268c7970ba9513e2c65 (patch)
treed9f36e4b088a95cfffd280cda838ff4a3f5cbcc9 /net/unix/af_unix.c
parent8250: uniphier: allow modular build with 8250 console (diff)
downloadkernel-308bbc9ab838d0ace0298268c7970ba9513e2c65.tar.gz
kernel-308bbc9ab838d0ace0298268c7970ba9513e2c65.zip
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: <[email protected]> # 3.12+ Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions