summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/lib/U3patch.S
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2006-06-26 12:59:17 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-07-24 20:35:25 -0700
commitba4532fa45b99a866d253877372f086503a944c6 (patch)
tree700b02aaf776f164ea76cb4c8373e59bd4eeaa07 /arch/sparc64/lib/U3patch.S
parent5bd9689ce4b9ffd657be1462f4b2f5a0d10cd450 (diff)
downloadlinux-stable-ba4532fa45b99a866d253877372f086503a944c6.tar.gz
linux-stable-ba4532fa45b99a866d253877372f086503a944c6.tar.bz2
linux-stable-ba4532fa45b99a866d253877372f086503a944c6.zip
USB serial ftdi_sio: Prevent userspace DoS (CVE-2006-2936)
This patch limits the amount of outstanding 'write' data that can be queued up for the ftdi_sio driver, to prevent userspace DoS attacks (or simple accidents) that use up all the system memory by writing lots of data to the serial port. The original patch was by Guillaume Autran, who in turn based it on the same mechanism implemented in the 'visor' driver. I (Ian Abbott) re-targeted the patch to the latest sources, fixed a couple of errors, renamed his new structure members, and updated the implementations of the 'write_room' and 'chars_in_buffer' methods to take account of the number of outstanding 'write' bytes. It seems to work fine, though at low baud rates it is still possible to queue up an amount of data that takes an age to shift (a job for another day!). Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/sparc64/lib/U3patch.S')
0 files changed, 0 insertions, 0 deletions