Skip to content

Conversation

@copybara-service
Copy link

Rework netfilter tests in preparation for running them on Buildkite.

The main goal of this rework is to make the netfilter tests better to work with
on native Linux. The main change to this end is adding NetfilterBoundSocket,
which helped debug what was going on with NetlinkNetfilterBatchRequestAckOrError
on certain kernels. Prior to this, running the test natively on older kernels
would simply block forever.

Destroying test-created tables as cleanup actions has been removed in favour of
simply creating uniquely-named tables. This is preferable in case the destroy
command itself fails (as it does on older kernels), and we can guarantee that
tables won't get reused between tests, which causes problems.

ErrNewBaseChainWithUnsupportedFamilyChainTypePair has been removed because it is
incorrect regarding native Linux behaviour; support for it needs to be added in
gVisor but that's outside the scope of this CL.

socket_netlink_netfilter_test was tested on Linux 6.8 (cgroupsv2 agents on
buildkite).

@copybara-service copybara-service bot added the exported Issue was exported automatically label Oct 25, 2025
@copybara-service copybara-service bot force-pushed the test/cl823722006 branch 4 times, most recently from c0a699c to 6e63210 Compare October 30, 2025 17:34
@copybara-service copybara-service bot closed this Oct 30, 2025
@copybara-service copybara-service bot deleted the test/cl823722006 branch October 30, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant