Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751755AbbECTDc (ORCPT ); Sun, 3 May 2015 15:03:32 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52292 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751705AbbECTDZ (ORCPT ); Sun, 3 May 2015 15:03:25 -0400 Date: Sun, 3 May 2015 20:42:25 +0200 From: Greg Kroah-Hartman To: Stefan Lippers-Hollmann Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Alexey Perevalov , Daniel Borkmann , Pablo Neira Ayuso , Thomas Backlund Subject: Re: [PATCH 4.0 219/220] netfilter: x_tables: fix cgroup matching on non-full sks Message-ID: <20150503184225.GA19674@kroah.com> References: <20150502185854.333748961@linuxfoundation.org> <20150502185903.721216241@linuxfoundation.org> <20150503001130.0108b527@mir> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150503001130.0108b527@mir> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2067 Lines: 49 On Sun, May 03, 2015 at 12:11:30AM +0200, Stefan Lippers-Hollmann wrote: > Hi > > On 2015-05-02, Greg Kroah-Hartman wrote: > > 4.0-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Daniel Borkmann > > > > commit afb7718016fcb0370ac29a83b2839c78b76c2960 upstream. > > > > While originally only being intended for outgoing traffic, commit > > a00e76349f35 ("netfilter: x_tables: allow to use cgroup match for > > LOCAL_IN nf hooks") enabled xt_cgroups for the NF_INET_LOCAL_IN hook > > as well, in order to allow for nfacct accounting. > > > > Besides being currently limited to early demuxes only, commit > > a00e76349f35 forgot to add a check if we deal with full sockets, > > i.e. in this case not with time wait sockets. TCP time wait sockets > > do not have the same memory layout as full sockets, a lower memory > > footprint and consequently also don't have a sk_classid member; > > probing for sk_classid member there could potentially lead to a > > crash. > > This introduces the same build failure into queue-4.0, as previously > reported by Thomas Backlund for queue-3.19 in > > http://lkml.kernel.org/r/<554545E5.8020606@mageia.org> > > /tmp/buildd/linux-aptosid-4.0/net/netfilter/xt_cgroup.c: In function 'cgroup_mt': > /tmp/buildd/linux-aptosid-4.0/net/netfilter/xt_cgroup.c:42:2: error: implicit declaration of function 'sk_fullsock' [-Werror=implicit-function-declaration] > if (skb->sk == NULL || !sk_fullsock(skb->sk)) > ^ > cc1: some warnings being treated as errors > /tmp/buildd/linux-aptosid-4.0/scripts/Makefile.build:264: recipe for target 'net/netfilter/xt_cgroup.o' failed > make[7]: *** [net/netfilter/xt_cgroup.o] Error 1 > > Regards > Stefan Lippers-Hollmann Thanks, now removed. 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/