summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2026-08-25 17:05:09 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2026-09-02 09:36:08 +0200
commit1642e6b6a6ae0dcf61280e1c3110eba62582d4d2 (patch)
tree284dea58c0e493fcac5b5468696ebd6cb5a7b595 /tools/lib/python
parenta6ca1a573e1fd9474c6226412fb743b4ef7e3472 (diff)
fuse: don't fill in.h.pid in case args->nocreds is set
Commit 794e811d1443 ("fuse: split out filesystem part of request sending") alters the pid sent on force && nocreds requests. 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. Move the nocreds check above setting args->pid. Also remove the WARN_ON(!args->nocreds) from the !args->force branch, since it's obviously not going to be triggered. Reported-by: David CARLIER <devnexen@gmail.com> Closes: https://lore.kernel.org/all/CA+XhMqye_NBihcadRTU=w4xAfrdY9rsMB3oHF5+bwHukkjHMoQ@mail.gmail.com/ Fixes: 794e811d1443 ("fuse: split out filesystem part of request sending") Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions