Skip to content
Commit 8fba6724 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

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: default avatarFabian Vogt <fvogt@suse.de>

Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent 38bc0f4e
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