anchao opened a new pull request, #6590: URL: https://github.com/apache/incubator-nuttx/pull/6590
## Summary net/poll: fix race condition if connect free before poll teardown Net poll teardown is not protected by net lock, if the conn is released before teardown, the assertion failure will be triggered during free dev callback, this patch will add the net lock around net poll teardown to fix race condition nuttx/libs/libc/assert/lib_assert.c:36 nuttx/net/devif/devif_callback.c:85 nuttx/net/tcp/tcp_netpoll.c:405 nuttx/fs/vfs/fs_poll.c:244 nuttx/fs/vfs/fs_poll.c:500 Signed-off-by: chao.an <anc...@xiaomi.com> ## Impact socket in multi-thread ## Testing close socket fd during poll -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org