aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorJack Morgenstein <[email protected]>2007-10-18 17:36:43 +0200
committerRoland Dreier <[email protected]>2007-10-18 09:27:26 -0700
commit839041329fd3410e07d614f81e75bb43367d8f89 (patch)
treeae9b3f9dd42bb9f4652637d6700b685e2f41e961 /fs/jbd2/commit.c
parentfd312561adcc90e924f35d3032d5493aeb4c3017 (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 <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions