kernel_optimize_test/fs/overlayfs
Amir Goldstein cbe7fba8ed ovl: make sure that real fid is 32bit aligned in memory
Seprate on-disk encoding from in-memory and on-wire resresentation
of overlay file handle.

In-memory and on-wire we only ever pass around pointers to struct
ovl_fh, which encapsulates at offset 3 the on-disk format struct
ovl_fb. struct ovl_fb encapsulates at offset 21 the real file handle.
That makes sure that the real file handle is always 32bit aligned
in-memory when passed down to the underlying filesystem.

On-disk format remains the same and store/load are done into
correctly aligned buffer.

New nfs exported file handles are exported with aligned real fid.
Old nfs file handles are copied to an aligned buffer before being
decoded.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2019-12-10 16:00:55 +01:00
..
copy_up.c ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
dir.c SPDX update for 5.2-rc6 2019-06-21 09:58:42 -07:00
export.c ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
file.c SPDX update for 5.2-rc6 2019-06-21 09:58:42 -07:00
inode.c ovl: filter of trusted xattr results in audit 2019-09-11 16:11:45 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
overlayfs.h ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
ovl_entry.h ovl: fix lookup failure on multi lower squashfs 2019-12-10 16:00:55 +01:00
readdir.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
super.c ovl: fix lookup failure on multi lower squashfs 2019-12-10 16:00:55 +01:00
util.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00