[rds-devel] [External] : Re: rds: possible cross netns leak via RDS_INFO_* getsockopt
Xie Maoyi
maoyi.xie at ntu.edu.sg
Wed May 6 07:10:43 UTC 2026
Hi Allison,
Thanks for confirming the direction.
We will rewrite the patch as a per entry netns filter in each
of the affected handlers, instead of the init_net gate in
rds_info_getsockopt() that we mentioned. Concretely:
rds_sock_info / rds6_sock_info: skip rds_sock_list entries
whose socket netns does not match the caller's netns.
rds_tcp_tc_info / rds6_tcp_tc_info: skip rds_tcp_tc_list
entries the same way.
rds_conn_info / rds6_conn_info and the *_message_info_*
variants: skip rds_conn_hash[] entries whose c_net does
not match the caller's netns.
This preserves the rds-tcp behaviour where a caller outside
init_net with legitimate connections in their own netns can
still see them.
We will send the patch as a separate reply once it is ready
and verified against the same PoC.
Thanks,
Maoyi Xie and Praveen Kakkolangara
Maoyi Xie
Nanyang Technological University
https://maoyixie.com/
________________________________
CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents.
Towards a sustainable earth: Print only when necessary. Thank you.
More information about the rds-devel
mailing list