<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-next.git/fs/fuse/req.c, branch master</title>
<subtitle>Linux kernel latest source</subtitle>
<id>http://mirrors.hust.edu.cn/git/linux-next.git/atom?h=master</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/linux-next.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/linux-next.git/'/>
<updated>2026-09-02T07:36:08+00:00</updated>
<entry>
<title>fuse: don't fill in.h.pid in case args-&gt;nocreds is set</title>
<updated>2026-09-02T07:36:08+00:00</updated>
<author>
<name>Miklos Szeredi</name>
<email>mszeredi@redhat.com</email>
</author>
<published>2026-08-25T15:05:09+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/linux-next.git/commit/?id=1642e6b6a6ae0dcf61280e1c3110eba62582d4d2'/>
<id>urn:sha1:1642e6b6a6ae0dcf61280e1c3110eba62582d4d2</id>
<content type='text'>
Commit 794e811d1443 ("fuse: split out filesystem part of request sending")
alters the pid sent on force &amp;&amp; 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-&gt;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-&gt;pid.  Also remove the
WARN_ON(!args-&gt;nocreds) from the !args-&gt;force branch, since it's obviously
not going to be triggered.

Reported-by: David CARLIER &lt;devnexen@gmail.com&gt;
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 &lt;mszeredi@redhat.com&gt;
</content>
</entry>
<entry>
<title>fuse: split out filesystem part of request sending</title>
<updated>2026-06-15T12:06:17+00:00</updated>
<author>
<name>Miklos Szeredi</name>
<email>mszeredi@redhat.com</email>
</author>
<published>2026-03-30T10:58:19+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/linux-next.git/commit/?id=794e811d144390d61eab407fb2e9ae37aefe50e7'/>
<id>urn:sha1:794e811d144390d61eab407fb2e9ae37aefe50e7</id>
<content type='text'>
Create a new source file: req.c and add the request sending entry
functions:

  __fuse_simple_request()
  fuse_simple_background()
  fuse_simple_notify_reply()

Introduce transport layer sending functions that are called by the
respective fs layer function:

  fuse_chan_send()
  fuse_chan_send_bg()
  fuse_chan_send_notify_reply()

Move calculation of request header fields uid, gid and pid from
fuse_get_req() and fuse_force_creads() to a new helper: fuse_fill_creds().

These fileds are now passed to the transport layer via struct fuse_args.

Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
</content>
</entry>
</feed>
