Re: [PATCH 2/2] lib/graph: rte_malloc for cache-aligned structs

2025-06-17 Thread Jerin Jacob
On Tue, Jun 17, 2025 at 7:07 PM Stephen Hemminger wrote: > > On Tue, 17 Jun 2025 11:52:08 +0100 > Marat Khalili wrote: > > > This was flagged by undefined behaviour sanitizer: struct > > rte_graph_cluster_stats is declared as `__rte_cache_aligned` but was > > allocated using stdlib realloc which

Re: [PATCH 2/2] lib/graph: rte_malloc for cache-aligned structs

2025-06-17 Thread Stephen Hemminger
On Tue, 17 Jun 2025 11:52:08 +0100 Marat Khalili wrote: > This was flagged by undefined behaviour sanitizer: struct > rte_graph_cluster_stats is declared as `__rte_cache_aligned` but was > allocated using stdlib realloc which caused misaligned allocation. More > than one test needs to be executed

Re: [PATCH 2/2] lib/graph: rte_malloc for cache-aligned structs

2025-06-17 Thread Jerin Jacob
On Tue, Jun 17, 2025 at 4:32 PM Marat Khalili wrote: > > This was flagged by undefined behaviour sanitizer: struct > rte_graph_cluster_stats is declared as `__rte_cache_aligned` but was > allocated using stdlib realloc which caused misaligned allocation. More > than one test needs to be executed i

[PATCH 2/2] lib/graph: rte_malloc for cache-aligned structs

2025-06-17 Thread Marat Khalili
This was flagged by undefined behaviour sanitizer: struct rte_graph_cluster_stats is declared as `__rte_cache_aligned` but was allocated using stdlib realloc which caused misaligned allocation. More than one test needs to be executed in series in order to reproduce the problem using graph_autotest,