[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DF4C2B40-BD87-4E88-911D-E3E5F488CAE4@holtmann.org>
Date: Wed, 13 Nov 2013 06:56:23 +0900
From: Marcel Holtmann <marcel@...tmann.org>
To: Dave Jones <davej@...hat.com>
Cc: netdev@...r.kernel.org,
"linux-bluetooth@...r.kernel.org development"
<linux-bluetooth@...r.kernel.org>
Subject: Re: shutdown(3) and bluetooth.
Hi Dave,
> 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.
can you give us some extra information here. What kind of Bluetooth socket is this actually. From the top of my head, I have no idea why we would even wait forever. Normally when all low-level links are gone, the socket will shut down anyway.
Regards
Marcel
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists