]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Fix check for unsupported fields in match param
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 3 Nov 2021 15:51:03 +0000 (17:51 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Nov 2021 20:20:20 +0000 (12:20 -0800)
commitab34f00ab0b37f6090b13ab04e591ba3526d2c2a
tree4e301654489d8cc4387c55964a7826f5d07d8451
parentec52ac7a066e98fbe7a6c22567e7f8363110392b
net/mlx5: DR, Fix check for unsupported fields in match param

The existing loop doesn't cast the buffer while scanning it, which
results in out-of-bounds read and failure to create the matcher.

Fixes: 5b1ca1f0f96a ("net/mlx5: DR, Add check for unsupported fields in match param")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c