diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-16 14:51:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-16 14:51:16 +0300 |
commit | 8a7a1920d72c87692665de214fdc5dc37e34e5cb (patch) | |
tree | 234d7e730dde2a734322439f0400df7f2ee22201 /fs/afs | |
parent | aaecd681f60fa02c7697198b308336a13b231f30 (diff) | |
parent | 380df7b7938d3c3ba1d0d0b472a810fd38061329 (diff) | |
download | linux-8a7a1920d72c87692665de214fdc5dc37e34e5cb.tar.xz |
Merge v6.9.5
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/mntpt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index 97f50e9fd9eb..297487ee8323 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c @@ -140,6 +140,11 @@ static int afs_mntpt_set_params(struct fs_context *fc, struct dentry *mntpt) put_page(page); if (ret < 0) return ret; + + /* Don't cross a backup volume mountpoint from a backup volume */ + if (src_as->volume && src_as->volume->type == AFSVL_BACKVOL && + ctx->type == AFSVL_BACKVOL) + return -ENODEV; } return 0; |