• David Howells's avatar
    rxrpc: Use info in skbuff instead of reparsing a jumbo packet · e2de6c40
    David Howells authored
    Use the information now cached in the skbuff private data to avoid the need
    to reparse a jumbo packet.  We can find all the subpackets by dead
    reckoning, so it's only necessary to note how many there are, whether the
    last one is flagged as LAST_PACKET and whether any have the REQUEST_ACK
    flag set.
    
    This is necessary as once recvmsg() can see the packet, it can start
    modifying it, such as doing in-place decryption.
    
    Fixes: 248f219c ("rxrpc: Rewrite the data and ack handling code")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    e2de6c40
recvmsg.c 19.5 KB