From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Mart=EDn_Ferrari?= Subject: Re: Bug#577640: linux-image-2.6.33-2-amd64: Kernel warnings in netns thread Date: Thu, 22 Apr 2010 16:05:13 +0200 Message-ID: References: <20100413112017.8505.36380.reportbug@japot.localdomain> <1271612005.3679.248.camel@localhost> <1271895278.2582.3.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Ben Hutchings , 577640@bugs.debian.org, netdev , "Eric W. Biederman" , Alexey Dobriyan , Mathieu Lacage To: "Eric W. Biederman" Return-path: Received: from mail-bw0-f225.google.com ([209.85.218.225]:65439 "EHLO mail-bw0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754772Ab0DVOFP convert rfc822-to-8bit (ORCPT ); Thu, 22 Apr 2010 10:05:15 -0400 Received: by bwz25 with SMTP id 25so9680803bwz.28 for ; Thu, 22 Apr 2010 07:05:13 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Apr 22, 2010 at 04:38, Eric W. Biederman wrote: >>> > $ sudo ./startns bash >>> > # ip l a type veth >>> > # ip l s veth0 netns 1 >>> > # exit > Then I should ask what is startns? That's just a simple C program that calls unshare(CLONE_NEWNET) and execs a shell. > Either that is doing something different from my equivalent program, = or I have > patches to fix this, that just haven't been merged yet. I have just downloaded and compiled 2.6.32-2 and 2.6.34-rc5 from kernel.org using the .config from the debian package, and the oops is reproducible in both. This small C file reproduces the error every time: $ cat netnsoops.c #include #include #define _GNU_SOURCE #include int main(int argc, char *argv[]) {=09 int c; unsigned long flags =3D CLONE_NEWNET; if(unshare(flags) =3D=3D -1) { perror("unshare"); return 1; } system("ip link add name FOO type veth peer name BAR"); system("ip link set FOO netns 1"); system("ip link show"); return 0; } --=20 Mart=EDn Ferrari