diff options
author | 2012-08-29 15:14:35 +0000 | |
---|---|---|
committer | 2012-09-13 17:52:02 -0700 | |
commit | dd03e73481564fe57655d37154f84a0af00cb449 (patch) | |
tree | bfccd072c4492919bd29c4c2cbf85847a1c21a12 /lib/mpi/mpi-cmp.c | |
parent | Linux 3.6-rc3 (diff) | |
download | linux-dev-dd03e73481564fe57655d37154f84a0af00cb449.tar.xz linux-dev-dd03e73481564fe57655d37154f84a0af00cb449.zip |
mlx4_core: Fix integer overflows so 8TBs of memory registration works
This patch adds on the fixes done in commits 89dd86db78e0 ("mlx4_core:
Allow large mlx4_buddy bitmaps") and 3de819e6b642 ("mlx4_core: Fix
integer overflow issues around MTT table") so that memory registration
of up to 8TB (log_num_mtt=31) finally works.
It fixes integer overflows in a few mlx4_table_yyy routines in icm.c
by using a u64 intermediate variable, and int/uint issues that caused
table indexes to become nagive by setting some variables to be u32
instead of int. These problems cause crashes when a user attempted to
register > 512GB of RAM.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions