diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2007-10-30 11:20:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-30 09:04:18 -0700 |
commit | 97855b49b6bac0bd25f16b017883634d13591d00 (patch) | |
tree | e0895adabfda85bd9dc7514265940fdef8b1e506 /arch/mips/kernel/branch.c | |
parent | fb7267acfef1de3e49d4e0c80be3cc603e974b3b (diff) |
locks: fix possible infinite loop in posix deadlock detection
It's currently possible to send posix_locks_deadlock() into an infinite
loop (under the BKL).
For now, fix this just by bailing out after a few iterations. We may
want to fix this in a way that better clarifies the semantics of
deadlock detection. But that will take more time, and this minimal fix
is probably adequate for any realistic scenario, and is simple enough to
be appropriate for applying to stable kernels now.
Thanks to George Davis for reporting the problem.
Cc: "George G. Davis" <gdavis@mvista.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/kernel/branch.c')
0 files changed, 0 insertions, 0 deletions