linux-stable/net/mctp
Matt Johnston 0ebe7ca9e2 mctp: Use output netdev to allocate skb headroom
[ Upstream commit 4a9dda1c1d ]

Previously the skb was allocated with headroom MCTP_HEADER_MAXLEN,
but that isn't sufficient if we are using devs that are not MCTP
specific.

This also adds a check that the smctp_halen provided to sendmsg for
extended addressing is the correct size for the netdev.

Fixes: 833ef3b91d ("mctp: Populate socket implementation")
Reported-by: Matthew Rinaldi <mjrinal@g.clemson.edu>
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 19:27:29 +02:00
..
test mctp: make __mctp_dev_get() take a refcount hold 2022-04-13 19:27:18 +02:00
Kconfig mctp: Add flow extension to skb 2021-10-29 13:23:51 +01:00
Makefile mctp: Add test utils 2021-10-03 14:35:41 +01:00
af_mctp.c mctp: Use output netdev to allocate skb headroom 2022-04-13 19:27:29 +02:00
device.c mctp: make __mctp_dev_get() take a refcount hold 2022-04-13 19:27:18 +02:00
neigh.c mctp: Remove only static neighbour on RTM_DELNEIGH 2022-01-02 12:18:14 +00:00
route.c mctp: Use output netdev to allocate skb headroom 2022-04-13 19:27:29 +02:00