Thread (63 messages) 63 messages, 12 authors, 2019-09-18

Re: [PATCH v12 10/12] namei: aggressively check for nd->root escape on ".." resolution

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2019-09-04 21:37:12
Also in: linux-alpha, linux-api, linux-arch, linux-arm-kernel, linux-fsdevel, linux-kselftest, linux-mips, linux-s390, linux-sh, lkml, sparclinux

On Wed, Sep 4, 2019 at 2:35 PM Linus Torvalds
[off-list ref] wrote:
On Wed, Sep 4, 2019 at 2:09 PM Linus Torvalds
[off-list ref] wrote:
quoted
So you'd have three stages:

 1) ".." always returns -EXDEV

 2) ".." returns -EXDEV if there was a concurrent rename/mount

 3) ".." returns -EXDEV if there was a concurrent rename/mount and we
reset the sequence numbers and check if you escaped.
In fact, I wonder if this should return -EAGAIN instead - to say that
"retrying may work".
And here "this" was meant to be "case 2" - I was moving the quoted
text around and didn't fix my wording, so now it is ambiguous or
implies #3, which would be crazy.

Sorry for the confusion,

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