summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGiuseppe Scrivano <giuseppe@scrivano.org>2026-11-11 12:26:04 +0100
committerAmir Goldstein <amir73il@gmail.com>2026-11-11 13:08:43 +0100
commit0d5e729c515f4ae4eacc179dbcf350d9b499a161 (patch)
tree7ba7ad667d13537fed0b4bd740259b654dc4084a /tools/perf/scripts/python
parentcbf4ccabcbfdda3da70c10b37e21e99cd2ee0946 (diff)
ovl: return EIO if the lowerdata is missing
The data of a metacopy file that redirects to a data-only layer is looked up when the file is opened, and the error of the lookup is returned as is. If the data file is missing, open() fails with ENOENT even though the file is there and stat() works. This can be an integrity problem when using composefs: a data file that is changed or has the wrong fs-verity digest is reported with EIO, but a missing one is not reported, the file just looks like it does not exist, e.g. a configuration file that overrides the defaults. Return EIO as it is already done in ovl_lookup() when no lower data is found for a metacopy file. ENOMEM is not changed. Fixes: 42dd69ae1af4 ("ovl: implement lazy lookup of lowerdata in data-only layers") Cc: stable@vger.kernel.org Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions