diff options
author | Eugene Syromiatnikov <esyr@redhat.com> | 2021-11-03 20:09:42 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-04 19:17:34 -0700 |
commit | 1e4b50f06d970d8da3474d2a0354450416710bda (patch) | |
tree | 6fa90ca2b8f3b2c3046d7bd71c925c7c368d72f3 /mm/madvise.c | |
parent | a5bda90884bf4a6b455335244cad092a07f3eade (diff) | |
download | lwn-1e4b50f06d970d8da3474d2a0354450416710bda.tar.gz lwn-1e4b50f06d970d8da3474d2a0354450416710bda.zip |
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: 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>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions