Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338Ab1B1V01 (ORCPT ); Mon, 28 Feb 2011 16:26:27 -0500 Received: from kroah.org ([198.145.64.141]:38199 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751184Ab1B1V00 (ORCPT ); Mon, 28 Feb 2011 16:26:26 -0500 Date: Mon, 28 Feb 2011 13:26:02 -0800 From: Greg KH To: Lars Ellenberg Cc: linux-kernel@vger.kernel.org, trivial@kernel.org, "David S. Miller" , Patrick McHardy , netfilter-devel@vger.kernel.org, Holger Eitzenberger , stable@kernel.org Subject: Re: [stable] [patch] fix nla_policy_len to actually _iterate_ over the policy Message-ID: <20110228212602.GA9495@kroah.com> References: <20110228203559.GD8906@barkeeper1-xen.linbit> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110228203559.GD8906@barkeeper1-xen.linbit> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 820 Lines: 23 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 > > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/