From: Greg KH <greg@kroah.com>
To: Lars Ellenberg <lars.ellenberg@linbit.com>
Cc: linux-kernel@vger.kernel.org, trivial@kernel.org,
"David S. Miller" <davem@davemloft.net>,
Patrick McHardy <kaber@trash.net>,
netfilter-devel@vger.kernel.org,
Holger Eitzenberger <holger@eitzenberger.org>,
stable@kernel.org
Subject: Re: [stable] [patch] fix nla_policy_len to actually _iterate_ over the policy
Date: Mon, 28 Feb 2011 13:26:02 -0800 [thread overview]
Message-ID: <20110228212602.GA9495@kroah.com> (raw)
In-Reply-To: <20110228203559.GD8906@barkeeper1-xen.linbit>
On Mon, Feb 28, 2011 at 09:35:59PM +0100, Lars Ellenberg wrote:
> Currently nla_policy_len always returns n * NLA_HDRLEN:
> It loops, but does not advance it's iterator.
> NLA_UNSPEC == 0 does not contain a .len in any policy.
>
> Trivially fixed by adding p++.
>
> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
>
> diff --git a/lib/nlattr.c b/lib/nlattr.c
Please read how to properly get patches into the stable kernel tree in
the file Documentation/stable_kernel_rules.txt (hint, randomly cc:ing
stable@kernel.org is NOT how to do it...)
thanks,
greg k-h
prev parent reply other threads:[~2011-02-28 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 20:35 [patch] fix nla_policy_len to actually _iterate_ over the policy Lars Ellenberg
2011-02-28 20:38 ` David Miller
2011-02-28 21:26 ` Greg KH [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=20110228212602.GA9495@kroah.com \
--to=greg@kroah.com \
--cc=davem@davemloft.net \
--cc=holger@eitzenberger.org \
--cc=kaber@trash.net \
--cc=lars.ellenberg@linbit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=stable@kernel.org \
--cc=trivial@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).