freebsd-dev/sys/netlink/route
Mark Johnston 7a78ae8865 netlink: Zero-initialize writer structures allocated on the stack
The prevailing pattern seems to be to simply initialize all fields to
zero.  Without this, it's possible to trigger a branch on uninitialized
memory, specifically, when testing nw->ignore_limit in
nlmsg_refill_buffer().

Initialize the writer structure in a couple of functions where this is
necessary.

Reported by:	KMSAN
Reviewed by:	melifaro
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D38213
2023-01-26 10:46:19 -05:00
..
common.h
iface_drivers.c netlink: improve interface handling 2022-12-14 19:52:35 +00:00
iface.c netlink: improve RTM_GETADDR handling. 2023-01-08 15:06:34 +00:00
ifaddrs.h netlink: improve RTM_GETADDR handling. 2023-01-08 15:06:34 +00:00
interface.h netlink: improve interface handling 2022-12-14 19:52:35 +00:00
neigh.c netlink: use (void) for function definitions with no arguments 2022-10-27 11:14:00 -04:00
neigh.h
nexthop.c netlink: Use NET_EPOCH_[CALL|WAIT] macros 2022-12-21 09:40:05 +08:00
nexthop.h
route_var.h netlink: improve interface handling 2022-12-14 19:52:35 +00:00
route.h
rt.c netlink: Zero-initialize writer structures allocated on the stack 2023-01-26 10:46:19 -05:00