]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix infinite loop in gss_create_upcall()
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 13 Apr 2011 18:31:28 +0000 (14:31 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 13 Apr 2011 19:12:22 +0000 (15:12 -0400)
commitb9b7c4e817b8e87f20ab8276f4275663f1cbee03
treeb2aaef4f3aa4566765c6e3c743c74929a7790af2
parent2f986118dfeda3b6bd94fee7e16631103174f37a
NFS: Fix infinite loop in gss_create_upcall()

There can be an infinite loop if gss_create_upcall() is called without
the userspace program running.  To prevent this, we return -EACCES if
we notice that pipe_version hasn't changed (indicating that the pipe
has not been opened).

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
net/sunrpc/auth_gss/auth_gss.c