diff options
author | Eugene Syromiatnikov <esyr@redhat.com> | 2021-11-03 22:09:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-18 21:16:02 +0300 |
commit | aaf0562f7147e5345f41a26fa08aa04d37f175f5 (patch) | |
tree | 64b7b945ed4cc315e9301a4ebdc8e2b5ab0cef9e /drivers/power | |
parent | 22584cf24a510d538a688782cd98bfb3b5de1d7c (diff) | |
download | linux-aaf0562f7147e5345f41a26fa08aa04d37f175f5.tar.xz |
mctp: handle the struct sockaddr_mctp padding fields
commit 1e4b50f06d970d8da3474d2a0354450416710bda 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: 5a20dd46b8b84593 ("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>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions