linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: shutdown(3) and bluetooth.
       [not found] <20131112211125.GA2912@redhat.com>
@ 2013-11-12 21:13 ` David Miller
  2013-11-13 14:02   ` John W. Linville
  0 siblings, 1 reply; 2+ messages in thread
From: David Miller @ 2013-11-12 21:13 UTC (permalink / raw)
  To: davej; +Cc: netdev, linux-bluetooth, linux-wireless

From: Dave Jones <davej@redhat.com>
Date: Tue, 12 Nov 2013 16:11:25 -0500

> Is shutdown() allowed to block indefinitely ? The man page doesn't say either way,
> and I've noticed that my fuzz tester occasionally hangs for days spinning in bt_sock_wait_state()
> 
> Is there something I should be doing to guarantee that this operation
> will either time out, or return instantly ?
> 
> In this specific case, I doubt anything is on the "sender" end of the socket, so
> it's going to be waiting forever for a state change that won't arrive.

Adding bluetooth and wireless lists.  Dave, please consult MAINTAINERS when
asking questions like this, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: shutdown(3) and bluetooth.
  2013-11-12 21:13 ` shutdown(3) and bluetooth David Miller
@ 2013-11-13 14:02   ` John W. Linville
  0 siblings, 0 replies; 2+ messages in thread
From: John W. Linville @ 2013-11-13 14:02 UTC (permalink / raw)
  To: David Miller; +Cc: davej, netdev, linux-bluetooth, linux-wireless

On Tue, Nov 12, 2013 at 04:13:50PM -0500, David Miller wrote:
> From: Dave Jones <davej@redhat.com>
> Date: Tue, 12 Nov 2013 16:11:25 -0500
> 
> > Is shutdown() allowed to block indefinitely ? The man page doesn't say either way,
> > and I've noticed that my fuzz tester occasionally hangs for days spinning in bt_sock_wait_state()
> > 
> > Is there something I should be doing to guarantee that this operation
> > will either time out, or return instantly ?
> > 
> > In this specific case, I doubt anything is on the "sender" end of the socket, so
> > it's going to be waiting forever for a state change that won't arrive.
> 
> Adding bluetooth and wireless lists.  Dave, please consult MAINTAINERS when
> asking questions like this, thanks!

I don't have an authoritative answer.  I do, however, seem to recall
that trying to shutdown a SunOS box with a hung NFS mount would seem
to hang forever.  I don't think that is a great metric for how we
should behave, of course...

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-13 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20131112211125.GA2912@redhat.com>
2013-11-12 21:13 ` shutdown(3) and bluetooth David Miller
2013-11-13 14:02   ` John W. Linville

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).