Skip to contentSkip to conversation

linux-next: manual merge of the fs-next tree with the mm-nonmm-unstable tree

PATCH Mark Brown 2 participants 2 messages Nov 25

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

Today's linux-next merge of the fs-next tree got a conflict in:

fs/proc/internal.h

between commit:

262ae352515b6 ("proc: don't lock task inodes whose owner has not changed")

from the mm-nonmm-unstable tree and commit:

6819e45d237d1 ("proc: add helpers for files that outlive an execve()")

from the fs-next tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

fs/proc/internal.h +0 -0
diff --cc fs/proc/internal.h
index 5782189431d42,6c18496aad93e..0000000000000
@@@ -8,8 -8,8 +8,9 @@@
  #include <linux/proc_fs.h>
  #include <linux/proc_ns.h>
  #include <linux/refcount.h>
 +#include <linux/seqlock.h>
  #include <linux/spinlock.h>
+ #include <linux/lockdep.h>
  #include <linux/atomic.h>
  #include <linux/binfmts.h>
  #include <linux/sched/coredump.h>
@@@ -292,8 -330,14 +357,16 @@@ int proc_nochmod_setattr(const struct m
  extern void proc_pid_evict_inode(struct proc_inode *);
  extern struct inode *proc_pid_make_inode(struct super_block *, struct task_struct *, umode_t);
  extern void pid_update_inode(struct task_struct *, struct inode *);
 +bool proc_task_owner_valid(struct task_struct *task, struct inode *inode,
 +			   umode_t dump_mode, umode_t mode);
+ int proc_exec_id_single_open(struct inode *inode, struct file *file,
+ 			     int (*show)(struct seq_file *, void *));
+ int proc_exec_id_single_release(struct inode *inode, struct file *file);
+ int proc_exec_id_dir_open(struct inode *inode, struct file *file);
+ int proc_exec_id_dir_release(struct inode *inode, struct file *file);
+ int proc_exec_id_lock(const struct file *file, struct task_struct *task,
+ 		      u64 *exec_id);
+ void proc_exec_id_unlock(struct task_struct *task);
  extern int pid_delete_dentry(const struct dentry *);
  extern int proc_pid_readdir(struct file *, struct dir_context *);
  struct dentry *proc_pid_lookup(struct dentry *, unsigned int);
#1 lore raw
Quoted 8 lines · On Wed, 25 Nov 2026 14:33:23 +0000 Mark Brown <[email protected]> wrote:

Hi all,

Today's linux-next merge of the fs-next tree got a conflict in:

fs/proc/internal.h

between commit:

Quoted 7 lines

262ae352515b6 ("proc: don't lock task inodes whose owner has not changed")

from the mm-nonmm-unstable tree and commit:

6819e45d237d1 ("proc: add helpers for files that outlive an execve()")

from the fs-next tree.

OK, thanks. I'll disable "proc: serialize task owner lookup and inode updates" and "proc: don't lock task inodes whose owner has not changed".

They're good patches! But the bug has been there for at least seven years - I'll get back onto this in the next cycle.