diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2016-06-14 23:28:04 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-06-15 22:03:31 -0400 |
commit | feb9dad5209280085d5b0c094fa67e7a8d75c81a (patch) | |
tree | f7af4bd1e0c206528e71706bd62064fbea7082ad /include | |
parent | 39a9beab5acb83176e8b9a4f0778749a09341f1f (diff) | |
download | op-kernel-dev-feb9dad5209280085d5b0c094fa67e7a8d75c81a.zip op-kernel-dev-feb9dad5209280085d5b0c094fa67e7a8d75c81a.tar.gz |
nfsd: Always lock state exclusively.
It used to be the case that state had an rwlock that was locked for write
by downgrades, but for read for upgrades (opens). Well, the problem is
if there are two competing opens for the same state, they step on
each other toes potentially leading to leaking file descriptors
from the state structure, since access mode is a bitmap only set once.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions