* Re: [PATCH 23/32] fuse: split out filesystem part of request sending
@ 2026-06-27 20:16 David CARLIER
2026-07-17 14:20 ` Miklos Szeredi
0 siblings, 1 reply; 2+ messages in thread
From: David CARLIER @ 2026-06-27 20:16 UTC (permalink / raw)
To: Miklos Szeredi, fuse-devel, open list:SCHEDULER
Hi Miklos,
This change alters the pid sent on force && nocreds requests — intended?
Previously these allocated a zeroed request and skipped fuse_force_creds(),
so they went out with in.h.pid == 0. In fuse_fill_creds(), args->pid is
now set before the nocreds early return, and fuse_args_to_req() copies it
unconditionally — so writeback, release, and DESTROY requests now report the
triggering (often kernel-worker) pid instead of 0. uid/gid sit below the
return and are still left at 0.
Looks like the args->pid assignment was hoisted above the nocreds check by
accident. If keeping these requests credential-free is intended, setting pid
only where uid/gid are filled would restore it. If unconditional pid is
deliberate, disregard.
Cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 23/32] fuse: split out filesystem part of request sending
2026-06-27 20:16 [PATCH 23/32] fuse: split out filesystem part of request sending David CARLIER
@ 2026-07-17 14:20 ` Miklos Szeredi
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2026-07-17 14:20 UTC (permalink / raw)
To: David CARLIER; +Cc: fuse-devel, open list:SCHEDULER
On Sat, 27 Jun 2026 at 22:16, David CARLIER <devnexen@gmail.com> wrote:
>
> Hi Miklos,
>
> This change alters the pid sent on force && nocreds requests — intended?
>
> Previously these allocated a zeroed request and skipped fuse_force_creds(),
> so they went out with in.h.pid == 0. In fuse_fill_creds(), args->pid is
> now set before the nocreds early return, and fuse_args_to_req() copies it
> unconditionally — so writeback, release, and DESTROY requests now report the
> triggering (often kernel-worker) pid instead of 0. uid/gid sit below the
> return and are still left at 0.
>
> Looks like the args->pid assignment was hoisted above the nocreds check by
> accident. If keeping these requests credential-free is intended, setting pid
> only where uid/gid are filled would restore it. If unconditional pid is
> deliberate, disregard.
Your are right, this was accidental.
Do you want to send a patch?
Thanks,
Miklos
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-17 14:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 20:16 [PATCH 23/32] fuse: split out filesystem part of request sending David CARLIER
2026-07-17 14:20 ` Miklos Szeredi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox