Re: [PATCH] Fix unused memseg length for memory issue

2025-01-01 Thread Yang Ming
On 2025/1/1 20:34, Dmitry Kozlyuk wrote: 2024-12-26 16:10 (UTC+0800), Yang Ming: Fix the issue where OS memory is mistakenly freed with rte_free by setting the length (len) of unused memseg to 0. When eal_legacy_hugepage_init releases the VA space for unused memseg lists, it does not reset thei

Re: [PATCH] Fix unused memseg length for memory issue

2025-01-01 Thread Dmitry Kozlyuk
2024-12-26 16:10 (UTC+0800), Yang Ming: > Fix the issue where OS memory is mistakenly freed with rte_free > by setting the length (len) of unused memseg to 0. > > When eal_legacy_hugepage_init releases the VA space for unused > memseg lists, it does not reset their length to 0. As a result, > mlx5

[PATCH] Fix unused memseg length for memory issue

2024-12-26 Thread Yang Ming
Fix the issue where OS memory is mistakenly freed with rte_free by setting the length (len) of unused memseg to 0. When eal_legacy_hugepage_init releases the VA space for unused memseg lists, it does not reset their length to 0. As a result, mlx5_mem_is_rte may incorrectly identify OS memory as DP