The motivation for this work is to improve the test coverage and reliability of the Netlink subsystem, specifically for the core af_netlink.c and genetlink.c components. While the subsystem is critical for kernel-userspace communication, its coverage by the existing selftests is quite limited.
To quantify the improvement, these new selftests achieve the following line coverage (as measured by gcov): - net/netlink/af_netlink.c: 84.0% - net/netlink/genetlink.c: 88.8%
Integrating these tests into the upstream suite will provide long-term stability and make it safer to refactor or add new features to the Netlink core in the future.
пт, 12 сент. 2025 г. в 23:17, Jakub Kicinski kuba@kernel.org:
пт, 12 сент. 2025 г. в 23:17, Jakub Kicinski kuba@kernel.org:
On Fri, 12 Sep 2025 22:53:23 +0300 Yana Bashlykova wrote:
This series adds comprehensive testing infrastructure for Netlink and Generic Netlink
The implementation includes both kernel module and userspace tests to verify correct Generic Netlink and Netlink behaviors under various conditions.
What is the motivation for this work?