arjav1528 opened a new pull request, #18712: URL: https://github.com/apache/nuttx/pull/18712
## Summary Bounce `sendmsg()` and `recvmsg()` through kernel heap buffers when `CONFIG_BUILD_KERNEL` is set, matching `sendto()` / `recvfrom()`. The network stack must not `memcpy` from user iovec bases while running in kernel context. ## Related - Fixes https://github.com/apache/nuttx/issues/17321 ## Testing - Host: `./tools/checkpatch.sh -f net/socket/sendmsg.c net/socket/recvmsg.c` passes. - Target (recommended): MPFS or other kernel build, `cansend can0 123#deadbeef` repeatedly; confirm CAN ID/DLC stay correct. ## Commits 1. `net/socket: Copy sendmsg iov into kernel heap for BUILD_KERNEL.` 2. `net/socket: Bounce recvmsg through kernel buffers for BUILD_KERNEL.` -- 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]
