]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:32 +0000 (11:04 +0100)
commitaeb40af85292d2a711238c4977af44b02262c525
tree7041656a151e11e41796b388648dda28aa78688f
parentb33831877a0e8520968dba8dfbb399e0890f3d51
nfsd: don't alloc under spinlock in rpc_parse_scope_id

[ 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>
net/sunrpc/addr.c