zhhyu7 commented on PR #21931:
URL: https://github.com/apache/nuttx/pull/21931#issuecomment-7004693287

   > @xiaoxiang781216 @GUIDINGLI @zhhyu7
   > 
   > 
[7f04498](https://github.com/apache/nuttx/commit/7f04498f157399639d5eb9e97f3b6fa08524caaf)
 removes netdev_lock(dev) around the receive loop in 
netdev_upper_rxpoll_work(), so non-VLAN RX also runs without the device lock 
now. netdev_upper_input() still expects the device locked, and 
netdev_upper_txavail_work() still takes it, so RX and TX race on dev->d_iob.
   > 
   > Reproducer: sim with a bridged netdev, 4 host TCP connections echo 256 KiB 
each through the node at the same time. From 
[7f04498](https://github.com/apache/nuttx/commit/7f04498f157399639d5eb9e97f3b6fa08524caaf)
 on the node crashes in every run:
   > 
   > ```
   > Assertion failed : at file: /mm/iob/iob_copyin.c:69 task: hpwork
   > ```
   > 
   > The commit before it does not crash. Restoring the lock around the loop 
removes the crash, but in RX_DIRECT mode it runs the VLAN device RX poll under 
the real device lock again.
   
   Hi @raiden00pl please try this fix patch 
https://github.com/apache/nuttx/pull/22039


-- 
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]

Reply via email to