diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-12-06 00:12:48 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-06 00:35:10 +0100 |
commit | 218d11a8b071b23b76c484fd5f72a4fe3306801e (patch) | |
tree | 6656f841973496b0717117f8031d22bea019fd00 /net/key | |
parent | Enforce a minimum SG_IO timeout (diff) | |
download | linux-218d11a8b071b23b76c484fd5f72a4fe3306801e.tar.xz linux-218d11a8b071b23b76c484fd5f72a4fe3306801e.zip |
Fix a race condition in FASYNC handling
Changeset a238b790d5f99c7832f9b73ac8847025815b85f7 (Call fasync()
functions without the BKL) introduced a race which could leave
file->f_flags in a state inconsistent with what the underlying
driver/filesystem believes. Revert that change, and also fix the same
races in ioctl_fioasync() and ioctl_fionbio().
This is a minimal, short-term fix; the real fix will not involve the
BKL.
Reported-by: Oleg Nesterov <oleg@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: stable@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions