|
|
Log in / Subscribe / Register

io_uring, struct filename and audit

From:  Al Viro <viro-AT-zeniv.linux.org.uk>
To:  linux-fsdevel-AT-vger.kernel.org
Subject:  [RFC PATCH v2 00/18] io_uring, struct filename and audit
Date:  Sat, 29 Nov 2025 17:01:24 +0000
Message-ID:  <20251129170142.150639-1-viro@zeniv.linux.org.uk>
Cc:  torvalds-AT-linux-foundation.org, brauner-AT-kernel.org, jack-AT-suse.cz, mjguzik-AT-gmail.com, paul-AT-paul-moore.com, axboe-AT-kernel.dk, audit-AT-vger.kernel.org, io-uring-AT-vger.kernel.org
Archive-link:  Article

Changes compared to v1:
	* putname_to_delayed(): new primitive, hopefully solving the
io_openat2() breakage spotted by Jens
	* Linus' suggestion re saner allocation for struct filename
implemented and carved up [##11--15]

It's obviously doing to slip to the next cycle at this point - I'm not
proposing to merge it in the coming window.

Please, review.  Branch in
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git #work.filename-refcnt
individual patches in followups.

Al Viro (17):
  do_faccessat(): import pathname only once
  do_fchmodat(): import pathname only once
  do_fchownat(): import pathname only once
  do_utimes_path(): import pathname only once
  chdir(2): import pathname only once
  chroot(2): import pathname only once
  user_statfs(): import pathname only once
  do_sys_truncate(): import pathname only once
  do_readlinkat(): import pathname only once
  get rid of audit_reusename()
  ntfs: ->d_compare() must not block
  getname_flags() massage, part 1
  getname_flags() massage, part 2
  struct filename: use names_cachep only for getname() and friends
  struct filename: saner handling of long names
  allow incomplete imports of filenames
  struct filename ->refcnt doesn't need to be atomic

Mateusz Guzik (1):
  fs: touch up predicts in putname()

 fs/dcache.c           |   8 +-
 fs/internal.h         |   2 +
 fs/namei.c            | 218 +++++++++++++++++++++++++++---------------
 fs/ntfs3/namei.c      |   8 +-
 fs/open.c             |  39 +++++---
 fs/stat.c             |   6 +-
 fs/statfs.c           |   4 +-
 fs/utimes.c           |  13 +--
 include/linux/audit.h |  11 ---
 include/linux/fs.h    |  28 +++---
 io_uring/fs.c         | 101 ++++++++++---------
 io_uring/openclose.c  |  26 ++---
 io_uring/statx.c      |  17 ++--
 io_uring/xattr.c      |  30 ++----
 kernel/auditsc.c      |  23 +----
 15 files changed, 286 insertions(+), 248 deletions(-)

-- 
2.47.3




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds