From: Paolo Abeni <pabeni@redhat.com>
To: Paul Moore <paul@paul-moore.com>
Cc: netdev@vger.kernel.org, selinux@tycho.nsa.gov
Subject: Re: SELinux/IP_PASSSEC regression in 4.13-rcX
Date: Tue, 25 Jul 2017 17:36:59 +0200 [thread overview]
Message-ID: <1500997019.13149.12.camel@redhat.com> (raw)
In-Reply-To: <CAHC9VhTe71CM4i+c86ckbV1GUPdNs1R5sByamZRqLwdYaWcMmw@mail.gmail.com>
On Tue, 2017-07-25 at 10:45 -0400, Paul Moore wrote:
> On Tue, Jul 25, 2017 at 5:59 AM, Paolo Abeni <pabeni@redhat.com> 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 <paul@paul-moore.com>
Sure. I'll submit soon for -net.
Cheers,
Paolo
prev parent reply other threads:[~2017-07-25 15:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 22:19 SELinux/IP_PASSSEC regression in 4.13-rcX Paul Moore
2017-07-24 12:25 ` Paolo Abeni
2017-07-24 14:42 ` Paul Moore
2017-07-24 16:09 ` Paolo Abeni
2017-07-24 19:00 ` Paul Moore
2017-07-25 2:00 ` Paul Moore
2017-07-25 9:59 ` Paolo Abeni
2017-07-25 14:45 ` Paul Moore
2017-07-25 15:36 ` Paolo Abeni [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=1500997019.13149.12.camel@redhat.com \
--to=pabeni@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=selinux@tycho.nsa.gov \
/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).