WSL2-Linux-Kernel/fs/overlayfs
Miklos Szeredi 8641e0bbb5 ovl: warn if trusted xattr creation fails
[ Upstream commit b10b85fe51 ]

When mounting overlayfs in an unprivileged user namespace, trusted xattr
creation will fail.  This will lead to failures in some file operations,
e.g. in the following situation:

  mkdir lower upper work merged
  mkdir lower/directory
  mount -toverlay -olowerdir=lower,upperdir=upper,workdir=work none merged
  rmdir merged/directory
  mkdir merged/directory

The last mkdir will fail:

  mkdir: cannot create directory 'merged/directory': Input/output error

The cause for these failures is currently extremely non-obvious and hard to
debug.  Hence, warn the user and suggest using the userxattr mount option,
if it is not already supplied and xattr creation fails during the
self-check.

Reported-by: Alois Wohlschlager <alois1@gmx-topmail.de>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:40:43 +02:00
..
Kconfig
Makefile
copy_up.c ovl: fix NULL pointer dereference in copy up warning 2022-02-05 12:38:59 +01:00
dir.c ovl: fix warning in ovl_create_real() 2021-12-22 09:32:50 +01:00
export.c ovl: drop WARN_ON() dentry is NULL in ovl_encode_fh() 2022-08-17 14:22:51 +02:00
file.c ovl: fix use after free in struct ovl_aio_req 2021-11-18 19:16:04 +01:00
inode.c ovl: fix filattr copy-up failure 2021-11-18 19:16:04 +01:00
namei.c ovl: relax lookup error on mismatch origin ftype 2021-08-17 11:47:44 +02:00
overlayfs.h ovl: fix warning in ovl_create_real() 2021-12-22 09:32:50 +01:00
ovl_entry.h ovl: implement volatile-specific fsync error behaviour 2021-01-28 10:22:48 +01:00
readdir.c ovl: skip stale entries in merge dir cache iteration 2021-08-10 10:21:30 +02:00
super.c ovl: warn if trusted xattr creation fails 2022-08-25 11:40:43 +02:00
util.c ovl: consistent behavior for immutable/append-only inodes 2021-08-17 11:47:43 +02:00