Re: [PATCH][RFC] userns and mnt_idmap leak in open_tree_attr(2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 24, 2025 at 07:57:46AM +0100, Al Viro wrote:
> [if nobody objects, I'm going to throw that into #fixes and send to Linus
> in a couple of days]
> 
> Once want_mount_setattr() has returned a positive, it does require
> finish_mount_kattr() to release ->mnt_userns.  Failing do_mount_setattr()
> does not change that.
> 
> As the result, we can end up leaking userns and possibly mnt_idmap as
> well.
> 
> Fixes: c4a16820d901 ("fs: add open_tree_attr()")
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> ---

Sure, thanks!
Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux