pussuw opened a new pull request, #8072: URL: https://github.com/apache/nuttx/pull/8072
## Summary With flat addressing the user pollfd list is given directly to the drivers that perform the notification. This is fine when the addressing is flat, as there is no ambiguity on who gets notified and the fds memory is always mapped. For kernel mode with MMU this does not work. The notification must be done via a temporary buffer allocated from kernel memory. Thus, create a copy of the user fds and pass the copy to the drivers. Afterwards copy the output events back to the user. ## Impact Fixes poll() for CONFIG_BUILD_KERNEL ## Testing icicle:knsh and in house risc-v target using CONFIG_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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org