All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jonghwan Choi <jhbird.choi@gmail.com>
Cc: stable@vger.kernel.org, netfilter@vger.kernel.org,
	Jonghwan Choi <jhbird.choi@samsung.com>
Subject: Re: [PATCH 3.8-stable] netfilter: nfnetlink_acct: return -EINVAL if object name is empty
Date: Sat, 13 Apr 2013 12:08:38 +0200	[thread overview]
Message-ID: <20130413100838.GB7230@localhost> (raw)
In-Reply-To: <1365779765-11924-1-git-send-email-jhbird.choi@samsung.com>

On Sat, Apr 13, 2013 at 12:16:05AM +0900, Jonghwan Choi wrote:
> From: Pablo Neira Ayuso <pablo@netfilter.org>
> 
> This patch looks like it should be in the 3.8-stable tree, should we apply
> it?

Please, hold on with this. I'm preparing a -stable batch.

> ------------------
> 
> From: "Pablo Neira Ayuso <pablo@netfilter.org>"
> 
> commit deadcfc3324410726cd6a663fb4fc46be595abe7 upstream
> 
> If user-space tries to create accounting object with an empty
> name, then return -EINVAL.
> 
> Reported-by: Michael Zintakis <michael.zintakis@googlemail.com>
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
> Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
> ---
>  net/netfilter/nfnetlink_acct.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c
> index 589d686..dc3fd5d 100644
> --- a/net/netfilter/nfnetlink_acct.c
> +++ b/net/netfilter/nfnetlink_acct.c
> @@ -49,6 +49,8 @@ nfnl_acct_new(struct sock *nfnl, struct sk_buff *skb,
>  		return -EINVAL;
>  
>  	acct_name = nla_data(tb[NFACCT_NAME]);
> +	if (strlen(acct_name) == 0)
> +		return -EINVAL;
>  
>  	list_for_each_entry(nfacct, &nfnl_acct_list, head) {
>  		if (strncmp(nfacct->name, acct_name, NFACCT_NAME_MAX) != 0)
> -- 
> 1.7.10.4
> 

      reply	other threads:[~2013-04-13 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12 15:16 [PATCH 3.8-stable] netfilter: nfnetlink_acct: return -EINVAL if object name is empty Jonghwan Choi
2013-04-13 10:08 ` Pablo Neira Ayuso [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=20130413100838.GB7230@localhost \
    --to=pablo@netfilter.org \
    --cc=jhbird.choi@gmail.com \
    --cc=jhbird.choi@samsung.com \
    --cc=netfilter@vger.kernel.org \
    --cc=stable@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.