lkml.org 
[lkml]   [2008]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.25-mm1: not looking good
On Thu, 17 Apr 2008 19:55:46 -0400
Paul Moore <paul.moore@hp.com> wrote:

> > security/selinux/netnode.c looks to be doing simple old
> > kzalloc/kfree, so I'd be suspecting slab. But there are significant
> > changes netnode.c in git-selinux.
> >
> > I have maybe two hours in which to weed out whatever
> > very-recently-added dud patches are causing this. Any suggestions
> > are welcome.
>
> For what it's worth I just looked over the changes in netnode.c and
> nothing is jumping out at me. The changes ran fine for me when tested
> on the later 2.6.25-rcX kernels but I suppose that doesn't mean a whole
> lot.
>
> I've got a 4-way x86_64 box but it needs to be installed (which means
> I'm not going to be able to do anything useful with it until tomorrow
> at the earliest). I'll try it out and see if I can recreate the
> problem.

I dropped git-selinux and that crash seems to have gone away. It took about
five minutes before, but would presumably have happened earlier if I'd
reduced the cache size.

btw, wouldn't this

--- a/security/selinux/netnode.c~a
+++ a/security/selinux/netnode.c
@@ -190,7 +190,7 @@ static int sel_netnode_insert(struct sel
if (sel_netnode_hash[idx].size == SEL_NETNODE_HASH_BKT_LIMIT) {
struct sel_netnode *tail;
tail = list_entry(node->list.prev, struct sel_netnode, list);
- list_del_rcu(node->list.prev);
+ list_del_rcu(&tail->list);
call_rcu(&tail->rcu, sel_netnode_free);
} else
sel_netnode_hash[idx].size++;
_
be a bit clearer? If it's correct - I didn't try too hard :)


\
 
 \ /
  Last update: 2008-04-18 03:39    [W:0.822 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site