Skip to content
Commit bbca64f2 authored by Jeff Layton's avatar Jeff Layton Committed by Greg Kroah-Hartman
Browse files

sunrpc: only free unix grouplist after RCU settles

[ Upstream commit 5085e41f

 ]

While the unix_gid object is rcu-freed, the group_info list that it
contains is not. Ensure that we only put the group list reference once
we are really freeing the unix_gid object.

Reported-by: default avatarZhi Li <yieli@redhat.com>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2183056
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Fixes: fd5d2f78

 ("SUNRPC: Make server side AUTH_UNIX use lockless lookups")
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ca7c3b4a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment