Subject: Re: [vserver] aufs (unionfs) + vserver = kernel ops
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Wed, 20 Aug 2008 19:40:21 +0200

On Tue, Aug 19, 2008 at 10:21:11PM +0200, Oliver Welter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi All,
> 
> first of all sorry for crossposting but its relevant for both lists I
> guess...
> 
> I tried to setup a vserver system with aufs filesystem, its a debian box
> with vanilla kernel 2.6.22.19-vs2.2.0.7 (x64_86) and todays checkout
> from aufs cvs.
> I used the vserver-patch provided with aufs ( I had to change the
> patched file from vfsub.h to vfsub.c ) and compiled it into the kernel
> as told by the README.
> 
> I did a simple mount example and as soon as I enter the joined branch, I
> get a kernel oops and my Shell (ssh) dies immediately.
> Anybody has an idea how to stop this or can give me a working
> combination of aufs/vserver?

you might want to look into 2.6.26.x-vs2.3.x, because
that should minimize the conflicts between external
filesystems and Linux-VServer

> regards
> 
> Oliver
> 
> - ------------[ cut here ]------------
> kernel BUG at fs/aufs/i_op.c:236!

the line there might give some hints ...

best,
Herbert

> invalid opcode: 0000 [1]
> CPU 0
> Modules linked in: smbus ipmi
> Pid: 3570:#0, comm: bash Not tainted 2.6.22.19-vs2.2.0.7 #8
> RIP: 0010:[<ffffffff803c2cfe>]  [<ffffffff803c2cfe>]
> aufs_permission+0x425/0x5af
> RSP: 0018:ffff81041f05fe08  EFLAGS: 00010286
> RAX: ffff81041f05fed8 RBX: ffff81041eae73f8 RCX: 0000000000000000
> RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff810419b72c98
> RBP: ffff81041f05fe88 R08: ffff81041f05fed8 R09: 0000000048ab1be3
> R10: 0000000000000000 R11: ffff81041f05fed8 R12: 0000000000000000
> R13: 0000000000000000 R14: ffff810419b72c98 R15: 0000000019b72c00
> FS:  00002b7267af36d0(0000) GS:ffffffff80765000(0000) knlGS:00000000f7d178c0
> CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> CR2: 00000000005e2eb0 CR3: 000000041f271000 CR4: 00000000000006e0
> Process bash (pid: 3570[#0], threadinfo ffff81041f05e000, task
> ffff8104261d7000)
> Stack:  0000000000000803 ffff81041acd8000 ffff81041f05fe28 ffffffff80272547
>  ffff81041f05fe78 ffffffff802727d2 0000000000000010 ffff81041f05fed8
>  01ff810400000001 ffff8104262f4800 0000000000cd8000 ffff810419b72c98
> Call Trace:
>  [<ffffffff80272547>] path_walk+0x1c/0x1e
>  [<ffffffff802727d2>] do_path_lookup+0x16e/0x193
>  [<ffffffff80270263>] permission+0x1e9/0x230
>  [<ffffffff80271097>] vfs_permission+0x13/0x15
>  [<ffffffff8026892a>] sys_chdir+0x35/0x75
>  [<ffffffff8026c306>] sys_newstat+0x31/0x3c
>  [<ffffffff8020955e>] system_call+0x7e/0x83
> 
> 
> Code: 0f 0b eb fe 48 8b 7d c8 41 0f be f7 e8 3d 09 fe ff 48 8b 55
> RIP  [<ffffffff803c2cfe>] aufs_permission+0x425/0x5af
>  RSP <ffff81041f05fe08>
> 
> - --
> Protect your environment -  close windows and adopt a penguin!
> PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF  8168 CAB7 B0DD 3985 1721
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFIqys3yrew3TmFFyERAnbeAJ4jqzvWZk+92HA4WIzHh1xwbaC2WwCfYMeR
> GWeU1Y73tdqJblr3j/4nSRE=
> =ej4I
> -----END PGP SIGNATURE-----