Dan Rosenberg 218854af84 rds: Integer overflow in RDS cmsg handling
In rds_cmsg_rdma_args(), the user-provided args->nr_local value is
restricted to less than UINT_MAX.  This seems to need a tighter upper
bound, since the calculation of total iov_size can overflow, resulting
in a small sock_kmalloc() allocation.  This would probably just result
in walking off the heap and crashing when calling rds_rdma_pages() with
a high count value.  If it somehow doesn't crash here, then memory
corruption could occur soon after.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-11-17 12:20:52 -08:00
..
2010-10-25 13:09:44 -07:00
2010-10-25 13:09:43 -07:00
2010-11-12 14:07:14 -08:00
2010-10-28 10:27:01 -07:00
2010-11-10 12:12:00 -08:00
2010-09-23 14:33:39 -07:00
2010-09-23 14:33:39 -07:00
2010-10-21 15:44:13 +02:00
2010-11-16 09:50:47 -08:00
2010-09-23 14:33:39 -07:00
2010-04-20 16:37:13 -07:00
2010-11-10 12:12:00 -08:00
2010-10-29 04:16:28 -04:00
2010-10-26 16:52:15 -07:00
2010-08-09 11:25:17 +02:00
2010-10-21 03:09:46 -07:00
2010-10-15 15:53:27 +02:00