wenquan2015 opened a new pull request, #17715:
URL: https://github.com/apache/nuttx/pull/17715
## Summary
in multi-core cpu, tcp_free and tcp_timer_expiry->tcp_timer will work in
parallel, after tcp_free call work_cancle, tcp->timer will call
tcp_update_timer to re-add work to worker queue, then tcp_free free conn, in
this condition, it will result use after free.
## Impact
tcp
## Testing
Check the normal TCP process ok
```
NuttShell (NSH) NuttX-12.12.0-RC0
MOTD: username=admin password=Administrator
nsh> iperf -c 10.0.1.1 -i 1 -t 3
IP: 10.0.1.2
mode=tcp-client sip=10.0.1.2:5001,dip=10.0.1.1:5001, interval=1, time=3
Interval Transfer Bandwidth
0.00- 6.28 sec 359628800 Bytes 458.13 Mbits/sec
0.00- 6.28 sec 4307517440 Bytes 5487.28 Mbits/sec
iperf exit
nsh>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]