mirror of
https://passt.top/passt
synced 2024-12-22 13:45:32 +00:00
396307541e
Some architectures, including i686, actually have a recv() system call, not just a recvfrom(), and we need to cover the recv() with MSG_TRUNC into a NULL buffer for them as well. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
18 lines
400 B
Plaintext
18 lines
400 B
Plaintext
# tcp_sock_consume() calls recv() with MSG_TRUNC and no buffer to discard data
|
|
{
|
|
passt_recv_MSG_TRUNC_into_NULL_buffer
|
|
Memcheck:Param
|
|
socketcall.recvfrom(buf)
|
|
...
|
|
fun:tcp_sock_consume
|
|
}
|
|
|
|
# same as above, for architectures with the recv() system call (at least i686):
|
|
{
|
|
passt_recv_MSG_TRUNC_into_NULL_buffer
|
|
Memcheck:Param
|
|
socketcall.recv(buf)
|
|
...
|
|
fun:tcp_sock_consume
|
|
}
|