• V
    selftests/tls: Fix recv(MSG_PEEK) & splice() test cases · f22a4d8c
    Vakul Garg 提交于
    [ Upstream commit 0ed3015c9964dab7a1693b3e40650f329c16691e ]
    
    TLS test cases splice_from_pipe, send_and_splice &
    recv_peek_multiple_records expect to receive a given nummber of bytes
    and then compare them against the number of bytes which were sent.
    Therefore, system call recv() must not return before receiving the
    requested number of bytes, otherwise the subsequent memcmp() fails.
    This patch passes MSG_WAITALL flag to recv() so that it does not return
    prematurely before requested number of bytes are copied to receive
    buffer.
    Signed-off-by: NVakul Garg <vakul.garg@nxp.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    Signed-off-by: NSasha Levin <sashal@kernel.org>
    f22a4d8c
tls.c 17.6 KB