diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-15 06:32:26 +0300 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-19 19:00:07 +0300 |
| commit | da025cdb97a23c1916d8491925b878f3e1de0bca (patch) | |
| tree | 63cec32b7b9a1211bc67df47e6837f556fc87828 /net/switchdev/switchdev.c | |
| parent | 0ddfb62f5d018edcb571a3d8ea30ad5332cf2a69 (diff) | |
| download | linux-da025cdb97a23c1916d8491925b878f3e1de0bca.tar.xz | |
propagate_umount(): only surviving overmounts should be reparented
... as the comments in reparent() clearly say. As it is, we reparent
*all* overmounts of the mounts being taken out, including those that
are taken out themselves. It's not only a potentially massive slowdown
(on a pathological setup we might end up with O(N^2) time for N mounts
being kicked out), it can end up with incorrect ->overmount in the
surviving mounts.
Fixes: f0d0ba19985d "Rewrite of propagate_umount()"
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
