site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Alexander, To report a such bug you should open a problem report at https://bugreport.apple.com/ Thanks, Vincent On Aug 13, 2010, at 2:38 PM, Alexander Klyuev wrote:
Hi All,
I already wrote about this issue: kev_vendor_code_find() call causes kernel panic when network stack is not entirely up (net_str_id_lock object is still uninitialized (NULL).
Here is simplified call sequence: -------------------------------------- kev_vendor_code_find(...) net_str_id_find_internal(...) lck_mtx_lock(net_str_id_lock) <= where net_str_id_lock value is NULL. ... kernel panic -------------------------------------
However IMHO such a function MUST NEVER cause kernel crash whenever it is called because it's possible to check whether a pointer argument ("net_str_id_lock" in this case) is NULL before call to lck_mtx_lock() and return an error code not causing kernel panic. So that is definitely a bug.
Am I missing something?
Thanks for further responses.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com