All of lore.kernel.org
 help / color / mirror / Atom feed
From: Han-Wen Nienhuys <hanwenn@gmail.com>
To: amir73il@gmail.com, miklos@szeredi.hu
Cc: fuse-devel@lists.linux.dev, linux-fsdevel@lists.linux.dev,
	mmitar@gmail.com, bernd@bsbernd.com,
	Han-Wen Nienhuys <hanwenn@gmail.com>
Subject: [PATCH 2/2] fuse: bump protocol minor version to 48
Date: Sun, 22 Nov 2026 14:24:54 +0100	[thread overview]
Message-ID: <20261122132454.18764-3-hanwenn@gmail.com> (raw)
In-Reply-To: <20261122132454.18764-1-hanwenn@gmail.com>

The commit "fuse: kill suid/sgid on fallocate and copy_file_range with
KILLPRIV_V2" fixes a bug with FUSE_HANDLE_KILLPRIV_V2: the kernel did
not tell the server to clear suid/sgid after fallocate,
copy_file_range and passthrough writes.

A server cannot detect this bug by itself. All it sees is an empty
FUSE_SETATTR, and the kernel also sends one when only
security.capability must be removed.

Bump the minor version, so a server can check whether the kernel has
the fix before it asks for FUSE_HANDLE_KILLPRIV_V2, for example when
it also uses passthrough.

This is not meant for stable. On older kernels, a FUSE server should
use a workaround instead.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Han-Wen Nienhuys <hanwenn@gmail.com>
---
 include/uapi/linux/fuse.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h
index cb9e9554f0ef..6f6baded766b 100644
--- a/include/uapi/linux/fuse.h
+++ b/include/uapi/linux/fuse.h
@@ -258,6 +258,10 @@
  *  - add FUSE_NOTIFY_BACKING_MAP, fuse_notify_backing_map_out, fuse_extent
  *  - add FUSE_BACKING_MAP_CREATE, FUSE_BACKING_MAP_CYCLIC
  *  - extend the meaning of FUSE_HAS_INODE_DAX and FUSE_ATTR_DAX
+ *
+ *  7.48
+ *  - with FUSE_HANDLE_KILLPRIV_V2, send FATTR_KILL_SUIDGID in the SETATTR
+ *    that precedes fallocate, copy_file_range and passthrough writes
  */
 
 #ifndef _LINUX_FUSE_H
@@ -293,7 +297,7 @@
 #define FUSE_KERNEL_VERSION 7
 
 /** Minor version number of this interface */
-#define FUSE_KERNEL_MINOR_VERSION 47
+#define FUSE_KERNEL_MINOR_VERSION 48
 
 /** The node ID of the root inode */
 #define FUSE_ROOT_ID 1
-- 
2.56.1


      parent reply	other threads:[~2026-11-22 13:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22 13:24 [PATCH 0/2] Subject: [PATCH 0/3] fuse: kill suid/sgid on fallocate, copy_file_range and passthrough writes with KILLPRIV_V2 Han-Wen Nienhuys
2026-11-22 13:24 ` [PATCH 1/2] fuse: kill suid/sgid on fallocate and copy_file_range " Han-Wen Nienhuys
2026-11-22 13:24 ` Han-Wen Nienhuys [this message]

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=20261122132454.18764-3-hanwenn@gmail.com \
    --to=hanwenn@gmail.com \
    --cc=amir73il@gmail.com \
    --cc=bernd@bsbernd.com \
    --cc=fuse-devel@lists.linux.dev \
    --cc=linux-fsdevel@lists.linux.dev \
    --cc=miklos@szeredi.hu \
    --cc=mmitar@gmail.com \
    /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.