From: Vegard Nossum <vegard.nossum@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Eric Sesterhenn <snakebyte@gmx.de>,
linux-kernel@vger.kernel.org, David Howells <dhowells@redhat.com>,
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
containers@lists.osdl.org
Subject: Re: namespaces?: bug at mm/slub.c:2750
Date: Wed, 11 Feb 2009 11:48:41 +0100 [thread overview]
Message-ID: <19f34abd0902110248n22f8de12lccfa99faafafb942@mail.gmail.com> (raw)
In-Reply-To: <20090211000740.f1de7cec.akpm@linux-foundation.org>
On Wed, Feb 11, 2009 at 9:07 AM, Andrew Morton
<akpm@linux-foundation.org> wrote:
>> In case you missed it, KOSAKI Motohiro posted a similar stack-trace
>> (but not the same BUG) in this thread:
>> http://lkml.org/lkml/2009/2/10/7
>>
>
> Both traces include the newly-added put_cred_rcu(). Suspicious.
>
I have this test case which triggers it regularly after some minutes:
#include <sys/wait.h>
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char* argv[])
{
unsigned int i;
if (fork() == 0) {
while (1)
system("echo -n .");
}
for (i = 0; i < 2; ++i) {
if (fork() == 0) {
while (1) {
setreuid(0, 0xcafeba);
setreuid(0xcafeba, 0);
setreuid(0, 0xcafebb);
setreuid(0xcafebb, 0);
}
exit(EXIT_SUCCESS);
}
}
while (!(wait(NULL) == -1 && errno == ECHILD))
;
return 0;
}
It seems to be the combination of exec() and setreuid(), but I
couldn't get it to work with just exec() instead of system(). It is
possible that CONFIG_USER_SCHED must be =y for this to work. It can
probably be simplified too...
Vegard
--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
next prev parent reply other threads:[~2009-02-11 10:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-06 11:35 Eric Sesterhenn
2009-02-07 0:15 ` Andrew Morton
2009-02-09 11:53 ` Eric Sesterhenn
2009-02-11 7:55 ` Vegard Nossum
2009-02-11 8:07 ` Andrew Morton
2009-02-11 10:48 ` Vegard Nossum [this message]
2009-02-11 16:37 ` Serge E. Hallyn
2009-02-11 17:02 ` David Howells
2009-02-11 17:24 ` Serge E. Hallyn
2009-02-11 18:00 ` Vegard Nossum
2009-02-11 18:03 ` David Howells
2009-02-11 19:38 ` Serge E. Hallyn
2009-02-11 20:42 ` David Howells
2009-02-11 21:21 ` Serge E. Hallyn
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=19f34abd0902110248n22f8de12lccfa99faafafb942@mail.gmail.com \
--to=vegard.nossum@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=containers@lists.osdl.org \
--cc=dhowells@redhat.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=snakebyte@gmx.de \
/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
all inboxes | Powered by JetHome®