• J
    nfsd4: fix use-after-free of 4.1 client on connection loss · 2e4b7239
    J. Bruce Fields 提交于
    Once we drop the lock here there's nothing keeping the client around:
    the only lock still held is the xpt_lock on this socket, but this socket
    no longer has any connection with the client so there's no way for other
    code to know we're still using the client.
    
    The solution is simple: all nfsd4_probe_callback does is set a few
    variables and queue some work, so there's no reason we can't just keep
    it under the lock.
    Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
    2e4b7239
nfs4state.c 132.6 KB