Skip to content

pcap: fix race condition when add bpf socket#79

Open
cw-Guo wants to merge 1 commit intosflow:masterfrom
cw-Guo:fix/pcap-race
Open

pcap: fix race condition when add bpf socket#79
cw-Guo wants to merge 1 commit intosflow:masterfrom
cw-Guo:fix/pcap-race

Conversation

@cw-Guo
Copy link

@cw-Guo cw-Guo commented Aug 1, 2025

This pull requests fixed two issues:

  1. "check-then-act" race condition in addBPFSocket which may cause multiple bpf sockets added for a single device.
  2. tap_close mark the fd wrongly, which causes EVSocketClose fails to locate the socket

@cw-Guo cw-Guo changed the title fix race condition when add bpf socket pcap: fix race condition when add bpf socket Aug 1, 2025
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