From: Christian Brauner <brauner@kernel.org>
To: linux-fsdevel@vger.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Jann Horn <jannh@google.com>, Josef Bacik <josef@toxicpanda.com>,
Chris Mason <mason@kernel.org>, Jeff Layton <jlayton@kernel.org>,
NeilBrown <neil@brown.name>, Eric Dumazet <edumazet@kernel.org>,
Thomas Gleixner <tglx@kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>,
Jonathan Corbet <corbet@lwn.net>, Christoph Hellwig <hch@lst.de>,
Greg Kroah-Hartman <gregkh@suse.de>,
Joel Granados <joel.granados@kernel.org>,
Kees Cook <kees@kernel.org>, Jan Kara <jack@suse.cz>,
Jan Kara <jack@suse.com>,
linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org,
linux-acpi@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-um@lists.infradead.org, linux-wireless@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org,
ntfs3@lists.linux.dev, platform-driver-x86@vger.kernel.org,
coreteam@netfilter.org, kexec@lists.infradead.org,
linux-pci@vger.kernel.org, linux-sound@vger.kernel.org,
netfilter-devel@vger.kernel.org, dri-devel@lists.freedesktop.org,
ibm-acpi-devel@lists.sourceforge.net,
jfs-discussion@lists.sourceforge.net,
linux-alpha@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-cifs@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-hwmon@vger.kernel.org,
linux-mm@kvack.org, linux-sh@vger.kernel.org,
linux-usb@vger.kernel.org, samba-technical@lists.samba.org,
sparclinux@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
linux-doc@vger.kernel.org, linux-serial@vger.kernel.org,
linux-atm-general@lists.sourceforge.net,
Takashi Iwai <tiwai@suse.de>,
linux-input@vger.kernel.org, linux-raid@vger.kernel.org,
linux-ext4@vger.kernel.org, linux-modules@vger.kernel.org,
linux-debuggers@vger.kernel.org,
"Christian Brauner (Amutable)" <brauner@kernel.org>,
Chuck Lever <cel@kernel.org>
Subject: [PATCH RESEND v2 21/23] proc: let lockdep check the pin
Date: Wed, 4 Nov 2026 20:34:19 +0100 [thread overview]
Message-ID: <20261104-work-procfs-core-v2-21-76ace653a773@kernel.org> (raw)
In-Reply-To: <20261104-work-procfs-core-v2-0-76ace653a773@kernel.org>
remove_proc_entry() waits until every call into the entry has returned,
and its callers like to hold locks while they wait. A method of the
entry that takes one of those locks deadlocks with them. xt_recent
removed its entries with a spinlock held that its seq_file took, and
ALSA has to remove an entry before it takes info_mutex because its open
takes it. Both of those were found by reading the code.
kernfs lets lockdep find them. kernfs_get_active() is a read lock to
lockdep and kernfs_drain() takes the write side around its wait. So a
method that takes a lock L while active records class -> L, a removal
under L records L -> class, and lockdep reports the cycle.
Do the same for the pin. use_pde() records a read lock on the entry's
lockdep map, unuse_pde() releases it and proc_entry_rundown() takes the
write side around waiting for the last user. The key of the class is
what the entries of a kind already share, their seq_operations or
their proc_ops, static objects that lockdep takes as a key. The entries
that only share a show function, those of proc_create_single() and
friends, get a key per registration site instead, like every sysfs
attribute has one: a show function lives in text and lockdep doesn't
take that as a key. So all /proc/net/dev entries are one class, which
is right. The same code runs pinned in every network namespace and a
removal under a lock that its reader takes is a deadlock in any of
them.
Nothing in the tree removes an entry of its own kind from one of its
methods, so there's no need for an escape hatch like
kernfs_break_active_protection() yet.
The map only exists on lockdep kernels.
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
---
fs/proc/generic.c | 46 ++++++++++++++++++++++++++++++++++++----------
fs/proc/inode.c | 29 ++++++++++++++++++++++++++---
fs/proc/internal.h | 17 ++++++++++++++++-
fs/proc/proc_net.c | 28 +++++++++++++++-------------
include/linux/proc_fs.h | 42 +++++++++++++++++++++++++++++++++---------
5 files changed, 126 insertions(+), 36 deletions(-)
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 81a6cb560c75..ca4025ee7aa8 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -541,9 +541,33 @@ static int pde_init_seq_direct(struct proc_dir_entry *pde)
return 0;
}
+static void pde_lockdep_init(struct proc_dir_entry *pde,
+ struct lock_class_key *key)
+{
+#ifdef CONFIG_DEBUG_LOCK_ALLOC
+ const void *k = key;
+
+ if (!pde_lockdep(pde))
+ return;
+ /*
+ * To lockdep the pin is a read lock that proc_entry_rundown() takes
+ * the write side of, see use_pde(). The entries that share
+ * seq_operations or proc_ops run the same code pinned, so they share
+ * a class, and those are static objects that lockdep takes as its
+ * key. The entries that only share a show function get a key per
+ * registration site instead, see proc_create_single_data().
+ */
+ if (!k)
+ k = pde_has_proc_seq_ops(pde) ? (const void *)pde->seq_ops :
+ pde->proc_ops;
+ lockdep_init_map(&pde->dep_map, "pde->in_use",
+ (struct lock_class_key *)k, 0);
+#endif
+}
+
/* returns the registered entry, or frees dp and returns NULL on failure */
struct proc_dir_entry *proc_register(struct proc_dir_entry *dir,
- struct proc_dir_entry *dp)
+ struct proc_dir_entry *dp, struct lock_class_key *key)
{
if (proc_alloc_inum(&dp->low_ino))
goto out_free_entry;
@@ -558,6 +582,7 @@ struct proc_dir_entry *proc_register(struct proc_dir_entry *dir,
}
if (pde_init_seq_direct(dp))
goto out_free_inum;
+ pde_lockdep_init(dp, key);
write_lock(&proc_subdir_lock);
dp->parent = dir;
@@ -660,7 +685,7 @@ struct proc_dir_entry *proc_symlink(const char *name,
ent->data = kmemdup(dest, ent->size + 1, GFP_KERNEL);
if (ent->data) {
ent->proc_iops = &proc_link_inode_operations;
- ent = proc_register(parent, ent);
+ ent = proc_register(parent, ent, NULL);
} else {
pde_free(ent);
ent = NULL;
@@ -686,7 +711,7 @@ struct proc_dir_entry *_proc_mkdir(const char *name, umode_t mode,
if (force_lookup) {
pde_force_lookup(ent);
}
- ent = proc_register(parent, ent);
+ ent = proc_register(parent, ent, NULL);
}
return ent;
}
@@ -723,7 +748,7 @@ struct proc_dir_entry *proc_create_mount_point(const char *name)
ent->data = NULL;
ent->proc_dir_ops = NULL;
ent->proc_iops = NULL;
- ent = proc_register(parent, ent);
+ ent = proc_register(parent, ent, NULL);
}
return ent;
}
@@ -759,7 +784,7 @@ struct proc_dir_entry *proc_create_data(const char *name, umode_t mode,
if (!p)
return NULL;
p->proc_ops = proc_ops;
- return proc_register(parent, p);
+ return proc_register(parent, p, NULL);
}
EXPORT_SYMBOL(proc_create_data);
@@ -789,13 +814,14 @@ struct proc_dir_entry *proc_create_seq_private(const char *name, umode_t mode,
p->seq_ops = ops;
p->state_size = state_size;
p->flags |= PROC_ENTRY_proc_seq_ops;
- return proc_register(parent, p);
+ return proc_register(parent, p, NULL);
}
EXPORT_SYMBOL(proc_create_seq_private);
-struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode,
+struct proc_dir_entry *__proc_create_single_data(const char *name, umode_t mode,
struct proc_dir_entry *parent,
- int (*show)(struct seq_file *, void *), void *data)
+ int (*show)(struct seq_file *, void *), void *data,
+ struct lock_class_key *key)
{
struct proc_dir_entry *p;
@@ -805,9 +831,9 @@ struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode,
p->proc_ops = &proc_seq_ops;
p->single_show = show;
p->flags |= PROC_ENTRY_proc_show;
- return proc_register(parent, p);
+ return proc_register(parent, p, key);
}
-EXPORT_SYMBOL(proc_create_single_data);
+EXPORT_SYMBOL(__proc_create_single_data);
void proc_set_size(struct proc_dir_entry *de, loff_t size)
{
diff --git a/fs/proc/inode.c b/fs/proc/inode.c
index 5e423bcad278..59de4681d845 100644
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -199,13 +199,24 @@ const struct super_operations proc_sops = {
enum {BIAS = -1U<<31};
+/*
+ * To lockdep the pin is a read lock and proc_entry_rundown() takes the write
+ * side, see pde_lockdep_init(). So a method that takes a lock while pinned
+ * and a removal under that lock are the deadlock lockdep knows how to report.
+ */
static inline int use_pde(struct proc_dir_entry *pde)
{
- return likely(atomic_inc_unless_negative(&pde->in_use));
+ if (unlikely(!atomic_inc_unless_negative(&pde->in_use)))
+ return 0;
+ if (pde_lockdep(pde))
+ rwsem_acquire_read(&pde->dep_map, 0, 1, _RET_IP_);
+ return 1;
}
static void unuse_pde(struct proc_dir_entry *pde)
{
+ if (pde_lockdep(pde))
+ rwsem_release(&pde->dep_map, _RET_IP_);
if (unlikely(atomic_dec_return(&pde->in_use) == BIAS))
wake_up_var(&pde->in_use);
}
@@ -362,9 +373,21 @@ static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo,
void proc_entry_rundown(struct proc_dir_entry *de)
{
- /* Wait until all existing callers into module are done. */
- if (atomic_add_return(BIAS, &de->in_use) != BIAS)
+ /*
+ * Wait until all existing callers into module are done. That's the
+ * write side of the pin to lockdep, see use_pde().
+ */
+ if (pde_lockdep(de))
+ rwsem_acquire(&de->dep_map, 0, 0, _RET_IP_);
+ if (atomic_add_return(BIAS, &de->in_use) != BIAS) {
+ if (pde_lockdep(de))
+ lock_contended(&de->dep_map, _RET_IP_);
wait_var_event(&de->in_use, atomic_read(&de->in_use) == BIAS);
+ }
+ if (pde_lockdep(de)) {
+ lock_acquired(&de->dep_map, _RET_IP_);
+ rwsem_release(&de->dep_map, _RET_IP_);
+ }
/* ->open->files can't grow from now on. */
if (!de->open)
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 0b1c0585d6a6..7a197e2920f8 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -9,6 +9,7 @@
#include <linux/proc_ns.h>
#include <linux/refcount.h>
#include <linux/spinlock.h>
+#include <linux/lockdep.h>
#include <linux/atomic.h>
#include <linux/binfmts.h>
#include <linux/sched/coredump.h>
@@ -67,6 +68,9 @@ struct proc_dir_entry {
umode_t mode;
u16 flags;
u8 namelen;
+#ifdef CONFIG_DEBUG_LOCK_ALLOC
+ struct lockdep_map dep_map; /* the pin as a lock, see use_pde() */
+#endif
char inline_name[];
} __randomize_layout;
@@ -142,6 +146,16 @@ static inline bool pde_is_seq_file(const struct proc_dir_entry *pde)
return pde_has_proc_seq_ops(pde) || pde_has_proc_show(pde);
}
+/* Only regular files are pinned, and only their map is initialized. */
+static inline bool pde_lockdep(const struct proc_dir_entry *pde)
+{
+#ifdef CONFIG_DEBUG_LOCK_ALLOC
+ return S_ISREG(pde->mode);
+#else
+ return false;
+#endif
+}
+
extern struct kmem_cache *proc_dir_entry_cache;
void pde_free(struct proc_dir_entry *pde);
@@ -318,7 +332,8 @@ bool proc_fill_cache(struct file *, struct dir_context *, const char *, unsigned
struct proc_dir_entry *proc_create_reg(const char *name, umode_t mode,
struct proc_dir_entry **parent, void *data);
struct proc_dir_entry *proc_register(struct proc_dir_entry *dir,
- struct proc_dir_entry *dp);
+ struct proc_dir_entry *dp,
+ struct lock_class_key *key);
extern struct dentry *proc_lookup(struct inode *, struct dentry *, unsigned int);
struct dentry *proc_lookup_de(struct inode *, struct dentry *, struct proc_dir_entry *);
extern int proc_readdir(struct file *, struct dir_context *);
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c
index b78d627b024f..9ddd7c323dfc 100644
--- a/fs/proc/proc_net.c
+++ b/fs/proc/proc_net.c
@@ -115,7 +115,7 @@ struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode,
p->seq_ops = ops;
p->state_size = state_size;
p->flags |= PROC_ENTRY_proc_seq_ops;
- return proc_register(parent, p);
+ return proc_register(parent, p, NULL);
}
EXPORT_SYMBOL_GPL(proc_create_net_data);
@@ -162,7 +162,7 @@ struct proc_dir_entry *proc_create_net_data_write(const char *name, umode_t mode
p->state_size = state_size;
p->flags |= PROC_ENTRY_proc_seq_ops;
p->write = write;
- return proc_register(parent, p);
+ return proc_register(parent, p, NULL);
}
EXPORT_SYMBOL_GPL(proc_create_net_data_write);
@@ -190,9 +190,10 @@ static const struct proc_ops proc_net_single_ops = {
.proc_release = single_release_net,
};
-struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode,
+struct proc_dir_entry *__proc_create_net_single(const char *name, umode_t mode,
struct proc_dir_entry *parent,
- int (*show)(struct seq_file *, void *), void *data)
+ int (*show)(struct seq_file *, void *), void *data,
+ struct lock_class_key *key)
{
struct proc_dir_entry *p;
@@ -203,9 +204,9 @@ struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode,
p->proc_ops = &proc_net_single_ops;
p->single_show = show;
p->flags |= PROC_ENTRY_proc_show;
- return proc_register(parent, p);
+ return proc_register(parent, p, key);
}
-EXPORT_SYMBOL_GPL(proc_create_net_single);
+EXPORT_SYMBOL_GPL(__proc_create_net_single);
/**
* proc_create_net_single_write - Create a writable net_ns-specific proc file
@@ -232,11 +233,12 @@ EXPORT_SYMBOL_GPL(proc_create_net_single);
* pde_data() on the file inode. The network namespace must be accessed by
* calling seq_file_single_net() on the seq_file struct.
*/
-struct proc_dir_entry *proc_create_net_single_write(const char *name, umode_t mode,
- struct proc_dir_entry *parent,
- int (*show)(struct seq_file *, void *),
- proc_write_t write,
- void *data)
+struct proc_dir_entry *__proc_create_net_single_write(const char *name, umode_t mode,
+ struct proc_dir_entry *parent,
+ int (*show)(struct seq_file *, void *),
+ proc_write_t write,
+ void *data,
+ struct lock_class_key *key)
{
struct proc_dir_entry *p;
@@ -248,9 +250,9 @@ struct proc_dir_entry *proc_create_net_single_write(const char *name, umode_t mo
p->single_show = show;
p->flags |= PROC_ENTRY_proc_show;
p->write = write;
- return proc_register(parent, p);
+ return proc_register(parent, p, key);
}
-EXPORT_SYMBOL_GPL(proc_create_net_single_write);
+EXPORT_SYMBOL_GPL(__proc_create_net_single_write);
static struct net *get_proc_task_net(struct inode *dir)
{
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 5bf039d20990..feb3228cb5af 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -204,9 +204,20 @@ struct proc_dir_entry *proc_create_seq_private(const char *name, umode_t mode,
proc_create_seq_private(name, mode, parent, ops, 0, data)
#define proc_create_seq(name, mode, parent, ops) \
proc_create_seq_private(name, mode, parent, ops, 0, NULL)
-struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode,
+struct proc_dir_entry *__proc_create_single_data(const char *name, umode_t mode,
struct proc_dir_entry *parent,
- int (*show)(struct seq_file *, void *), void *data);
+ int (*show)(struct seq_file *, void *), void *data,
+ struct lock_class_key *key);
+/*
+ * The entries a registration site creates share nothing that lockdep takes as
+ * the key of their class but the show function, which isn't a static object,
+ * so each site gets a key of its own, like every sysfs attribute has one.
+ */
+#define proc_create_single_data(name, mode, parent, show, data) \
+({ \
+ static struct lock_class_key __key; \
+ __proc_create_single_data(name, mode, parent, show, data, &__key); \
+})
#define proc_create_single(name, mode, parent, show) \
proc_create_single_data(name, mode, parent, show, NULL)
@@ -238,19 +249,32 @@ struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode,
unsigned int state_size, void *data);
#define proc_create_net(name, mode, parent, ops, state_size) \
proc_create_net_data(name, mode, parent, ops, state_size, NULL)
-struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode,
+struct proc_dir_entry *__proc_create_net_single(const char *name, umode_t mode,
struct proc_dir_entry *parent,
- int (*show)(struct seq_file *, void *), void *data);
+ int (*show)(struct seq_file *, void *), void *data,
+ struct lock_class_key *key);
+#define proc_create_net_single(name, mode, parent, show, data) \
+({ \
+ static struct lock_class_key __key; \
+ __proc_create_net_single(name, mode, parent, show, data, &__key); \
+})
struct proc_dir_entry *proc_create_net_data_write(const char *name, umode_t mode,
struct proc_dir_entry *parent,
const struct seq_operations *ops,
proc_write_t write,
unsigned int state_size, void *data);
-struct proc_dir_entry *proc_create_net_single_write(const char *name, umode_t mode,
- struct proc_dir_entry *parent,
- int (*show)(struct seq_file *, void *),
- proc_write_t write,
- void *data);
+struct proc_dir_entry *__proc_create_net_single_write(const char *name, umode_t mode,
+ struct proc_dir_entry *parent,
+ int (*show)(struct seq_file *, void *),
+ proc_write_t write,
+ void *data,
+ struct lock_class_key *key);
+#define proc_create_net_single_write(name, mode, parent, show, write, data) \
+({ \
+ static struct lock_class_key __key; \
+ __proc_create_net_single_write(name, mode, parent, show, write, data, \
+ &__key); \
+})
extern struct pid *tgid_pidfd_to_pid(const struct file *file);
struct bpf_iter_aux_info;
--
2.53.0
next prev parent reply other threads:[~2026-11-04 19:34 UTC|newest]
Thread overview: 181+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 19:04 [PATCH RESEND v2 0/7] proc: move procfs to what kernfs does Christian Brauner
2026-11-04 19:05 ` [PATCH RESEND v2 00/51] proc: fix a few old bugs in /proc handlers (Part 1/7) Christian Brauner
2026-11-04 19:06 ` [PATCH RESEND v2 01/51] alloc_tag: don't remove /proc/allocinfo under the codetag module lock Christian Brauner
2026-11-04 19:16 ` [PATCH RESEND v2 02/51] scsi: esas2r: don't copy kernel pointers out in EXPRESS_IOCTL_GET_MOD_INFO Christian Brauner
2026-11-04 19:16 ` [PATCH RESEND v2 03/51] ALSA: cs46xx: hand the region to the region proc files Christian Brauner
2026-11-04 19:16 ` [PATCH RESEND v2 04/51] PNP: isapnp: don't go on when isapnp_cfg_begin() fails Christian Brauner
2026-11-04 19:17 ` [PATCH RESEND v2 05/51] xtensa: simdisk: remove the proc entry before the disk Christian Brauner
2026-11-04 19:17 ` [PATCH RESEND v2 06/51] powerpc/pseries: put the node that the ofdt property commands look up Christian Brauner
2026-11-04 19:17 ` [PATCH RESEND v2 07/51] lockd: don't hand out the terminator of nlm_end_grace Christian Brauner
2026-11-04 19:17 ` [PATCH RESEND v2 08/51] powerpc/pseries/lparcfg: don't drop the last byte of a write Christian Brauner
2026-11-04 19:18 ` [PATCH RESEND v2 09/51] profiling: report it when /proc/profile can't be created Christian Brauner
2026-11-04 19:18 ` [PATCH RESEND v2 10/51] zorro: size the proc files like what they serve Christian Brauner
2026-11-04 19:18 ` [PATCH RESEND v2 11/51] sparc: led: consume the whole write Christian Brauner
2026-11-04 19:18 ` [PATCH RESEND v2 12/51] powerpc/rtas: consume the whole write to /proc/powerpc/rtas/progress Christian Brauner
2026-11-04 19:19 ` [PATCH RESEND v2 13/51] sched/psi: don't drop the last byte of a trigger write Christian Brauner
2026-11-04 19:19 ` [PATCH RESEND v2 14/51] proc: sysctl: don't stop readdir at an entry that is being unregistered Christian Brauner
2026-11-04 19:19 ` [PATCH RESEND v2 15/51] PCI/proc: don't truncate the position of config space accesses Christian Brauner
2026-11-04 19:19 ` [PATCH RESEND v2 16/51] PNP: isapnp: don't read past the end of the buffer on a large pread() Christian Brauner
2026-11-04 19:20 ` [PATCH RESEND v2 17/51] s390/dasd: don't look in front of the buffer on an empty write Christian Brauner
2026-11-04 19:20 ` [PATCH RESEND v2 18/51] platform/x86: toshiba_acpi: reject malformed brightness and fan writes Christian Brauner
2026-11-04 19:20 ` [PATCH RESEND v2 19/51] xtensa: simdisk: don't read the file name without the lock Christian Brauner
2026-11-04 19:20 ` [PATCH RESEND v2 20/51] powerpc/rtas_flash: don't read past the validate message Christian Brauner
2026-11-04 19:21 ` [PATCH RESEND v2 21/51] powerpc/rtasd: zero the error log buffer Christian Brauner
2026-11-04 19:21 ` [PATCH RESEND v2 22/51] ALSA: info: don't write past the end of a data entry Christian Brauner
2026-11-04 19:21 ` [PATCH RESEND v2 23/51] scsi: BusLogic: don't return 0 from writes to the proc file Christian Brauner
2026-11-04 19:21 ` [PATCH RESEND v2 24/51] scsi: ips: " Christian Brauner
2026-11-04 19:22 ` [PATCH RESEND v2 25/51] wifi: libipw: don't return 0 from writes to debug_level Christian Brauner
2026-11-04 19:22 ` [PATCH RESEND v2 26/51] scsi: core: NUL-terminate what is written to the host proc files Christian Brauner
2026-11-04 19:22 ` [PATCH RESEND v2 27/51] um: NUL-terminate what is written to /proc/exitcode Christian Brauner
2026-11-04 19:22 ` [PATCH RESEND v2 28/51] ntfs3: don't warn when a huge label is written Christian Brauner
2026-11-04 19:23 ` [PATCH RESEND v2 29/51] proc: don't walk through a non-directory when resolving a name Christian Brauner
2026-11-04 19:23 ` [PATCH RESEND v2 30/51] net: pktgen: reject device names with a '/' Christian Brauner
2026-11-04 19:23 ` [PATCH RESEND v2 31/51] proc: don't WARN about a name that is already registered Christian Brauner
2026-11-04 19:23 ` [PATCH RESEND v2 32/51] proc: resume readdir after the last name it returned Christian Brauner
2026-11-04 19:24 ` [PATCH RESEND v2 33/51] selftests/proc: check a /proc listing while entries come and go Christian Brauner
2026-11-04 19:24 ` [PATCH RESEND v2 34/51] proc: let proc_remove() remove the entry it was given Christian Brauner
2026-11-04 19:24 ` [PATCH RESEND v2 35/51] proc: warn about entries left in /proc/net of a dying namespace Christian Brauner
2026-11-04 19:24 ` [PATCH RESEND v2 36/51] proc: don't let NOMMU map procfs files Christian Brauner
2026-11-04 19:25 ` [PATCH RESEND v2 37/51] proc/vmcore: don't let vmcore_cleanup() run twice at once Christian Brauner
2026-11-04 19:25 ` [PATCH RESEND v2 38/51] powerpc/crash_dump: check ioremap_cache() in copy_oldmem_page() Christian Brauner
2026-11-04 19:25 ` [PATCH RESEND v2 39/51] powerpc/crash_dump: recover from a machine check " Christian Brauner
2026-11-04 19:25 ` [PATCH RESEND v2 40/51] sunrpc: make queue_wait a global wait queue again Christian Brauner
2026-11-04 19:26 ` [PATCH RESEND v2 41/51] scsi: esas2r: bound the lengths of the HBA, SMP and firmware ioctls Christian Brauner
2026-11-04 19:26 ` [PATCH RESEND v2 42/51] powerpc/pseries: bound the lengths in the ofdt property parser Christian Brauner
2026-11-04 19:26 ` [PATCH RESEND v2 43/51] powerpc/pseries/lparcfg: return h_get_ppp()'s status as a long Christian Brauner
2026-11-04 19:26 ` [PATCH RESEND v2 44/51] proc: sysctl: resume readdir after the last name it returned Christian Brauner
2026-11-04 19:27 ` [PATCH RESEND v2 45/51] selftests/proc: check a sysctl listing while entries come and go Christian Brauner
2026-11-04 19:27 ` [PATCH RESEND v2 46/51] proc: sysctl: copy to and from userspace without holding the table Christian Brauner
2026-11-04 19:27 ` [PATCH RESEND v2 47/51] proc: sysctl: look at the table under sysctl_lock when creating an inode Christian Brauner
2026-11-04 19:27 ` [PATCH RESEND v2 48/51] proc: sysctl: don't hold the tables while readdir copies to userspace Christian Brauner
2026-11-04 19:27 ` [PATCH RESEND v2 49/51] selftests/proc: check that faulting sysctl accesses don't hold up removal Christian Brauner
2026-11-04 19:28 ` [PATCH RESEND v2 50/51] proc: don't pin a symlink's entry while readlink() copies it out Christian Brauner
2026-11-04 19:28 ` [PATCH RESEND v2 51/51] selftests/proc: check that a faulting readlink() doesn't hold up removal Christian Brauner
2026-11-04 19:29 ` [PATCH RESEND v2 00/23] proc: let procfs own the data path (Part 2/7) Christian Brauner
2026-11-04 19:29 ` [PATCH RESEND v2 01/23] proc: drop the compat file operations Christian Brauner
2026-11-04 19:29 ` [PATCH RESEND v2 02/23] proc: add pde_pin() and pde_unpin() Christian Brauner
2026-11-04 19:30 ` [PATCH RESEND v2 03/23] proc: share the readdir cursor with sysctl Christian Brauner
2026-11-04 19:30 ` [PATCH RESEND v2 04/23] proc: wait for the last user of an entry with wait_var_event() Christian Brauner
2026-11-04 19:30 ` [PATCH RESEND v2 05/23] proc: keep the open files of an entry in an open node Christian Brauner
2026-11-04 19:30 ` [PATCH RESEND v2 06/23] proc: make room for more entry flags Christian Brauner
2026-11-04 19:30 ` [PATCH RESEND v2 07/23] proc: let procfs own the seq_file of seq_file entries Christian Brauner
2026-11-04 19:31 ` [PATCH RESEND v2 08/23] proc: let procfs own the seq_file of proc_create_seq() and friends Christian Brauner
2026-11-04 19:31 ` [PATCH RESEND v2 09/23] proc: let procfs own the seq_file of DEFINE_PROC_SHOW_ATTRIBUTE() files Christian Brauner
2026-11-04 19:31 ` [PATCH RESEND v2 10/23] treewide: let procfs own the seq_file of simple proc entries Christian Brauner
2026-11-04 19:31 ` [PATCH RESEND v2 11/23] selftests/proc: check that a faulting reader doesn't hold up removal Christian Brauner
2026-11-04 19:32 ` [PATCH RESEND v2 12/23] seq_file: add seq_preallocate() Christian Brauner
2026-11-04 19:32 ` [PATCH RESEND v2 13/23] proc: let procfs own the seq_file of /proc/stat Christian Brauner
2026-11-04 19:32 ` [PATCH RESEND v2 14/23] proc: let procfs copy in writes before pinning the entry Christian Brauner
2026-11-04 19:32 ` [PATCH RESEND v2 15/23] proc: copy in writes to the network namespace entries before pinning Christian Brauner
2026-11-04 19:33 ` [PATCH RESEND v2 16/23] proc: let procfs copy out reads that don't go through seq_file Christian Brauner
2026-11-04 19:33 ` [PATCH RESEND v2 17/23] fs/proc/vmcore: let procfs copy out reads Christian Brauner
2026-11-04 19:33 ` [PATCH RESEND v2 18/23] proc: let procfs copy ioctl arguments in and out Christian Brauner
2026-11-04 19:33 ` [PATCH RESEND v2 19/23] proc: pin the entry around the vm_operations of its mappings Christian Brauner
2026-11-04 19:34 ` [PATCH RESEND v2 20/23] selftests/proc: check that a mapped entry can be removed Christian Brauner
2026-11-04 19:34 ` Christian Brauner [this message]
2026-11-04 19:34 ` [PATCH RESEND v2 22/23] proc: own the wait queue of an entry with a ->proc_poll() Christian Brauner
2026-11-04 19:34 ` [PATCH RESEND v2 23/23] Documentation: seq_file: describe how a /proc file uses seq_file Christian Brauner
2026-11-04 19:35 ` [PATCH RESEND v2 00/23] proc: convert the arch and platform entries (Part 3/7) Christian Brauner
2026-11-04 19:35 ` [PATCH RESEND v2 01/23] alpha: srm_env: let procfs copy in writes Christian Brauner
2026-11-04 19:36 ` [PATCH RESEND v2 02/23] ARM: alignment: " Christian Brauner
2026-11-04 19:36 ` [PATCH RESEND v2 03/23] ARM: atags: let procfs copy out reads of /proc/atags Christian Brauner
2026-11-04 19:36 ` [PATCH RESEND v2 04/23] m68k/bootinfo: let procfs copy out reads of /proc/bootinfo Christian Brauner
2026-11-04 19:36 ` [PATCH RESEND v2 05/23] powerpc/rtas: let procfs copy in writes Christian Brauner
2026-11-04 19:37 ` [PATCH RESEND v2 06/23] powerpc/rtas: let procfs copy out reads Christian Brauner
2026-11-04 19:37 ` [PATCH RESEND v2 07/23] powerpc/rtasd: let procfs own the wait queue of the rtas error log Christian Brauner
2026-11-04 19:37 ` [PATCH RESEND v2 08/23] powerpc/pseries: let procfs copy in writes Christian Brauner
2026-11-04 19:37 ` [PATCH RESEND v2 09/23] powerpc/procfs: let procfs copy out reads of /proc/powerpc/systemcfg Christian Brauner
2026-11-04 19:38 ` [PATCH RESEND v2 10/23] sh: alignment: let procfs copy in writes Christian Brauner
2026-11-04 19:38 ` [PATCH RESEND v2 11/23] sparc: led: " Christian Brauner
2026-11-04 19:38 ` [PATCH RESEND v2 12/23] um: " Christian Brauner
2026-11-04 19:38 ` [PATCH RESEND v2 13/23] x86/mtrr: let procfs own the seq_file of /proc/mtrr Christian Brauner
2026-11-04 19:39 ` [PATCH RESEND v2 14/23] x86/mtrr: let procfs copy in writes to /proc/mtrr Christian Brauner
2026-11-04 19:39 ` [PATCH RESEND v2 15/23] x86/mtrr: let procfs copy the ioctl arguments of /proc/mtrr Christian Brauner
2026-11-04 19:39 ` [PATCH RESEND v2 16/23] xtensa: simdisk: let procfs copy in writes Christian Brauner
2026-11-04 19:39 ` [PATCH RESEND v2 17/23] xtensa: simdisk: let procfs copy out reads Christian Brauner
2026-11-04 19:40 ` [PATCH RESEND v2 18/23] ACPI: proc: let procfs copy in writes to /proc/acpi/wakeup Christian Brauner
2026-11-04 19:40 ` [PATCH RESEND v2 19/23] macintosh/via-pmu: let procfs copy in writes to the options file Christian Brauner
2026-11-04 19:40 ` [PATCH RESEND v2 20/23] platform/x86: thinkpad_acpi: let procfs copy in writes Christian Brauner
2026-11-04 19:40 ` [PATCH RESEND v2 21/23] platform/x86: toshiba_acpi: " Christian Brauner
2026-11-04 19:41 ` [PATCH RESEND v2 22/23] PNP: pnpbios: " Christian Brauner
2026-11-04 19:41 ` [PATCH RESEND v2 23/23] PNP: isapnp: let procfs copy out reads Christian Brauner
2026-11-04 19:42 ` [PATCH RESEND v2 00/26] proc: convert the driver entries (Part 4/7) Christian Brauner
2026-11-04 19:42 ` [PATCH RESEND v2 01/26] nubus: let procfs own the seq_file of the resource files Christian Brauner
2026-11-04 19:42 ` [PATCH RESEND v2 02/26] zorro: let procfs copy out reads Christian Brauner
2026-11-04 19:42 ` [PATCH RESEND v2 03/26] PCI/proc: let procfs copy in config space writes Christian Brauner
2026-11-04 19:43 ` [PATCH RESEND v2 04/26] PCI/proc: let procfs copy out config space reads Christian Brauner
2026-11-04 19:43 ` [PATCH RESEND v2 05/26] PCI/proc: let procfs handle the ioctls Christian Brauner
2026-11-04 19:43 ` [PATCH RESEND v2 06/26] md: let procfs own the seq_file of /proc/mdstat Christian Brauner
2026-11-04 19:43 ` [PATCH RESEND v2 07/26] md: let procfs own the wait queue " Christian Brauner
2026-11-04 19:44 ` [PATCH RESEND v2 08/26] s390/dasd: let procfs copy in writes to /proc/dasd/statistics Christian Brauner
2026-11-04 19:44 ` [PATCH RESEND v2 09/26] s390/cio: let procfs copy in writes Christian Brauner
2026-11-04 19:44 ` [PATCH RESEND v2 10/26] scsi: let procfs own the seq_file of the host files Christian Brauner
2026-11-04 19:44 ` [PATCH RESEND v2 11/26] scsi: core: let procfs copy in writes Christian Brauner
2026-11-04 19:45 ` [PATCH RESEND v2 12/26] selftests/proc: check that a faulting writer doesn't hold up removal Christian Brauner
2026-11-04 19:45 ` [PATCH RESEND v2 13/26] scsi: sg: let procfs own the seq_file of allow_dio and def_reserved_size Christian Brauner
2026-11-04 19:45 ` [PATCH RESEND v2 14/26] scsi: sg: let procfs copy in writes Christian Brauner
2026-11-04 19:45 ` [PATCH RESEND v2 15/26] scsi: esas2r: let procfs copy the ioctl argument of the ATTONode file Christian Brauner
2026-11-04 19:46 ` [PATCH RESEND v2 16/26] hwmon: (dell-smm) let procfs copy the i8k ioctl arguments Christian Brauner
2026-11-04 19:46 ` [PATCH RESEND v2 17/26] fbdev: viafb: let procfs copy in writes Christian Brauner
2026-11-04 19:46 ` [PATCH RESEND v2 18/26] usb: gadget: function: rndis: " Christian Brauner
2026-11-04 19:46 ` [PATCH RESEND v2 19/26] wifi: ipw2x00: let procfs copy in writes to the debug level Christian Brauner
2026-11-04 19:47 ` [PATCH RESEND v2 20/26] tty: sysrq: let procfs copy in writes to /proc/sysrq-trigger Christian Brauner
2026-11-04 19:47 ` [PATCH RESEND v2 21/26] Input: let procfs own the wait queue of /proc/bus/input/devices Christian Brauner
2026-11-04 19:47 ` [PATCH RESEND v2 22/26] ALSA: info: let procfs own the seq_file of text entries Christian Brauner
2026-11-04 19:47 ` [PATCH RESEND v2 23/26] ALSA: info: let procfs copy in writes Christian Brauner
2026-11-04 19:48 ` [PATCH RESEND v2 24/26] ALSA: info: let procfs copy out reads of data entries Christian Brauner
2026-11-04 19:48 ` [PATCH RESEND v2 25/26] ALSA: info: drop the ioctl hook " Christian Brauner
2026-11-04 19:48 ` [PATCH RESEND v2 26/26] ALSA: info: drop the poll_table from the info entry poll op Christian Brauner
2026-11-04 19:49 ` [PATCH RESEND v2 00/30] proc: convert the fs, kernel and mm entries (Part 5/7) Christian Brauner
2026-11-04 19:49 ` [PATCH RESEND v2 01/30] jbd2: let procfs own the seq_file of the info file Christian Brauner
2026-11-04 19:50 ` [PATCH RESEND v2 02/30] jfs: let procfs copy in writes to the loglevel file Christian Brauner
2026-11-04 19:50 ` [PATCH RESEND v2 03/30] lockd: let procfs copy in writes to nlm_end_grace Christian Brauner
2026-11-04 19:50 ` [PATCH RESEND v2 04/30] lockd: let procfs copy out reads of nlm_end_grace Christian Brauner
2026-11-04 19:50 ` [PATCH RESEND v2 05/30] nfsd: factor out setting up the exports seq_file Christian Brauner
2026-11-04 19:51 ` [PATCH RESEND v2 06/30] nfsd: let procfs own the seq_file of /proc/fs/nfs/exports Christian Brauner
2026-11-04 19:51 ` [PATCH RESEND v2 07/30] ntfs3: let procfs copy in writes to the label file Christian Brauner
2026-11-04 19:51 ` [PATCH RESEND v2 08/30] smb: client: let procfs own the seq_file of the smbdirect files Christian Brauner
2026-11-04 19:51 ` [PATCH RESEND v2 09/30] smb: client: let procfs copy in writes Christian Brauner
2026-11-04 19:52 ` [PATCH RESEND v2 10/30] genirq/proc: let procfs copy in the affinity masks Christian Brauner
2026-11-04 19:52 ` [PATCH RESEND v2 11/30] latencytop: let procfs copy in writes to /proc/latency_stats Christian Brauner
2026-11-04 19:52 ` [PATCH RESEND v2 12/30] locking/lockdep: let procfs own the seq_file of /proc/lock_stat Christian Brauner
2026-11-04 19:52 ` [PATCH RESEND v2 13/30] locking/lockdep: let procfs copy in writes to /proc/lock_stat Christian Brauner
2026-11-04 19:53 ` [PATCH RESEND v2 14/30] profiling: let procfs copy in writes to /proc/profile Christian Brauner
2026-11-04 19:53 ` [PATCH RESEND v2 15/30] profiling: let procfs copy out reads of /proc/profile Christian Brauner
2026-11-04 19:53 ` [PATCH RESEND v2 16/30] profiling: mark /proc/profile permanent Christian Brauner
2026-11-04 19:53 ` [PATCH RESEND v2 17/30] sched/psi: let procfs own the seq_file of the pressure files Christian Brauner
2026-11-04 19:54 ` [PATCH RESEND v2 18/30] sched/psi: let procfs copy in trigger writes Christian Brauner
2026-11-04 19:54 ` [PATCH RESEND v2 19/30] sched/psi: mark the pressure files permanent Christian Brauner
2026-11-04 19:54 ` [PATCH RESEND v2 20/30] sched/psi: let procfs own the wait queue of the pressure files Christian Brauner
2026-11-04 19:54 ` [PATCH RESEND v2 21/30] kallsyms: let procfs own the seq_file of /proc/kallsyms Christian Brauner
2026-11-04 19:55 ` [PATCH RESEND v2 22/30] module: procfs: let procfs own the seq_file of /proc/modules Christian Brauner
2026-11-04 19:55 ` [PATCH RESEND v2 23/30] dyndbg: let procfs copy in writes to /proc/dynamic_debug/control Christian Brauner
2026-11-04 19:55 ` [PATCH RESEND v2 24/30] ipc: let procfs own the seq_file of the sysvipc files Christian Brauner
2026-11-04 19:55 ` [PATCH RESEND v2 25/30] alloc_tag: let procfs own the seq_file of /proc/allocinfo Christian Brauner
2026-11-04 19:56 ` [PATCH RESEND v2 26/30] alloc_tag: let procfs copy the ioctl arguments " Christian Brauner
2026-11-04 19:56 ` [PATCH RESEND v2 27/30] mm/swapfile: let procfs own the seq_file of /proc/swaps Christian Brauner
2026-11-04 19:56 ` [PATCH RESEND v2 28/30] mm/swapfile: let procfs own the wait queue " Christian Brauner
2026-11-04 19:56 ` [PATCH RESEND v2 29/30] kernel/configs: let procfs copy out reads of /proc/config.gz Christian Brauner
2026-11-04 19:57 ` [PATCH RESEND v2 30/30] selftests/proc: check that unloading configs doesn't wait for a reader Christian Brauner
2026-11-04 20:05 ` [PATCH RESEND v2 00/30] proc: convert the fs, kernel and mm entries (Part 5/7) Linus Torvalds
2026-11-04 19:57 ` [PATCH RESEND v2 00/13] proc: convert the net entries and the kfifo samples (Part 6/7) Christian Brauner
2026-11-04 19:57 ` [PATCH RESEND v2 01/13] atm: let procfs copy out reads of the device files Christian Brauner
2026-11-04 19:58 ` [PATCH RESEND v2 02/13] l2tp: let procfs own the seq_file of /proc/net/pppol2tp Christian Brauner
2026-11-04 19:58 ` [PATCH RESEND v2 03/13] net: pktgen: let procfs copy in commands Christian Brauner
2026-11-04 19:58 ` [PATCH RESEND v2 04/13] netfilter: xt_recent: let procfs own the seq_file Christian Brauner
2026-11-04 19:58 ` [PATCH RESEND v2 05/13] netfilter: xt_recent: let procfs copy in writes Christian Brauner
2026-11-04 19:59 ` [PATCH RESEND v2 06/13] SUNRPC: let procfs own the seq_file of the cache content file Christian Brauner
2026-11-04 19:59 ` [PATCH RESEND v2 07/13] SUNRPC: let procfs copy in writes Christian Brauner
2026-11-04 19:59 ` [PATCH RESEND v2 08/13] SUNRPC: let procfs copy out reads Christian Brauner
2026-11-04 21:13 ` [PATCH RESEND v2 09/13] SUNRPC: drop the ioctl of the procfs channel files Christian Brauner
2026-11-04 21:13 ` [PATCH RESEND v2 10/13] SUNRPC: let procfs own the wait queue " Christian Brauner
2026-11-04 21:13 ` [PATCH RESEND v2 11/13] samples/kfifo: let procfs copy in writes Christian Brauner
2026-11-04 21:14 ` [PATCH RESEND v2 12/13] samples/kfifo: let procfs copy out reads Christian Brauner
2026-11-04 21:14 ` [PATCH RESEND v2 13/13] selftests/proc: check that removing a polled entry wakes its pollers Christian Brauner
2026-11-04 21:15 ` [PATCH RESEND v2 0/6] proc: drop the __user methods (Part 7/7) Christian Brauner
2026-11-04 21:15 ` [PATCH RESEND v2 1/6] proc: drop ->proc_write() Christian Brauner
2026-11-04 21:15 ` [PATCH RESEND v2 2/6] proc: drop ->proc_ioctl() and ->proc_compat_ioctl() Christian Brauner
2026-11-04 21:16 ` [PATCH RESEND v2 3/6] proc: give kcore, kmsg and the kpage files their own file_operations Christian Brauner
2026-11-04 21:16 ` [PATCH RESEND v2 4/6] proc: drop ->proc_read() and ->proc_read_iter() Christian Brauner
2026-11-04 21:16 ` [PATCH RESEND v2 5/6] proc: drop the _buf suffix from the new methods Christian Brauner
2026-11-04 21:16 ` [PATCH RESEND v2 6/6] proc: drop the poll_table from ->proc_poll() Christian Brauner
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=20261104-work-procfs-core-v2-21-76ace653a773@kernel.org \
--to=brauner@kernel.org \
--cc=cel@kernel.org \
--cc=corbet@lwn.net \
--cc=coreteam@netfilter.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=edumazet@kernel.org \
--cc=gregkh@suse.de \
--cc=hch@lst.de \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=jack@suse.com \
--cc=jack@suse.cz \
--cc=jannh@google.com \
--cc=jfs-discussion@lists.sourceforge.net \
--cc=jlayton@kernel.org \
--cc=joel.granados@kernel.org \
--cc=josef@toxicpanda.com \
--cc=kees@kernel.org \
--cc=kexec@lists.infradead.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-atm-general@lists.sourceforge.net \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-debuggers@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=linux-mm@kvack.org \
--cc=linux-modules@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-um@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mason@kernel.org \
--cc=neil@brown.name \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=ntfs3@lists.linux.dev \
--cc=platform-driver-x86@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=sparclinux@vger.kernel.org \
--cc=tglx@kernel.org \
--cc=tiwai@suse.de \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/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