linux/fs/overlayfs
Miklos Szeredi b10b85fe51 ovl: warn if trusted xattr creation fails
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>
2022-07-27 16:31:30 +02:00
..
copy_up.c ovl: use ovl_path_getxattr() wrapper 2022-04-28 16:31:11 +02:00
dir.c ovl: use ovl_copy_{real,upper}attr() wrappers 2022-04-28 16:31:12 +02:00
export.c ovl: handle idmappings for layer lookup 2022-04-28 16:31:12 +02:00
file.c overlayfs update for 5.19 2022-05-30 11:19:16 -07:00
inode.c ovl: handle idmappings in ovl_xattr_{g,s}et() 2022-04-28 16:31:12 +02:00
Kconfig docs: fix broken references to text files 2020-04-20 15:35:59 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c ovl: handle idmappings for layer lookup 2022-04-28 16:31:12 +02:00
overlayfs.h ovl: use ovl_copy_{real,upper}attr() wrappers 2022-04-28 16:31:12 +02:00
ovl_entry.h ovl: support idmapped layers 2022-04-28 16:31:12 +02:00
readdir.c ovl: handle idmappings for layer lookup 2022-04-28 16:31:12 +02:00
super.c ovl: warn if trusted xattr creation fails 2022-07-27 16:31:30 +02:00
util.c ovl: handle idmappings in layer open helpers 2022-04-28 16:31:12 +02:00