android_kernel_motorola_sm6375/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dan Carpenter 4990f529b7 RDMA/mlx4: Make check for invalid flags stricter
[ Upstream commit d64b1ee12a168030fbb3e0aebf7bce49e9a07589 ]

This code is trying to ensure that only the flags specified in the list
are allowed.  The problem is that ucmd->rx_hash_fields_mask is a u64 and
the flags are an enum which is treated as a u32 in this context.  That
means the test doesn't check whether the highest 32 bits are zero.

Fixes: 4d02ebd9bb ("IB/mlx4: Fix RSS hash fields restrictions")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-08-11 11:53:48 +02:00
..
core IB/uverbs: Fix to consider event queue closing also upon non-blocking mode 2023-06-21 15:44:11 +02:00
hw RDMA/mlx4: Make check for invalid flags stricter 2023-08-11 11:53:48 +02:00
sw RDMA/rxe: Fix the use-before-initialization error of resp_pkts 2023-06-21 15:44:11 +02:00
ulp IB/isert: Fix incorrect release of isert connection 2023-06-21 15:44:11 +02:00
Kconfig
Makefile