xiaoxiang781216 commented on code in PR #20412: URL: https://github.com/apache/nuttx/pull/20412#discussion_r4163095815
########## include/nuttx/addrenv.h: ########## @@ -530,6 +536,16 @@ int addrenv_give(FAR struct addrenv_s *addrenv); void addrenv_drop(FAR struct addrenv_s *addrenv, bool deferred); +#ifdef CONFIG_BUILD_KERNEL +bool access_ok(FAR const void *ptr, size_t len); +bool uaccess_nested(FAR const void *parent, FAR const void *ptr); Review Comment: but why not check call access_ok for both parent and child pointer -- 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]
