[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110228212602.GA9495@kroah.com>
Date: Mon, 28 Feb 2011 13:26:02 -0800
From: Greg KH <greg@...ah.com>
To: Lars Ellenberg <lars.ellenberg@...bit.com>
Cc: linux-kernel@...r.kernel.org, trivial@...nel.org,
"David S. Miller" <davem@...emloft.net>,
Patrick McHardy <kaber@...sh.net>,
netfilter-devel@...r.kernel.org,
Holger Eitzenberger <holger@...zenberger.org>,
stable@...nel.org
Subject: Re: [stable] [patch] fix nla_policy_len to actually _iterate_ over
the policy
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@...bit.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@...nel.org is NOT how to do it...)
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists