Skip to content

Fix missing flow_ptr init for ARP node#785

Open
PlagueCZ wants to merge 1 commit into
mainfrom
fix/cls_arp_flow_init
Open

Fix missing flow_ptr init for ARP node#785
PlagueCZ wants to merge 1 commit into
mainfrom
fix/cls_arp_flow_init

Conversation

@PlagueCZ

Copy link
Copy Markdown
Contributor

If ARP packet is encountered by CLS node, the graph will send the packet over to ARP node. That node then sends all proper packets to Tx node.

However as seen in tx_node.c:92, Tx node requires df->conntrack to be initialized.

Since dp_init_flow_ptr() had not yet been called, the pointer df->conntrack value is whatever was in the private packet area. And because packets come from a pool where packets get recycled, this can contain some valid memory from previous packets.

This can be a big source of strange memory corruption.

Connected to issue #784

@PlagueCZ PlagueCZ requested a review from a team as a code owner June 21, 2026 19:38
@github-actions github-actions Bot added bug Something isn't working size/XS labels Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/XS

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant