Skip to content

Commit 62ae9c7

Browse files
tpamborfabiobaltieri
authored andcommitted
net: if: Fix net_if_list iteration issue for offloaded interfaces
Disable ASAN for net_if config to avoid iteration issues caused by AddressSanitizer padding. Signed-off-by: Tim Pambor <[email protected]>
1 parent 8788f8b commit 62ae9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/net/net_if.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3475,7 +3475,7 @@ extern int net_stats_prometheus_scrape(struct prometheus_collector *collector,
34753475
}; \
34763476
static Z_DECL_ALIGN(struct net_if) \
34773477
NET_IF_GET_NAME(dev_id, sfx)[NET_IF_MAX_CONFIGS] \
3478-
__used __in_section(_net_if, static, \
3478+
__used __noasan __in_section(_net_if, static, \
34793479
dev_id) = { \
34803480
[0 ... (NET_IF_MAX_CONFIGS - 1)] = { \
34813481
.if_dev = &(NET_IF_DEV_GET_NAME(dev_id, sfx)), \

0 commit comments

Comments
 (0)