mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
To: Roberto Sassu <roberto.sassu@polito.it>
Cc: kirkland@canonical.com, dhowells@redhat.com, jmorris@namei.org,
	linux-fsdevel@vger.kernel.org, keyrings@linux-nfs.org,
	linux-kernel@vger.kernel.org, ecryptfs-devel@lists.launchpad.net
Subject: Re: [PATCH 1/5] eCryptfs: ecryptfs_keyring_auth_tok_for_sig() bug fix
Date: Fri, 18 Mar 2011 11:02:05 -0500	[thread overview]
Message-ID: <20110318160205.GD22193@boyd.l.tihix.com> (raw)
In-Reply-To: <1300362538-11502-2-git-send-email-roberto.sassu@polito.it>

On Thu Mar 17, 2011 at 12:48:50PM +0100, Roberto Sassu <roberto.sassu@polito.it> wrote:
> The pointer '(*auth_tok_key)' is set to NULL in case request_key() fails,
> in order to prevent its use by functions calling
> ecryptfs_keyring_auth_tok_for_sig().

Thanks Roberto - I'm going to go ahead and merge this one into my #next
tree. Feel free to drop it from this patch set when you resend.

Tyler

> 
> Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
> ---
>  fs/ecryptfs/keystore.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c
> index c1436cf..4feb78c 100644
> --- a/fs/ecryptfs/keystore.c
> +++ b/fs/ecryptfs/keystore.c
> @@ -1563,6 +1563,7 @@ int ecryptfs_keyring_auth_tok_for_sig(struct key **auth_tok_key,
>  		printk(KERN_ERR "Could not find key with description: [%s]\n",
>  		       sig);
>  		rc = process_request_key_err(PTR_ERR(*auth_tok_key));
> +		(*auth_tok_key) = NULL;
>  		goto out;
>  	}
>  	(*auth_tok) = ecryptfs_get_key_payload_data(*auth_tok_key);
> -- 
> 1.7.4
> 



  reply	other threads:[~2011-03-18 16:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-17 11:48 [PATCH 0/5] eCryptfs key locking patches Roberto Sassu
2011-03-17 11:48 ` [PATCH 1/5] eCryptfs: ecryptfs_keyring_auth_tok_for_sig() bug fix Roberto Sassu
2011-03-18 16:02   ` Tyler Hicks [this message]
2011-03-17 11:48 ` [PATCH 2/5] eCryptfs: modified size of keysig in the ecryptfs_key_sig structure Roberto Sassu
2011-03-18 15:52   ` Tyler Hicks
2011-03-17 11:48 ` [PATCH 3/5] eCryptfs: verify authentication tokens before their use Roberto Sassu
2011-03-18  3:05   ` Tyler Hicks
2011-03-18  9:21     ` Roberto Sassu
2011-03-17 11:48 ` [PATCH 4/5] eCryptfs: move ecryptfs_find_auth_tok_for_sig() call before mutex_lock Roberto Sassu
2011-03-18 15:30   ` Tyler Hicks
2011-03-18 15:44     ` Roberto Sassu
2011-03-17 11:48 ` [PATCH 5/5] eCryptfs: write lock requested keys Roberto Sassu

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=20110318160205.GD22193@boyd.l.tihix.com \
    --to=tyhicks@linux.vnet.ibm.com \
    --cc=dhowells@redhat.com \
    --cc=ecryptfs-devel@lists.launchpad.net \
    --cc=jmorris@namei.org \
    --cc=keyrings@linux-nfs.org \
    --cc=kirkland@canonical.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roberto.sassu@polito.it \
    /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

all inboxes | Powered by JetHome®