]> git.baikalelectronics.ru Git - kernel.git/commit
svcrpc: fix failures to handle -1 uid's and gid's
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 24 May 2013 21:24:34 +0000 (17:24 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 29 May 2013 14:37:47 +0000 (10:37 -0400)
commit5a2c1e923e8efd44abcce43d1df156a517acca4a
tree8584f989f7df14dc0dd770b799cdae9f2f69951a
parent46a4889a8bea2a8584b8540854203fb3efcab9bb
svcrpc: fix failures to handle -1 uid's and gid's

As of 5a5cfd2f6f6f0df3dfdaa45c869bee2bb6cf417c "sunrpc: Properly decode
kuids and kgids in RPC_AUTH_UNIX credentials" any rpc containing a -1
(0xffff) uid or gid would fail with a badcred error.

Reported symptoms were xmbc clients failing on upgrade of the NFS
server; examination of the network trace showed them sending -1 as the
gid.

Reported-by: Julian Sikorski <belegdol@gmail.com>
Tested-by: Julian Sikorski <belegdol@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcauth_unix.c