All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: linux-nfs@vger.kernel.org
Cc: jlayton@redhat.com
Subject: Re: [PATCH] nfsd4: fix discarded security labels on setattr
Date: Fri, 1 Nov 2013 14:39:57 -0400	[thread overview]
Message-ID: <20131101183957.GC17294@fieldses.org> (raw)
In-Reply-To: <20131101144903.GA15493@fieldses.org>

On Fri, Nov 01, 2013 at 10:49:03AM -0400, J. Bruce Fields wrote:
> Jeff just noticed this.  Argh.

Applying for 3.13.--b.

> 
> --b.
> 
> commit 1012e867f57b3ae5712ea329065a9ab899c7986c
> Author: J. Bruce Fields <bfields@redhat.com>
> Date:   Fri Nov 1 10:42:15 2013 -0400
> 
>     nfsd4: fix discarded security labels on setattr
>     
>     Security labels in setattr calls are currently ignored because we forget
>     to set label->len.
>     
>     Reported-by: Jeff Layton <jlayton@redhat.com>
>     Signed-off-by: J. Bruce Fields <bfields@redhat.com>
> 
> diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
> index d9454fe..438d818 100644
> --- a/fs/nfsd/nfs4xdr.c
> +++ b/fs/nfsd/nfs4xdr.c
> @@ -411,6 +411,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,
>  		label->data = kzalloc(dummy32 + 1, GFP_KERNEL);
>  		if (!label->data)
>  			return nfserr_jukebox;
> +		label->len = dummy32;
>  		defer_free(argp, kfree, label->data);
>  		memcpy(label->data, buf, dummy32);
>  	}
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2013-11-01 18:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01 14:49 [PATCH] nfsd4: fix discarded security labels on setattr J. Bruce Fields
2013-11-01 18:39 ` J. Bruce Fields [this message]

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=20131101183957.GC17294@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=jlayton@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.