diff options
| author | Amir Goldstein <amir73il@gmail.com> | 2026-05-14 22:56:46 +0200 |
|---|---|---|
| committer | Amir Goldstein <amir73il@gmail.com> | 2026-10-29 13:20:47 +0100 |
| commit | ba227ed05b385926094741e2d566789525c36085 (patch) | |
| tree | 65a989b98aa0ae6a5b9eb5beed93ff42a482461d /scripts/Makefile.thinlto | |
| parent | cbec8610ec5aaf35df50094ff639febc23f20773 (diff) | |
| download | linux-ba227ed05b385926094741e2d566789525c36085.tar.gz linux-ba227ed05b385926094741e2d566789525c36085.zip | |
ovl: add assertions in dir cache code
Overlayfs may keep two different types of directory cache
merged (refcounted) and impure (not refcounted) in the inode.
They are mutually exclusive and an overlayfs directory is never
expected to switch between merged and impure modes.
Nevertheless it is hard to prove that races in the code are not
possible, so add assertions to fortify the code accessing the
directory cache to make sure it does not free the unexpected
cache type.
If an assertion fires the code may leak dir cache memory
but it will not access freed cache memory.
Suggested-by: Nirmoy Das <nirmoyd@nvidia.com>
Link: https://lore.kernel.org/r/20260511062057.2365769-1-nirmoyd@nvidia.com/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
