Skip to content

Fix bpf deadlock, which might occur when using DHCP#1

Open
stffabi wants to merge 1 commit intosaittam:masterfrom
stffabi:fix-bpf-deadlocks
Open

Fix bpf deadlock, which might occur when using DHCP#1
stffabi wants to merge 1 commit intosaittam:masterfrom
stffabi:fix-bpf-deadlocks

Conversation

@stffabi
Copy link
Copy Markdown

@stffabi stffabi commented Feb 9, 2019

It seems like it's possible that during the processing of bpf_callback
sometimes set_bpf_tap is called which then deadlocks BPF
in the kernel.

This manifests in different problems on the network stack and OSX
can't even shutdown anymore because it can't unload the KEXT.

set_bpf_tap is deprecated so we could get rid of it, but I don't know
since what kernel version the new implementation is available.

It seems like it's possible that during the processing of bpf_callback
sometimes set_bpf_tap is called which then deadlocks BPF
in the kernel.

This manifests in different problems on the network stack and OSX
can't even shutdown anymore because it can't unload the KEXT.

set_bpf_tap is deprecated so we could get rid of it, but I don't know
since what kernel version the new implementation is available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant