* a suspected race at __posix_lock_file()
@ 2009-07-24 5:56 홍신 shin hong
2009-07-26 22:20 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: 홍신 shin hong @ 2009-07-24 5:56 UTC (permalink / raw)
To: matthew, linux-fsdevel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: a suspected race at __posix_lock_file()
2009-07-24 5:56 a suspected race at __posix_lock_file() 홍신 shin hong
@ 2009-07-26 22:20 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2009-07-26 22:20 UTC (permalink / raw)
To: ?????? shin hong; +Cc: linux-fsdevel
On Fri, Jul 24, 2009 at 02:56:24PM +0900, ?????? shin hong wrote:
> 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.
Could you explain to me how locks_delete_lock() calls kmem_cache_alloc()?
> Please examine the possbility of race condition of this code
> and let me know your opinion.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-26 22:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 5:56 a suspected race at __posix_lock_file() 홍신 shin hong
2009-07-26 22:20 ` Matthew Wilcox
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).