+22
−10
Loading
mainline inclusion from mainline-v6.10-rc1 commit 8c1185fef68cc603b954fece2a434c9f851d6a86 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBPC5V CVE: CVE-2025-21732 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8c1185fef68cc603b954fece2a434c9f851d6a86 -------------------------------- umem can be NULL for user application mkeys in some cases. Therefore umem can't be used for checking if the mkey is cacheable and it is changed for checking a flag that indicates it. Also make sure that all mkeys which are not returned to the cache will be destroyed. Fixes: dd1b913f ("RDMA/mlx5: Cache all user cacheable mkeys on dereg MR flow") Signed-off-by:Or Har-Toov <ohartoov@nvidia.com> Link: https://lore.kernel.org/r/2690bc5c6896bcb937f89af16a1ff0343a7ab3d0.1712140377.git.leon@kernel.org Signed-off-by:
Leon Romanovsky <leon@kernel.org> Conflicts: drivers/infiniband/hw/mlx5/mr.c [Fix context diff as commit 57e7071683ef not merged] Signed-off-by:
Ye Bin <yebin10@huawei.com>