Linux NFS development
 help / color / mirror / Atom feed
From: Wei Yongjun <yjwei@cn.fujitsu.com>
To: nfs@lists.sourceforge.net
Cc: NFSv4@linux-nfs.org
Subject: Re: [PATCH] rpcgss : RPC_GSS_PROC_DESTROY request will get a bad rpc reply message
Date: Tue, 17 Apr 2007 16:04:32 +0800	[thread overview]
Message-ID: <46247F90.8030106@cn.fujitsu.com> (raw)
In-Reply-To: <461B5E8D.6070005@cn.fujitsu.com>

Does anyone think this is a BUG of kernel RPCGSS? Although this seems 
not be used yet.

> If I send a RPC_GSS_PROC_DESTROY message to NFSv4 server, I will reply 
> us a bad rpc reply which without an authentication verifier in it.
> Maybe this patch is needed.
>
> Send/recv packets as following:
>
> send:
>
> RemoteProcedureCall
>     xid
>     rpcvers = 2
>     prog = 100003
>     vers = 4
>     proc = 0
>     cred = AUTH_GSS
>         version = 1
>         gss_proc = 3 (RPCSEC_GSS_DESTROY)
>         service  = 1 (RPC_GSS_SVC_NONE)
>     verf = AUTH_GSS
>         checksum
>
> reply:
>
> RemoteProcedureReply
>     xid
>     msg_type
>     reply_stat
>     accepted_reply
>
> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
>
> --- net/sunrpc/auth_gss/svcauth_gss.c.orig	2007-04-09 08:17:55.000000000 -0400
> +++ net/sunrpc/auth_gss/svcauth_gss.c	2007-04-09 08:18:37.000000000 -0400
> @@ -1088,6 +1088,8 @@ svcauth_gss_accept(struct svc_rqst *rqst
>  		}
>  		goto complete;
>  	case RPC_GSS_PROC_DESTROY:
> +		if (gss_write_verf(rqstp, rsci->mechctx, gc->gc_seq))
> +			goto auth_err;
>  		set_bit(CACHE_NEGATIVE, &rsci->h.flags);
>  		if (resv->iov_len + 4 > PAGE_SIZE)
>  			goto drop;
>   
-- 

A new email address of FJWAN is launched from Apr.1 2007.
The updated address is: yjwei@cn.fujitsu.com 
--------------------------------------------------
Wei Yongjun
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
8/F., Civil Defense Building, No.189 Guangzhou Road,
Nanjing, 210029, China
TEL: +86+25-86630523-858
COINS: 79955-858
FAX: +86+25-83317685
MAIL: yjwei@cn.fujitsu.com
--------------------------------------------------

  reply	other threads:[~2007-04-17  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10  9:53 [PATCH] rpcgss : RPC_GSS_PROC_DESTROY request will get a bad rpc reply message Wei Yongjun
2007-04-17  8:04 ` Wei Yongjun [this message]
2007-04-17 13:09   ` J. Bruce Fields

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46247F90.8030106@cn.fujitsu.com \
    --to=yjwei@cn.fujitsu.com \
    --cc=NFSv4@linux-nfs.org \
    --cc=nfs@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox