From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: yocto-patches@lists.yoctoproject.org,
Babanpreet Singh <bbnpreetsingh@gmail.com>
Cc: Mark Hatle <mark.hatle@amd.com>,
Mark Hatle <mark.hatle@kernel.crashing.org>,
Paul Barker <paul@pbarker.dev>,
Randy MacLeod <randy.macleod@windriver.com>,
Vincent Haupert <mail@vincent-haupert.de>
Subject: Re: [yocto-patches] [pseudo] [PATCH 0/3] closefrom/close_range: protect every pseudo fd, then drop one
Date: Wed, 29 Jul 2026 09:14:13 +0100 [thread overview]
Message-ID: <37a61cc641f5c8384248013f0e634ebefebe288b.camel@linuxfoundation.org> (raw)
In-Reply-To: <18C6AE58128B91FB.3067440@lists.yoctoproject.org>
On Wed, 2026-07-29 at 07:19 +0100, Richard Purdie via
lists.yoctoproject.org wrote:
> On Wed, 2026-07-29 at 05:08 +0000, Babanpreet Singh wrote:
> > On Tue, 2026-07-28 at 16:59 +0100, Richard Purdie wrote:
> > > I think the missing piece is this:
> > >
> > > - if (op != OP_CHROOT && op != OP_CHDIR && op != OP_CLOSE && op
> > > != OP_CLOSEFROM && op != OP_DUP
> > > + if (op != OP_CHROOT && op != OP_CHDIR && op != OP_CLOSE && op
> > > != OP_CLOSEFROM && op != OP_CLOSE_RANGE && op != OP_DUP
> >
> > Sorry for the breakage, and thanks for chasing it down.
> >
> > I can reproduce it both ways on master-next at 6d65d74, with a
> > probe that
> > opens an fd and calls close_range(fd, ~0U, 0):
> >
> > no PSEUDO_*_PATHS set OK
> > PSEUDO_IGNORE_PATHS covering the fd's path SIGSEGV
> > PSEUDO_INCLUDE_PATHS set, path not in it SIGSEGV
> > same env, closefrom() instead OK
> > all of the above, plus your line OK
> >
> > For OP_CLOSE_RANGE the path comes from fd_path(lowfd), the ignore
> > check
> > hits it, and pseudo_client_op() returns early with result still 0,
> > which
> > close_range.c then dereferences.
> >
> > Two things before I respin. Do you want the three fd-protect
> > patches
> > resent, or will you carry the master-next commits since you have
> > already
> > resolved the conflicts? And the ignore-path line: fold it into the
> > close_range patch with a Suggested-by, or keep it as your own
> > commit ahead
> > of it? Either works for me.
>
> You can fold the above piece in with a suggested by, it doesn't make
> sense in a commit on its own. I can take the other fd-protect patches
> if you're ok with that change, I need to update the commit messages.
>
> Whilst most builds are testing cleanly, we are seeing these two
> failures:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4403
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4466
>
> which look like a pseudo problem, and that is with the current pseudo
> master-next. I think there is still some issue remaining somewhere
> unfortunately. I'm afraid I don't know what it is.
One of those doesn't look to be pseudo, the arm one definitely does
though. It looks like it may be arch specific.
Cheers,
Richard
next prev parent reply other threads:[~2026-07-29 8:14 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 5:41 [pseudo] [PATCH 0/2] close_range: implement it rather than return ENOSYS Baban
2026-07-15 5:41 ` [pseudo] [PATCH 1/2] ports/linux/guts: Implement close_range() instead of returning ENOSYS Baban
2026-07-15 19:51 ` [yocto-patches] " Paul Barker
2026-07-15 5:41 ` [pseudo] [PATCH 2/2] tests: Add close_range() test Baban
2026-07-15 20:03 ` [yocto-patches] " Paul Barker
2026-07-16 5:56 ` [pseudo] [PATCH v2 0/2] close_range: implement it rather than return ENOSYS Babanpreet Singh
2026-07-16 5:56 ` [pseudo] [PATCH v2 1/2] ports/linux/guts: Implement close_range() instead of returning ENOSYS Babanpreet Singh
2026-07-28 9:22 ` Richard Purdie
[not found] ` <18C669BEC7E582E7.1643407@lists.yoctoproject.org>
2026-07-28 10:15 ` [yocto-patches] " Richard Purdie
[not found] ` <18C66CA235EABC94.3010641@lists.yoctoproject.org>
2026-07-28 10:48 ` Richard Purdie
2026-07-16 5:56 ` [pseudo] [PATCH v2 2/2] tests: Add close_range() test Babanpreet Singh
2026-07-16 10:46 ` [pseudo] [PATCH v2 0/2] close_range: implement it rather than return ENOSYS Richard Purdie
2026-07-16 15:46 ` Babanpreet Singh
2026-07-16 16:55 ` Richard Purdie
2026-07-16 23:16 ` [yocto-patches] " Mark Hatle
2026-07-16 23:08 ` Mark Hatle
2026-07-18 4:37 ` [pseudo] [PATCH 0/3] closefrom/close_range: protect every pseudo fd, then drop one Babanpreet Singh
2026-07-18 4:37 ` [pseudo] [PATCH 1/3] pseudo_client: step fully past pseudo's own fds when computing startfd Babanpreet Singh
2026-07-18 4:37 ` [pseudo] [PATCH 2/3] pseudo_client: step around all of pseudo's own fds in closefrom/close_range Babanpreet Singh
2026-07-18 4:37 ` [pseudo] [PATCH 3/3] pseudo_client: remove the unused pseudo_prefix_dir_fd Babanpreet Singh
2026-07-28 5:08 ` [pseudo] [PATCH 0/3] closefrom/close_range: protect every pseudo fd, then drop one Babanpreet Singh
2026-07-28 8:14 ` Richard Purdie
[not found] ` <18C6660077364169.3010641@lists.yoctoproject.org>
2026-07-28 15:48 ` [yocto-patches] " Richard Purdie
[not found] ` <18C67ECA93F98D2F.1643407@lists.yoctoproject.org>
2026-07-28 15:59 ` Richard Purdie
2026-07-29 5:08 ` Babanpreet Singh
2026-07-29 6:19 ` Richard Purdie
[not found] ` <18C6AE58128B91FB.3067440@lists.yoctoproject.org>
2026-07-29 8:14 ` Richard Purdie [this message]
[not found] ` <18C6B495C3317260.3067440@lists.yoctoproject.org>
2026-07-29 14:55 ` [yocto-patches] " Richard Purdie
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=37a61cc641f5c8384248013f0e634ebefebe288b.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=bbnpreetsingh@gmail.com \
--cc=mail@vincent-haupert.de \
--cc=mark.hatle@amd.com \
--cc=mark.hatle@kernel.crashing.org \
--cc=paul@pbarker.dev \
--cc=randy.macleod@windriver.com \
--cc=yocto-patches@lists.yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.