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 |
||
---|---|---|
.. | ||
common.h | ||
iface_drivers.c | ||
iface.c | ||
ifaddrs.h | ||
interface.h | ||
neigh.c | ||
neigh.h | ||
nexthop.c | ||
nexthop.h | ||
route_var.h | ||
route.h | ||
rt.c |