You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Meissi-jian (via GitHub)" <gi...@apache.org> on 2024/05/14 08:04:50 UTC

[PR] [net][udp] fix udp wrb-iob leak when NIC was down [nuttx]

Meissi-jian opened a new pull request, #12342:
URL: https://github.com/apache/nuttx/pull/12342

   ## Summary
   If NIC was down in func,the sendto_writebuffer_release will not release wrb cause setting "wrb->wb_iob = NULL" behind udp_wrbuffer_release
   "sendto_eventhandler" in udp_sendto_buffered.c L382 - L390
   ```
     if ((flags & NETDEV_DOWN) != 0)
       {
         ninfo("Device down: %04x\n", flags);
   
         /* Free the write buffer at the head of the queue and attempt to setup
          * the next transfer.
          */
   
         sendto_writebuffer_release(conn);
         return flags;
       }
   ```
   "sendto_writebuffer_release" in udp_sendto_buffered.c L158 - L160
   ```
       wrb->wb_iob = NULL;
   
       udp_wrbuffer_release(wrb);
   ```
   ## Impact
   UDP wrb
   
   ## Testing
   Passed on Vela product
   


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [net][udp] fix udp wrb-iob leak when NIC was down [nuttx]

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao merged PR #12342:
URL: https://github.com/apache/nuttx/pull/12342


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [net][udp] fix udp wrb-iob leak when NIC was down [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #12342:
URL: https://github.com/apache/nuttx/pull/12342#issuecomment-2110194765

   as @jerpelea suggested in a previous email, please include this information from yout Summary into commit message (the message you enter when you run "git commit"). Or add this to the Documentation (preferred since it will get wider views over web).


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org