Re: [f2fs-dev] [PATCH] f2fs: use the mount idmap for the owner check in f2fs_xattr_advise_set()
Jaegeuk Kim <[email protected]> Mon, 3 Aug 2026 23:33:19 +0000
| Newsgroups | org.kernel.vger.linux-fsdevel,net.sourceforge.lists.linux-f2fs-devel,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On 07/30, Christian Brauner via Linux-f2fs-devel wrote:
> Hi Rochan,
>
> > f2fs_xattr_advise_set() calls inode_owner_or_capable() with
> > &nop_mnt_idmap before allowing the advise xattr to be set, instead of
> > the idmap that was passed into the handler.
> >
> > Since f2fs supports idmapped mounts, this compares the caller's fsuid
> > against the unmapped on-disk owner rather than the mapped owner; resulting
> > in the actual owner to be wrongly denied with -EPERM. Use the idmap
> > argument that was already passed to the xattr handler instead.
> >
> > Fixes: 984fc4e76d63 ("f2fs: support idmapped mounts")
> > Cc: [email protected]
> > Signed-off-by: Rochan Avlur <[email protected]>
>
> Seems generally fine to me,
> Acked-by: Christian Brauner (Amutable) <braurg>
Thanks, let me applied Acked-by: to the first submitted patch, which is same.
>
> --
>
>
>
> _______________________________________________
> Linux-f2fs-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel