All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Subject: [PATCH 0/3] fuse: kill suid/sgid on fallocate, copy_file_range and passthrough writes with KILLPRIV_V2
@ 2026-11-22 13:24 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 ` [PATCH 2/2] fuse: bump protocol minor version to 48 Han-Wen Nienhuys
  0 siblings, 2 replies; 3+ messages in thread
From: Han-Wen Nienhuys @ 2026-11-22 13:24 UTC (permalink / raw)
  To: amir73il, miklos
  Cc: fuse-devel, linux-fsdevel, mmitar, bernd, Han-Wen Nienhuys

With FUSE_HANDLE_KILLPRIV_V2, an unprivileged fallocate(),
copy_file_range() or passthrough write leaves the suid/sgid bits set,
because the kernel never asks the server to clear them. Mitar reported
this in [1], and Bernd posted a fix in [2].

Patch 1 is Bernd's fix, rebased on the most recent pull of FUSE
fixes[3] in Linus' tree, otherwise unchanged.

Patch 2 bumps the FUSE protocol minor version to 48, so a server can
tell whether the kernel has the fix before it asks for
FUSE_HANDLE_KILLPRIV_V2.

Patch 3 adds a selftest. It runs a raw /dev/fuse server and checks
which kill requests reach it.

[1] https://lore.kernel.org/fuse-devel/CAKLmikMhOYpGEw6uCqX_Bm0JPEg-4FhdJMNa9+tgtw3-Kf+eZg@mail.gmail.com/
[2] https://lore.kernel.org/fuse-devel/e75cf549-07a6-4095-bbf8-8caff7a3338b@bsbernd.com/
[3] https://lore.kernel.org/fuse-devel/179520930874.792202.7768867709024262369.pr-tracker-bot@kernel.org/

Bernd Schubert (1):
  fuse: kill suid/sgid on fallocate and copy_file_range with KILLPRIV_V2

Han-Wen Nienhuys (1):
  fuse: bump protocol minor version to 48

 fs/fuse/dir.c             | 13 +++++++++++--
 fs/fuse/file.c            |  3 ++-
 fs/fuse/fuse_i.h          |  2 +-
 include/uapi/linux/fuse.h |  6 +++++-
 4 files changed, 19 insertions(+), 5 deletions(-)

-- 
2.56.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-22 13:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 2/2] fuse: bump protocol minor version to 48 Han-Wen Nienhuys

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.