diff options
| author | Oleksandr Tymoshenko <[email protected]> | 2024-10-30 00:28:55 +0000 |
|---|---|---|
| committer | Amir Goldstein <[email protected]> | 2024-11-11 09:44:36 +0000 |
| commit | 3b6b99ef15ea37635604992ede9ebcccef38a239 (patch) | |
| tree | 4def5d49e7f6bb266b80b0eba97869ad668e88b3 /rust/helpers/page.c | |
| parent | Linux 6.12-rc7 (diff) | |
| download | kernel-3b6b99ef15ea37635604992ede9ebcccef38a239.tar.gz kernel-3b6b99ef15ea37635604992ede9ebcccef38a239.zip | |
ovl: properly handle large files in ovl_security_fileattr
dentry_open in ovl_security_fileattr fails for any file
larger than 2GB if open method of the underlying filesystem
calls generic_file_open (e.g. fusefs).
The issue can be reproduce using the following script:
(passthrough_ll is an example app from libfuse).
$ D=/opt/test/mnt
$ mkdir -p ${D}/{source,base,top/uppr,top/work,ovlfs}
$ dd if=/dev/zero of=${D}/source/zero.bin bs=1G count=2
$ passthrough_ll -o source=${D}/source ${D}/base
$ mount -t overlay overlay \
-olowerdir=${D}/base,upperdir=${D}/top/uppr,workdir=${D}/top/work \
${D}/ovlfs
$ chmod 0777 ${D}/mnt/ovlfs/zero.bin
Running this script results in "Value too large for defined data type"
error message from chmod.
Signed-off-by: Oleksandr Tymoshenko <[email protected]>
Fixes: 72db82115d2b ("ovl: copy up sync/noatime fileattr flags")
Cc: [email protected] # v5.15+
Signed-off-by: Amir Goldstein <[email protected]>
Diffstat (limited to 'rust/helpers/page.c')
0 files changed, 0 insertions, 0 deletions
