From: "Paul Moore" <paul.moore@hp.com>
To: <jmorris@namei.org>
Cc: <Valdis.Kletnieks@vt.edu>, <akpm@linux-foundation.org>,
<linux-kernel@vger.kernel.org>, <sds@tycho.nsa.gov>
Subject: Re: 2.6.24-rc6-mm1 - git-lblnet.patch and networking horkage
Date: 26 Dec 2007 08:57:00 -0700 [thread overview]
Message-ID: <3281504256.5618888@mail.hp.com> (raw)
As James said I'm away right now and computer access is limited. However, I'm stuck in the airport right now and spent some time looking at the code ... Based on what has been found so far I wonder if the problem isn't a race but a problem of skb->iif never being initialized correctly? To my untrained eye it looks like __netdev_alloc_skb() should be setting skb->iif (like it does for skb->dev) but it currently doesn't.
Am I barking up the wrong tree here?
. paul moore
. linux security @ hp
-----Original Message-----
From: James Morris <jmorris@namei.org>
Date: Wednesday, Dec 26, 2007 7:16 am
Subject: Re: 2.6.24-rc6-mm1 - git-lblnet.patch and networking horkage
To: Valdis.Kletnieks@vt.edu
CC: Andrew Morton <akpm@linux-foundation.org>, Paul Moore <paul.moore@hp.com>, linux-kernel@vger.kernel.org, Stephen Smalley <sds@tycho.nsa.gov>
On Wed, 26 Dec 2007, James Morris wrote:
>
>> What does the following say ?
>
> # sestatus && rpm -q selinux-policy
>
>Don't worry about that -- I reproduced it with Paul Moore's git tree: git://git.infradead.org/users/pcmoore/lblnet-2.6_testing
>
>(under current -mm, the e1000 driver doesn't find my ethernet card & the
>tcl tests won't run without an external interface).
>
>The offending commit is when SELinux is converted to the new ifindex
>interface:
>
> 9c6ad8f6895db7a517c04c2147cb5e7ffb83a315 is first bad commit
> commit 9c6ad8f6895db7a517c04c2147cb5e7ffb83a315
> Author: Paul Moore <paul.moore@hp.com>
> Date: Fri Dec 21 11:44:26 2007 -0500
>
> SELinux: Convert the netif code to use ifindex values
>
> [...]
>
>In some case (not yet fully identified -- also happens when avahi starts
>up, although seemingly silently & without obvious issues), SELinux is
>passed an ifindex of 1515870810, which corresponds to 0x5a5a5a5a, the slab
>poison value, suggesting a race in the calling code where we're being
>asked to check an skb which has been freed.
>
>The SELinux code is erroring out before performing an access check
>(perhaps there should be WARN_ON, at least), so this will affect both
>permissive and enforcing mode without generating any log messages.
>
>Andrew: I suggest dropping the patchset from -mm until Paul gets back from
>vacation.
>
>
>- James
>--
>James Morris
><jmorris@namei.org>
>
next reply other threads:[~2007-12-26 15:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-26 15:57 Paul Moore [this message]
2007-12-26 21:52 ` 2.6.24-rc6-mm1 - git-lblnet.patch and networking horkage James Morris
2007-12-28 14:21 ` Paul Moore
2007-12-31 17:13 ` Paul Moore
2007-12-31 20:06 ` Paul Moore
2007-12-31 21:46 ` James Morris
2007-12-31 22:01 ` Paul Moore
-- strict thread matches above, loose matches on Subject: below --
2007-12-23 7:30 2.6.24-rc6-mm1 Andrew Morton
2007-12-26 5:43 ` 2.6.24-rc6-mm1 - git-lblnet.patch and networking horkage Valdis.Kletnieks
2007-12-26 7:34 ` James Morris
2007-12-26 8:25 ` Valdis.Kletnieks
2007-12-26 8:52 ` James Morris
2007-12-26 14:16 ` James Morris
2007-12-26 22:46 ` Andrew Morton
2007-12-26 16:44 ` Valdis.Kletnieks
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=3281504256.5618888@mail.hp.com \
--to=paul.moore@hp.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=akpm@linux-foundation.org \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sds@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