tipc: Abort excessive send requests as early as possible
authorAllan Stephens <Allan.Stephens@windriver.com>
Tue, 20 Apr 2010 21:58:24 +0000 (17:58 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 10 May 2011 20:03:56 +0000 (16:03 -0400)
commitc29c3f70c9eb6f18090da5af9dbe9dcb4adece8c
tree28521412e2c927952bd4fea9dbae49db55b12f16
parent66e019a6af827a254641e83e96ee36b0f4adc5e3
tipc: Abort excessive send requests as early as possible

Adds checks to TIPC's socket send routines to promptly detect and
abort attempts to send more than 66,000 bytes in a single TIPC
message or more than 2**31-1 bytes in a single TIPC byte stream request.
In addition, this ensures that the number of iovecs in a send request
does not exceed the limits of a standard integer variable.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/tipc.h
net/tipc/socket.c