Skip to content

Conversation

@jukkar
Copy link
Member

@jukkar jukkar commented Oct 29, 2025

As the net_pkt might have already been sent by net_if_try_send_data() function, the pkt might already contain garbage data. So do not try to access if after that send call but remember the used iface and family and use them to update the statistics.

The issue was seen with qemu_x86_64 and qemu_cortex_a53 when CONFIG_SMP was enabled.

As the net_pkt might have already been sent by net_if_try_send_data()
function, the pkt might already contain garbage data. So do not try
to access if after that send call but remember the used iface and family
and use them to update the statistics.

The issue was seen with qemu_x86_64 and qemu_cortex_a53 when CONFIG_SMP
was enabled.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
@jukkar jukkar added this to the v4.3.0 milestone Oct 29, 2025
@sonarqubecloud
Copy link

Copy link
Contributor

@rlubos rlubos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@jukkar jukkar requested a review from cfriedt October 31, 2025 19:34
@jhedberg jhedberg merged commit 60f83dc into zephyrproject-rtos:main Oct 31, 2025
30 checks passed
@jukkar jukkar deleted the fix/do-not-access-possibly-unreffed-net-pkt branch November 3, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants