diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2007-10-18 11:36:43 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-18 12:27:26 -0400 |
commit | 839041329fd3410e07d614f81e75bb43367d8f89 (patch) | |
tree | ae9b3f9dd42bb9f4652637d6700b685e2f41e961 /drivers/infiniband/core | |
parent | fd312561adcc90e924f35d3032d5493aeb4c3017 (diff) |
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>
Diffstat (limited to 'drivers/infiniband/core')
0 files changed, 0 insertions, 0 deletions