linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "홍신 shin hong" <hongshin@gmail.com>
To: matthew@wil.cx, linux-fsdevel@vger.kernel.org
Subject: a suspected race at __posix_lock_file()
Date: Fri, 24 Jul 2009 14:56:24 +0900	[thread overview]
Message-ID: <2014bcab0907232256y18f98816r15464c024a934ae7@mail.gmail.com> (raw)

Hi. I found a suspected race condition bug at fs/locks/__posix_lock_file()
in recent Linux kernel.

This bug is similar to the one reported in ChangeLog 2.6.24 ( commit
85c59580b30c82aa771aa33b37217a6b6851bc14 ).

Big Kernel Lock(BKL) might be released and re-taken
at the call site of locks_delete_lock()
since Releasing-On-Block semantics of BKL.
Locks_delete_lock() may be blocked by kmem_cache_alloc() invocation.

Please examine the possbility of race condition of this code
and let me know your opinion.

             reply	other threads:[~2009-07-24  5:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24  5:56 홍신 shin hong [this message]
2009-07-26 22:20 ` a suspected race at __posix_lock_file() Matthew Wilcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2014bcab0907232256y18f98816r15464c024a934ae7@mail.gmail.com \
    --to=hongshin@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=matthew@wil.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).