Skip to content
Commit 1eead93a authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Anas Nashif
Browse files

net: tcp: Do not mark TCP segment not sent in net_if



If the TCP segment is not sent properly by L2, then do not mark
it "not sent" in net_if.c:net_if_tx(). That "not sent" marking
confused TCP ref counting in tcp.c:tcp_retry_expired() and caused
the packet to be freed too early which then caused free net_buf
access issue during packet resend. This free memory access was
seen with zperf sample application.

From TCP point of view, the packet can be considered sent when
it is given to L2. The TCP timer will resend the packet if needed.

Fixes #15050

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 30d31936
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment