linux_dsm_epyc7002/drivers/infiniband/hw
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
..
amso1100 [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
cxgb3 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2007-10-11 19:43:13 -07:00
ehca IB/ehca: Enable large page MRs by default 2007-10-17 21:47:47 -07:00
ipath IB/ipath: Minor fix to ordering of freeing and zeroing of tid pages. 2007-10-09 21:03:02 -07:00
mlx4 IB/mlx4: Sanity check userspace send queue sizes 2007-10-18 09:27:26 -07:00
mthca IB/mthca: Avoid alignment traps when writing doorbells 2007-10-15 20:17:27 -07:00