Commit 9effe06c authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Zheng Zengkai
Browse files

nfsd: don't alloc under spinlock in rpc_parse_scope_id

stable inclusion
from stable-5.10.80
commit f3492c4a92644cb54ec2c6daff6c428aebfc36dc
bugzilla: 185821 https://gitee.com/openeuler/kernel/issues/I4L7CG

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f3492c4a92644cb54ec2c6daff6c428aebfc36dc



--------------------------------

[ Upstream commit 9b6e27d0 ]

Dan Carpenter says:

  The patch d20c11d8: "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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: d20c11d8 ("nfsd: Protect session creation and client...")
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 24a182d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment