freebsd-dev/sys/netlink
Alexander V. Chernikov 9f324d8ac2 netlink: make netlink work correctly on CHERI.
Current Netlink message writer code relies on executing callbacks
 with arbitrary data (pointer or integer) to flush the completed
 messages.
This arbitrary data is stored as a union of { void *, uint64_t }.
At some stage, the message flushing code copied this data, using
 direct uint64_t assignment instead of copying the union. It lead
 to failure on CHERI, as sizeof(pointer) == 16 there.

Fix the code by making union non-anonymous and copying it entirely.

Reviewed by:	br, jhb, jrtc27
Differential Revision: https://reviews.freebsd.org/D39557
MFC after:	2 weeks
2023-04-14 16:33:43 +00:00
..
route netlink: improve source ifa selection algorithm when adding routes. 2023-04-09 13:33:22 +00:00
netlink_ctl.h netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netlink_debug.h
netlink_domain.c netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netlink_generic_kpi.c netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netlink_generic.c netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netlink_generic.h netlink: fix genetlink CTRL_ATTR_MCAST_GRP_MAX define. 2022-10-31 15:03:27 +00:00
netlink_glue.c netlink: fix 19e43c163c by adding miseed netlinkg_glue.c 2023-03-27 16:09:02 +00:00
netlink_io.c netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netlink_linux.h
netlink_message_parser.c carp: support unicast 2023-03-20 14:37:09 +01:00
netlink_message_parser.h carp: support unicast 2023-03-20 14:37:09 +01:00
netlink_message_writer.c netlink: make netlink work correctly on CHERI. 2023-04-14 16:33:43 +00:00
netlink_message_writer.h netlink: make netlink work correctly on CHERI. 2023-04-14 16:33:43 +00:00
netlink_module.c netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netlink_route.c netlink: allow netlink sockets in non-vnet jails. 2023-03-26 08:44:09 +00:00
netlink_route.h
netlink_snl_generic.h netlink: improve snl(3) 2023-03-15 20:53:20 +00:00
netlink_snl_route_compat.h fix buildworld after 595d23f777. 2023-03-09 15:45:57 +00:00
netlink_snl_route_parsers.h netlink: fix NULL check in the default route snl(3) parser. 2023-04-02 12:44:20 +00:00
netlink_snl_route.h carp: support unicast 2023-03-20 14:37:09 +01:00
netlink_snl.h netlink: fix snl_read_reply_multi(). 2023-04-02 12:41:53 +00:00
netlink_var.h netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netlink.h netlink: fix NLMSG_SPACE() macro. 2022-10-31 15:02:12 +00:00