From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Abeni Subject: Re: SELinux/IP_PASSSEC regression in 4.13-rcX Date: Tue, 25 Jul 2017 17:36:59 +0200 Message-ID: <1500997019.13149.12.camel@redhat.com> References: <1500899117.2458.2.camel@redhat.com> <1500912555.2458.12.camel@redhat.com> <1500976778.2929.5.camel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, selinux@tycho.nsa.gov To: Paul Moore Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38344 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186AbdGYPhC (ORCPT ); Tue, 25 Jul 2017 11:37:02 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 2017-07-25 at 10:45 -0400, Paul Moore wrote: > On Tue, Jul 25, 2017 at 5:59 AM, Paolo Abeni wrote: > > On Mon, 2017-07-24 at 22:00 -0400, Paul Moore wrote: > > > > I'm happy to test this, but if you are curious, you can find the > > > > selinux-testsuite at the link below; the "inet_socket" tests are the > > > > ones relevant to this problem. > > > > > > > > * https://github.com/SELinuxProject/selinux-testsuite > > > > Thanks, I'll have a look. > > > > > > However, I believe there is a problem with this patch, see below. > > > > [...] > > > > > > > -#if BITS_PER_LONG == 64 > > > > > +#define UDP_SKB_IS_STATELESS 0x80000000 > > > > > + > > > > > static void udp_set_dev_scratch(struct sk_buff *skb) > > > > > { > > > > > - struct udp_dev_scratch *scratch; > > > > > + struct udp_dev_scratch *scratch = udp_skb_scratch(skb); > > > > > > > > > > BUILD_BUG_ON(sizeof(struct udp_dev_scratch) > sizeof(long)); > > > > > > > > The BUILD_BUG_ON() assertion no longer appears to be correct with this patch. > > > > > > Nevermind, I just took a closer look at this and realized I made a > > > mistake when applying your patch (had to apply manually for some > > > reason). I'm building a test kernel now. > > > > Yup, I compile-tested the code, plus some basic sanity checks, so the > > build breakage felt unexpected. > > > > Thanks for testing, > > I just did a quick run through the selinux-testsuite and the > regression would appear to be fixed, thanks! I'm guessing you'll send > this to DaveM so we can get this fixed before v4.13 is released? > > Tested-by: Paul Moore Sure. I'll submit soon for -net. Cheers, Paolo