Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'ovl-fixes-6.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs

Pull overlayfs fixes from Miklos Szeredi:
"Fix two bugs, a recent one introduced in the last cycle, and an older
one from v5.11"

* tag 'ovl-fixes-6.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
ovl: fail on invalid uid/gid mapping at copy up
ovl: fix tmpfile leak

+5 -1
+5 -1
fs/overlayfs/copy_up.c
··· 792 792 if (!c->metacopy && c->stat.size) { 793 793 err = ovl_copy_up_file(ofs, c->dentry, tmpfile, c->stat.size); 794 794 if (err) 795 - return err; 795 + goto out_fput; 796 796 } 797 797 798 798 err = ovl_copy_up_metadata(c, temp); ··· 1010 1010 STATX_BASIC_STATS, AT_STATX_SYNC_AS_STAT); 1011 1011 if (err) 1012 1012 return err; 1013 + 1014 + if (!kuid_has_mapping(current_user_ns(), ctx.stat.uid) || 1015 + !kgid_has_mapping(current_user_ns(), ctx.stat.gid)) 1016 + return -EOVERFLOW; 1013 1017 1014 1018 ctx.metacopy = ovl_need_meta_copy_up(dentry, ctx.stat.mode, flags); 1015 1019