Thread (13 messages) 13 messages, 4 authors, 2016-09-02

Re: possible circular locking dependency detected

flat view

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-09-01 22:04:40

On Thu, Sep 1, 2016 at 2:43 PM, Linus Torvalds
[off-list ref] wrote:
On Thu, Sep 1, 2016 at 2:01 PM, Al Viro [off-list ref] wrote:
quoted
Outside as in "all fs activity in bind happens under it".  Along with
assignment to ->u.addr, etc.  IOW, make it the outermost lock there.
Hah, yes. I misunderstood you.

Yes. In fact that fixes the problem I mentioned, rather than introducing it.
So the easiest approach would seem to be to revert commit c845acb324aa
("af_unix: Fix splice-bind deadlock"), and then apply the lock split.

Like the attached two patches.

This is still *entirely* untested.

Rainer?

                 Linus

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help