public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Brauner <brauner@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christian Brauner <brauner@kernel.org>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL for v7.0] vfs fixes
Date: Fri, 10 Apr 2026 17:14:49 +0200	[thread overview]
Message-ID: <20260410-vfs-fixes-52296d845868@brauner> (raw)

Hey Linus,

/* Summary */

This contains a batch of late-stage fixes for this cycle. The kernfs
rework can also go into during the v7.2 merge window. In which case you
can either just cherry-pick the cachefiles and epoll fix.

The kernfs rbtree is keyed by (hash, ns, name) where the hash is seeded
with the raw namespace pointer via init_name_hash(ns). The resulting
hash values are exposed to userspace through readdir seek positions, and
the pointer-based ordering in kernfs_name_compare() is observable
through entry order.

Switch from raw pointers to ns_common::ns_id for both hashing and
comparison. A preparatory commit first replaces all const void *
namespace parameters with const struct ns_common * throughout
kernfs/sysfs/kobject so the code can access ns->ns_id. Also compare the
ns_id when hashes match in the rbtree to handle crafted collisions.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

The following changes since commit d0c3bcd5b8976159d835a897254048e078f447e6:

  Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux (2026-03-30 13:40:48 -0700)

are available in the Git repository at:

  git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-7.0-rc8.fixes

for you to fetch changes up to cb76a81c7cec37bdf525164561b02665cd763421:

  kernfs: make directory seek namespace-aware (2026-04-09 14:36:52 +0200)

----------------------------------------------------------------
vfs-7.0-rc8.fixes

Please consider pulling these changes from the signed vfs-7.0-rc8.fixes tag.

Thanks!
Christian

----------------------------------------------------------------
Christian Brauner (3):
      kernfs: pass struct ns_common instead of const void * for namespace tags
      kernfs: use namespace id instead of pointer for hashing and comparison
      kernfs: make directory seek namespace-aware

NeilBrown (1):
      cachefiles: fix incorrect dentry refcount in cachefiles_cull()

Nicholas Carlini (1):
      eventpoll: defer struct eventpoll free to RCU grace period

 drivers/base/class.c                |  4 +--
 drivers/base/core.c                 |  7 ++--
 drivers/infiniband/core/device.c    |  5 +--
 drivers/infiniband/ulp/srp/ib_srp.c |  7 ++--
 drivers/net/bonding/bond_sysfs.c    |  4 +--
 drivers/net/ipvlan/ipvtap.c         |  5 +--
 drivers/net/macvtap.c               |  5 +--
 fs/cachefiles/namei.c               |  5 +++
 fs/eventpoll.c                      |  6 +++-
 fs/kernfs/dir.c                     | 68 ++++++++++++++++++++++++++-----------
 fs/kernfs/file.c                    |  2 +-
 fs/kernfs/kernfs-internal.h         |  2 +-
 fs/kernfs/mount.c                   |  2 +-
 fs/nfs/sysfs.c                      | 16 +++++----
 fs/sysfs/dir.c                      |  6 ++--
 fs/sysfs/file.c                     |  8 ++---
 fs/sysfs/mount.c                    | 10 +++---
 fs/sysfs/symlink.c                  |  7 ++--
 fs/sysfs/sysfs.h                    |  4 +--
 include/linux/device/class.h        |  6 ++--
 include/linux/kernfs.h              | 40 +++++++++++++---------
 include/linux/kobject.h             |  4 +--
 include/linux/kobject_ns.h          | 13 +++----
 include/linux/netdevice.h           |  4 +--
 include/linux/sysfs.h               | 24 ++++++-------
 include/net/net_namespace.h         |  8 ++---
 lib/kobject.c                       |  8 ++---
 lib/kobject_uevent.c                | 13 ++++---
 net/core/net-sysfs.c                | 50 +++++++++++++--------------
 net/core/net_namespace.c            |  8 ++---
 net/sunrpc/sysfs.c                  | 17 ++++++----
 net/wireless/sysfs.c                |  4 +--
 32 files changed, 216 insertions(+), 156 deletions(-)

             reply	other threads:[~2026-04-10 15:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-10 15:14 Christian Brauner [this message]
2026-04-10 16:45 ` [GIT PULL for v7.0] vfs fixes pr-tracker-bot
  -- strict thread matches above, loose matches on Subject: below --
2026-03-29 21:06 Christian Brauner
2026-03-29 22:39 ` pr-tracker-bot
2026-03-04 22:19 Christian Brauner
2026-03-04 23:40 ` pr-tracker-bot
2026-02-25 14:16 Christian Brauner
2026-02-25 18:51 ` pr-tracker-bot

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=20260410-vfs-fixes-52296d845868@brauner \
    --to=brauner@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox