summaryrefslogtreecommitdiffstats
path: root/sound/oss
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-11-03 08:00:10 -0400
committerJ. Bruce Fields <bfields@redhat.com>2017-11-27 16:45:10 -0500
commit15ca08d3299682dc49bad73251677b2c5017ef08 (patch)
tree7ec15aa6f9733c2692b060d72a507b1e4ac4c470 /sound/oss
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
downloadlinux-stable-15ca08d3299682dc49bad73251677b2c5017ef08.tar.gz
linux-stable-15ca08d3299682dc49bad73251677b2c5017ef08.tar.bz2
linux-stable-15ca08d3299682dc49bad73251677b2c5017ef08.zip
nfsd: Fix stateid races between OPEN and CLOSE
Open file stateids can linger on the nfs4_file list of stateids even after they have been closed. In order to avoid reusing such a stateid, and confusing the client, we need to recheck the nfs4_stid's type after taking the mutex. Otherwise, we risk reusing an old stateid that was already closed, which will confuse clients that expect new stateids to conform to RFC7530 Sections 9.1.4.2 and 16.2.5 or RFC5661 Sections 8.2.2 and 18.2.4. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'sound/oss')
0 files changed, 0 insertions, 0 deletions