android_kernel_motorola_sm6225/drivers/infiniband/hw/mlx4
Jack Morgenstein 839041329f IB/mlx4: Sanity check userspace send queue sizes
Add sanity checks to send queue sizes passed in from userspace. The
minimum sq stride value below is taken from the MT25408 PRM (section
11.10, Table 306, log_sq_stride definition).

Without this check, userspace can submit arbitrarily large/small
values for the number of WQEs and the stride, which can crash the
kernel.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-10-18 09:27:26 -07:00
..
ah.c IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters 2007-05-08 18:00:38 -07:00
cq.c IB/mlx4: Fix opcode returned in RDMA read completion 2007-08-03 14:29:06 -07:00
doorbell.c IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters 2007-05-08 18:00:38 -07:00
Kconfig IB: Use menuconfig for InfiniBand menu 2007-07-09 20:12:26 -07:00
mad.c IB/mlx4: Incorrect semicolon after if statement 2007-08-15 20:24:06 -07:00
main.c IB/mlx4: Implement FMRs 2007-10-09 19:59:16 -07:00
Makefile IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters 2007-05-08 18:00:38 -07:00
mlx4_ib.h IB/mlx4: Implement FMRs 2007-10-09 19:59:16 -07:00
mr.c IB/mlx4: Implement FMRs 2007-10-09 19:59:16 -07:00
qp.c IB/mlx4: Sanity check userspace send queue sizes 2007-10-18 09:27:26 -07:00
srq.c IB/mlx4: Fix up SRQ limit_watermark endianness 2007-10-09 19:59:06 -07:00
user.h IB/mlx4: Handle new FW requirement for send request prefetching 2007-06-18 08:13:48 -07:00