diff options
| author | Marc Dionne <[email protected]> | 2024-05-24 16:17:55 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-05-25 12:02:40 +0000 |
| commit | 29be9100aca2915fab54b5693309bc42956542e5 (patch) | |
| tree | ed984039f37b960c0cba76fa9efe1b62c8f888c1 /net/unix/af_unix.c | |
| parent | swap: yield device immediately (diff) | |
| download | kernel-29be9100aca2915fab54b5693309bc42956542e5.tar.gz kernel-29be9100aca2915fab54b5693309bc42956542e5.zip | |
afs: Don't cross .backup mountpoint from backup volume
Don't cross a mountpoint that explicitly specifies a backup volume
(target is <vol>.backup) when starting from a backup volume.
It it not uncommon to mount a volume's backup directly in the volume
itself. This can cause tools that are not paying attention to get
into a loop mounting the volume onto itself as they attempt to
traverse the tree, leading to a variety of problems.
This doesn't prevent the general case of loops in a sequence of
mountpoints, but addresses a common special case in the same way
as other afs clients.
Reported-by: Jan Henrik Sylvester <[email protected]>
Link: http://lists.infradead.org/pipermail/linux-afs/2024-May/008454.html
Reported-by: Markus Suvanto <[email protected]>
Link: http://lists.infradead.org/pipermail/linux-afs/2024-February/008074.html
Signed-off-by: Marc Dionne <[email protected]>
Signed-off-by: David Howells <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jeffrey Altman <[email protected]>
cc: [email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
