diff options
author | Dan Carpenter | 2023-06-29 09:07:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-08-03 10:24:02 +0200 |
commit | 10b5920c33c12cfd64c50234d41dd35a425ddc10 (patch) | |
tree | 60b7cc12aa1a0883559c7070b7416ff2a11d3847 /fs/utimes.c | |
parent | 539cf23cb48835c69cc3d22edff28b92bd82bb18 (diff) |
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: 4d02ebd9bbbd ("IB/mlx4: Fix RSS hash fields restrictions")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/233ed975-982d-422a-b498-410f71d8a101@moroto.mountain
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/utimes.c')
0 files changed, 0 insertions, 0 deletions