diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-24 08:55:53 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-02-01 15:52:37 -0300 |
| commit | e098446037da532d4a250efac9a813bc22f3669f (patch) | |
| tree | ce713e99d7439f68f67303a6d933a074b5e9753c /scripts/cpp | |
| parent | e09e7b1492b2d5c2f68ddf81f8f58e093dd4df6d (diff) | |
| download | glibc-e098446037da532d4a250efac9a813bc22f3669f.tar.xz glibc-e098446037da532d4a250efac9a813bc22f3669f.zip | |
linux: Fix ancillary 64-bit time timestamp conversion (BZ #28349, BZ#28350)
The __convert_scm_timestamps only updates the control message last
pointer for SOL_SOCKET type, so if the message control buffer contains
multiple ancillary message types the converted timestamp one might
overwrite a valid message.
The test checks if the extra ancillary space is correctly handled
by recvmsg/recvmmsg, where if there is no extra space for the 64-bit
time_t converted message the control buffer should be marked with
MSG_TRUNC. It also check if recvmsg/recvmmsg handle correctly multiple
ancillary data.
Checked on x86_64-linux and on i686-linux-gnu on both 5.11 and
4.15 kernel.
Co-authored-by: Fabian Vogt <fvogt@suse.de>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
(cherry picked from commit 8fba672472ae0055387e9315fc2eddfa6775ca79)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions
