• Chuck Lever's avatar
    NFSD: Update rq_next_page between COMPOUND operations · ed4a567a
    Chuck Lever authored
    A GETATTR with a large result can advance xdr->page_ptr without
    updating rq_next_page. If a splice READ follows that GETATTR in the
    COMPOUND, nfsd_splice_actor can start splicing at the wrong page.
    
    I've also seen READLINK and READDIR leave rq_next_page in an
    unmodified state.
    
    There are potentially a myriad of combinations like this, so play it
    safe: move the rq_next_page update to nfsd4_encode_operation.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    ed4a567a
nfs4xdr.c 142 KB