OSDN Git Service

netlink: split up copies in the ack construction
authorJakub Kicinski <kuba@kernel.org>
Thu, 27 Oct 2022 21:25:53 +0000 (14:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2022 09:13:10 +0000 (09:13 +0000)
commit738136a0e3757a8534df3ad97d6ff6d7f429f6c1
tree4ea24529d3600c1aa926aaa791f1085af6c111e6
parenteca485d22165695587bed02d8b9d0f7f44246c4a
netlink: split up copies in the ack construction

Clean up the use of unsafe_memcpy() by adding a flexible array
at the end of netlink message header and splitting up the header
and data copies.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
include/uapi/linux/netlink.h
net/netlink/af_netlink.c