linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Al Viro <viro@zeniv.linux.org.uk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-fsdevel@vger.kernel.org, Christian Brauner <brauner@kernel.org>
Subject: Re: [RFC] more close_range() fun
Date: Fri, 16 Aug 2024 18:22:57 +0100	[thread overview]
Message-ID: <20240816172257.GC504335@ZenIV> (raw)
In-Reply-To: <20240816171925.GB504335@ZenIV>

On Fri, Aug 16, 2024 at 06:19:25PM +0100, Al Viro wrote:
> On Fri, Aug 16, 2024 at 09:26:45AM -0700, Linus Torvalds wrote:
> > On Thu, 15 Aug 2024 at 20:03, Al Viro <viro@zeniv.linux.org.uk> wrote:
> > >
> > > It *can* actually happen - all it takes is close_range(2) decision
> > > to trim the copied descriptor table made before the first dup2()
> > > and actual copying done after both dup2() are done.
> > 
> > I think this is fine. It's one of those "if user threads have no
> > serialization, they get what they get" situations.
> 
> As it is, unshare(CLOSE_FILES) gives you a state that might be possible

CLONE_FILES, that is.

  reply	other threads:[~2024-08-16 17:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-16  3:03 [RFC] more close_range() fun Al Viro
2024-08-16  3:07 ` Al Viro
2024-08-16  8:25 ` Christian Brauner
2024-08-16 11:15   ` Al Viro
2024-08-16 11:49     ` Al Viro
2024-08-16 16:26 ` Linus Torvalds
2024-08-16 17:19   ` Al Viro
2024-08-16 17:22     ` Al Viro [this message]
2024-08-16 17:55     ` Linus Torvalds
2024-08-16 17:58       ` Linus Torvalds
2024-08-16 18:15       ` Al Viro
2024-08-16 18:26         ` Linus Torvalds
2024-08-16 20:26           ` Al Viro
2024-08-16 23:35             ` Al Viro
2024-08-22  0:00               ` Al Viro
2024-10-04  4:52                 ` Al Viro

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=20240816172257.GC504335@ZenIV \
    --to=viro@zeniv.linux.org.uk \
    --cc=brauner@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /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 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).