diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2026-04-27 21:19:28 +0300 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2026-06-05 07:34:54 +0300 |
| commit | 4a810147a07535e63a7c1fbb90975012e8d57f60 (patch) | |
| tree | 758d6da17695bbc6027814e84db3ac7adf967e21 /scripts/Makefile.thinlto | |
| parent | 0e0e490f5d5ec2f91209b77a95f9c7185d97cfc6 (diff) | |
| download | linux-4a810147a07535e63a7c1fbb90975012e8d57f60.tar.xz | |
alloc_path_pseudo(): make sure we don't end up with NORCU dentries for directories
A lot of places relies upon directories never having NORCU dentries;
currently that property holds, but the proof is not straightforward
and rather brittle.
It's better to have that verified in the sole caller of d_alloc_pseudo(),
so that any future bugs in that direction were caught early.
That way we can be sure that
* current directory of any process is not NORCU
* root directory of any process is not NORCU
* starting point of any LOOKUP_RCU pathwalk is not NORCU
* dget_parent() can rely upon ->d_parent not being NORCU
* d_walk() and is_subdir() can rely upon the same
* alloc_file_pseudo() won't create multiple aliases for a directory
without having to go through a convoluted audit.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
