From: Milan Broz <mbroz@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] Fix a double close() in clvmd (fixing another deadlock bug)
Date: Wed, 27 Oct 2010 09:45:47 +0200 [thread overview]
Message-ID: <4CC7D8AB.10706@redhat.com> (raw)
In-Reply-To: <87fwvs1q5z.fsf@twilight.int.mornfall.net.>
On 10/27/2010 01:37 AM, Petr Rockai wrote:
> - a connection to clvmd is about to finish, let's say the fd is 13 (it
> often happens to be in my test script, don't ask why)
> - the local_sock thread calls close(13)
> - the lvm thread calls open("/proc/devices"...) and gets 13
> - the main_loop thread calls close(13) [OOPS!]
> - new connection arrives, and is accept'd by a (new) local_sock thread
> - the accept gives an fd of 13 (since it's the lowest free fd at this point)
> - the lvm thread gets around to read from it's /proc/devices
> handle... 13, again
> - the lvm thread hangs forever trying to read from the socket instead
> from /proc/devices
Aieeeee. Which fd you want to read today? This sounds so secure... :)
But I still think it is not the real deadlocking problem still...
Anyway, should I build another test rpm with that?
Of course, Ack.
Milan
prev parent reply other threads:[~2010-10-27 7:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-26 23:37 [PATCH] Fix a double close() in clvmd (fixing another deadlock bug) Petr Rockai
2010-10-27 7:45 ` Milan Broz [this message]
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=4CC7D8AB.10706@redhat.com \
--to=mbroz@redhat.com \
--cc=lvm-devel@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.