diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-04-30 15:08:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-10 21:46:45 +0200 |
commit | b5c3bc4b81046ba79676c6dfd7d7b8175ec4b90e (patch) | |
tree | fbb0067f0256c226a58dc824dbe5b01ada63a9f7 /security | |
parent | f0ea421fa2f7a75dd9ecc133f597ec49a2a2aab8 (diff) |
NFS: Fix a race in __nfs_list_for_each_server()
commit 9c07b75b80eeff714420fb6a4c880b284e529d0f upstream.
The struct nfs_server gets put on the cl_superblocks list before
the server->super field has been initialised, in which case the
call to nfs_sb_active() will Oops. Add a check to ensure that
we skip such a list entry.
Fixes: 3c9e502b59fb ("NFS: Add a helper nfs_client_for_each_server()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions