WSL2-Linux-Kernel/net/mctp
Eugene Syromiatnikov aaf0562f71 mctp: handle the struct sockaddr_mctp padding fields
commit 1e4b50f06d upstream.

In order to have the padding fields actually usable in the future,
there have to be checks that user space doesn't supply non-zero garbage
there.  It is also worth setting these padding fields to zero, unless
it is known that they have been already zeroed.

Cc: stable@vger.kernel.org # v5.15
Fixes: 5a20dd46b8 ("mctp: Be explicit about struct sockaddr_mctp padding")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Acked-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-18 19:16:02 +01:00
..
Kconfig mctp: Add MCTP base 2021-07-29 15:06:49 +01:00
Makefile mctp: Add neighbour implementation 2021-07-29 15:06:50 +01:00
af_mctp.c mctp: handle the struct sockaddr_mctp padding fields 2021-11-18 19:16:02 +01:00
device.c mctp: Allow per-netns default networks 2021-07-29 15:06:50 +01:00
neigh.c mctp: Add neighbour netlink interface 2021-07-29 15:06:50 +01:00
route.c mctp: perform route destruction under RCU read lock 2021-09-08 11:29:16 +01:00