Skip to content
Commit 1e4b50f0 authored by Eugene Syromiatnikov's avatar Eugene Syromiatnikov Committed by Jakub Kicinski
Browse files

mctp: handle the struct sockaddr_mctp padding fields



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: 5a20dd46 ("mctp: Be explicit about struct sockaddr_mctp padding")
Signed-off-by: default avatarEugene Syromiatnikov <esyr@redhat.com>
Acked-by: default avatarJeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a5bda908
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment