Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reiser4 or UnionFS bug with 2.6.38
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Thu Apr 07, 2011 6:52 am    Post subject: Reiser4 or UnionFS bug with 2.6.38 Reply with quote

Hi there,

I'm using Reiser4 as root filesystem. My portage is outsourced to an SquashFS image. Updates of Portage are done into an UnionFS. With 2.6.38 I'm running into some trouble. Sequence:

1. emerge --sync
2. /etc/init.d/squash_portage restart
2.1 create squashfs-image from unionfs structure
2.2 umount unionfs stuff

Exactly in point 2.2 I receive a Kernel bug message:
Code:
Apr  7 08:33:33 localhost su[7725]: Successful su for root by sm
Apr  7 08:33:33 localhost su[7725]: + /dev/pts/1 sm:root
Apr  7 08:34:56 localhost kernel: BUG: Dentry ffff880131bb3d80{i=2,n=/} still in use (356090) [unmount of unionfs unionfs]
Apr  7 08:34:56 localhost kernel: ------------[ cut here ]------------
Apr  7 08:34:56 localhost kernel: kernel BUG at fs/dcache.c:947!
Apr  7 08:34:56 localhost kernel: invalid opcode: 0000 [#1] SMP
Apr  7 08:34:56 localhost kernel: last sysfs file: /sys/devices/platform/w83627ehf.656/in8_input
Apr  7 08:34:56 localhost kernel: CPU 1
Apr  7 08:34:56 localhost kernel: Modules linked in: oss_usb oss_cmi878x osscore nvidia(P)
Apr  7 08:34:56 localhost kernel:
Apr  7 08:34:56 localhost kernel: Pid: 7823, comm: umount Tainted: P            2.6.38-gentoo-r1 #2 . ./A-N68SV(MCP68S)
Apr  7 08:34:56 localhost kernel: RIP: 0010:[<ffffffff810ac8b3>]  [<ffffffff810ac8b3>] shrink_dcache_for_umount_subtree+0xef/0x209
Apr  7 08:34:56 localhost kernel: RSP: 0018:ffff88010ee2de78  EFLAGS: 00010292
Apr  7 08:34:56 localhost kernel: RAX: 000000000000005f RBX: ffff880131bb3d80 RCX: 000000000000b12a
Apr  7 08:34:56 localhost kernel: RDX: 0000000000002d2d RSI: 0000000000000046 RDI: ffffffff81693b1c
Apr  7 08:34:56 localhost kernel: RBP: ffff880131bb3d80 R08: 0000000000000002 R09: 00000000ffffffff
Apr  7 08:34:56 localhost kernel: R10: 0000000000000000 R11: 0000000000000002 R12: ffff88011b17bfa0
Apr  7 08:34:56 localhost kernel: R13: ffff88012e44e700 R14: 0000000000000000 R15: ffff880133ca5640
Apr  7 08:34:56 localhost kernel: FS:  00007fd9414f3740(0000) GS:ffff8800bfd00000(0000) knlGS:0000000000000000
Apr  7 08:34:56 localhost kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Apr  7 08:34:56 localhost kernel: CR2: 00007fd940da75b5 CR3: 0000000102012000 CR4: 00000000000006e0
Apr  7 08:34:56 localhost kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Apr  7 08:34:56 localhost kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Apr  7 08:34:56 localhost kernel: Process umount (pid: 7823, threadinfo ffff88010ee2c000, task ffff880133ca5640)
Apr  7 08:34:56 localhost kernel: Stack:
Apr  7 08:34:56 localhost kernel: ffff88013e547e80 ffffffff8107e990 ffff88013e547c00 ffff880131bb3d80
Apr  7 08:34:56 localhost kernel: ffff88010ee2df28 ffffffff810acfd0 ffff88013fc026c0 ffff88013e547c00
Apr  7 08:34:56 localhost kernel: ffffffff815a7e90 ffffffff8109db67 ffff88013e547c00 ffffffff815a7e40
Apr  7 08:34:56 localhost kernel: Call Trace:
Apr  7 08:34:56 localhost kernel: [<ffffffff8107e990>] ? pcpu_free_area+0x17/0x124
Apr  7 08:34:56 localhost kernel: [<ffffffff810acfd0>] ? shrink_dcache_for_umount+0x41/0x55
Apr  7 08:34:56 localhost kernel: [<ffffffff8109db67>] ? generic_shutdown_super+0x17/0xd3
Apr  7 08:34:56 localhost kernel: [<ffffffff8109de96>] ? deactivate_locked_super+0x1e/0x48
Apr  7 08:34:56 localhost kernel: [<ffffffff810b2b61>] ? sys_umount+0x2d3/0x305
Apr  7 08:34:56 localhost kernel: [<ffffffff81001efb>] ? system_call_fastpath+0x16/0x1b
Apr  7 08:34:56 localhost kernel: Code: 8b 40 28 4c 8b 08 48 8b 43 30 48 85 c0 74 07 48 8b 90 b8 00 00 00 48 89 34 24 48 c7 c7 01 ff 4f 81 48 89 de 31 c0 e8 10 05 32 00 <0f> 0b 48 8b 6b 18 48 39 eb 75 3b 48 8b 93 90 00 00 00 48 8b 83
Apr  7 08:34:56 localhost kernel: RIP  [<ffffffff810ac8b3>] shrink_dcache_for_umount_subtree+0xef/0x209
Apr  7 08:34:56 localhost kernel: RSP <ffff88010ee2de78>
Apr  7 08:34:56 localhost kernel: ---[ end trace a9c9d15674543fc0 ]---
Apr  7 08:36:01 localhost su[7891]: Successful su for root by sm
Apr  7 08:36:01 localhost su[7891]: + /dev/pts/0 sm:root
Apr  7 08:36:28 localhost login[7454]: ROOT LOGIN  on '/dev/tty1'
Apr  7 08:36:40 localhost shutdown[7963]: shutting down for system reboot


Who's the bad one? UnionFS or Reiser4? In other cases I didn't recognize any fs failure yet.

Ah, I'm using:
- reiser4-for-2.6.38.patch.gz
- unionfs-2.5.8_for_2.6.38-rc7.diff.gz
- 64bit-Patch for unionfs to get it compiled on amd64
Back to top
View user's profile Send private message
antonlacon
Apprentice
Apprentice


Joined: 27 Jun 2004
Posts: 249

PostPosted: Fri Apr 08, 2011 6:49 am    Post subject: Reply with quote

I'm encountering the same error on ppc/ext4/unionfs. This leaves unionfs as the only common link. I haven't found a fix yet.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Fri Apr 08, 2011 11:23 am    Post subject: Reply with quote

In my case it seems to be a known Reiser4-bug. I wrote Edward an email. Until a fix I'll stay with 2.6.37.
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 341

PostPosted: Sat Apr 09, 2011 12:04 am    Post subject: Reply with quote

Fail with unionfs/ext4 for me too.
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
s_bernstein
Apprentice
Apprentice


Joined: 11 Mar 2006
Posts: 172
Location: Bremen, Germany

PostPosted: Sat Apr 09, 2011 8:01 am    Post subject: Reply with quote

Same for me on on ext4 with unionfs.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6279

PostPosted: Sat Apr 09, 2011 11:13 am    Post subject: Reply with quote

Not sure whether it is related:

I receive (not always but often reproducable) "Device busy" messages from umount with kernel 2.6.38 when trying to umount squashfs filesystems which were previously mounted aufs2.1 (even if they were never accessed). If the message once occured, it will never vanish, i.e. the device will remain busy forever. However, no kernel message.

I also receive such messages (not always but often reproducable) when destroying dm-crypt devices which were previously mounted as ext4 (even if never accessed).

The problem did not occur in kernel 2.6.37, and it also vanishes if I remove SMP support from the kernel. (So far, I only tested hardened kernel.)
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sun May 01, 2011 3:12 pm    Post subject: Reply with quote

See

https://forums.gentoo.org/viewtopic-t-870267-highlight-.html
https://bugs.gentoo.org/show_bug.cgi?id=365503

Probably Gentoo has the largest userbase of reiser4.
_________________
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum