If there's anything else that you or others would like to know to narrow this down, please do let me know, either here on in the feedback issue FB15368430
Unfortunately, the discussion in that issue stalled because none of the logs that were shared could identify what was causing this issue.
We still keep running into this almost every week, so I went ahead and looked into the "xnu" source code that Apple publishes to understand what could cause this problem. Based on what I see in the code, I've updated this issue with the possible cause of this problem.
I think this investigation could have been much more simpler if there was some level of logging/debuggability in these socket filters area. Given what I see in the "xnu" related to socket filters, I have now opened an enhancement requesting for some logs at the right places to understand what socket/interface filters are in use on a given system and which one of those is returning a non-zero error during filtering of BSD socket operations. The feedback id for that enhancement is FB19570486.
I plan to pursue FB15368430 further but I may have reached the dead end because I don't have access to these socket filters' implementation code. So I hope someone who has access to those might be able to provide some hints/inputs on that feedback issue.
Topic:
App & System Services
SubTopic:
Networking
Tags: