]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
nfsd: don't alloc under spinlock in rpc_parse_scope_id
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 14 Sep 2021 16:30:32 +0000 (12:30 -0400)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:32 +0000 (09:48 +0100)
commita5decc668506a8d25cfc7452a9b71c700023471e
tree93de45524e5d295545923bdc4e920257fd0dbd64
parentc1e8a557b56d7ba98695446498a00c82e74b8f48
nfsd: don't alloc under spinlock in rpc_parse_scope_id

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 9b6e27d01adcec58e046c624874f8a124e8b07ec ]

Dan Carpenter says:

  The patch d20c11d86d8f: "nfsd: Protect session creation and client
  confirm using client_lock" from Jul 30, 2014, leads to the following
  Smatch static checker warning:

        net/sunrpc/addr.c:178 rpc_parse_scope_id()
        warn: sleeping in atomic context

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: d20c11d86d8f ("nfsd: Protect session creation and client...")
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/sunrpc/addr.c