Skip to content

Copy netlink memberships in complete words - #15265

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl992760074
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl992760074

Conversation

@copybara-service

Copy link
Copy Markdown

Copy netlink memberships in complete words

The short-buffer handling introduced in 8d6b0cf copied partial membership words. Linux copies only complete 32-bit words and reports the full bitmap size 1.

Keep that copy boundary in the netlink socket. Check every short buffer length and its untouched tail, and let the multicast test accept the kernel's bitmap size instead of requiring eight bytes.

Assisted-by: OpenAI Codex

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15161 from tamird:netlink-membership-copy 6e908d7

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Oct 3, 2026
@copybara-service
copybara-service Bot force-pushed the test/cl992760074 branch 9 times, most recently from 2d6008d to 11680b3 Compare October 7, 2026 20:38
The short-buffer handling introduced in 8d6b0cf copied partial membership words. Linux copies only complete 32-bit words and reports the full bitmap size [1].

Keep that copy boundary in the netlink socket. Check every short buffer length and its untouched tail, and let the multicast test accept the kernel's bitmap size instead of requiring eight bytes.

[1]: https://github.com/torvalds/linux/blob/830b3c68c/net/netlink/af_netlink.c#L1766-L1786

Assisted-by: OpenAI Codex

<!-- codex-thread: 01a0680f-bbf5-7511-95f7-4414f4e10d2e -->

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15161 from tamird:netlink-membership-copy 6e908d7
PiperOrigin-RevId: 992760074
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