Hi,

I trying to create diskless network bootable station with aufs root. I 
using 2.6.27-gentoo-r7 and aufs 2-standalone.tree-27
There is NFS share with SquasfFS image (used as RO branch) and writable 
directory (RW branch). Everything is fine until Samba is trying to 
start. That produces:

------------[ cut here ]------------
kernel BUG at fs/nfs/write.c:252!
invalid opcode: 0000 [#1] PREEMPT SMP
Modules linked in:

Pid: 4449, comm: smbd Not tainted (2.6.27-gentoo-r7 #2)
EIP: 0060:[<c01e8de5>] EFLAGS: 00210246 CPU: 0
EIP is at nfs_do_writepage+0xc8/0x154
EAX: defa0000 EBX: deabfbb4 ECX: 00000001 EDX: 00200000
ESI: def0ee00 EDI: deabfc28 EBP: c13ab160 ESP: defa1e0c
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process smbd (pid: 4449, ti=defa0000 task=dede5c00 task.ti=defa0000)
Stack: defa1eac c13ab160 c13ab160 00000001 defa1efc c01e91b4 c13ab160 
00000000
c0145a76 c01e91ab deabfc60 00000002 df208a24 00000000 00000000 ffffffff
00000000 00000002 00000000 c13a1260 c13ab160 0000000e c0140432 0000000e
Call Trace:
[<c01e91b4>] nfs_writepages_callback+0x9/0x17
[<c0145a76>] write_cache_pages+0x164/0x290
[<c01e91ab>] nfs_writepages_callback+0x0/0x17
[<c0140432>] find_get_page+0x27/0x9b
[<c01471df>] activate_page+0x7e/0x9c
[<c01e9187>] nfs_writepages+0x5c/0x80
[<c01ea078>] nfs_flush_one+0x0/0x9f
[<c01e99b0>] __nfs_write_mapping+0xf/0x3b
[<c01e9a10>] nfs_write_mapping+0x34/0x52
[<c01deb7f>] nfs_do_fsync+0x13/0x2d
[<c02529ea>] aufs_fsync_nondir+0x13f/0x1bf
[<c0175d47>] do_fsync+0x3e/0x80
[<c0175da6>] __do_fsync+0x1d/0x2b
[<c0102b8a>] syscall_call+0x7/0xb
[<c0530000>] i2o_pci_probe+0x642/0x645
=======================
Code: bc 1a 35 00 89 f0 e8 23 d2 ff ff 89 c3 89 f0 e8 68 d2 ff ff 85 db 
0f 85 93 00 00 00 eb be f6 46 28 02 74 0b 89
EIP: [<c01e8de5>] nfs_do_writepage+0xc8/0x154 SS:ESP 0068:defa1e0c
---[ end trace ba1ed92e252b89ae ]---

It happens when samba accessing (at least) /var/cache/samba/ and 
/var/lib/samba/private/. Then samba halts. If something mounted over 
there (tmpfs, other NFS, etc.), it works fine.
So, any ideas how to solve it without extra mounts?

------------------
/proc/mounts contents:
rootfs / rootfs rw 0 0
192.168.0.3:/home/neo /netroot nfs 
rw,noatime,nodiratime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,intr,nolock,proto=tcp,timeo=70,retran
/dev/loop0 /ro_root squashfs ro 0 0
none / aufs rw,si=c8d2e7a5,noxino 0 0
/proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
tmpfs /tmp tmpfs rw,noatime 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec,devgid=85,devmode=664 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec 0 0
automount(pid4516) /mnt autofs 
rw,fd=4,pgrp=4516,timeout=3,minproto=2,maxproto=4,indirect 0 0
-------------------
aufs config:
CONFIG_AUFS_FS=y
CONFIG_AUFS_BRANCH_MAX_127=y
# CONFIG_AUFS_BRANCH_MAX_511 is not set
# CONFIG_AUFS_BRANCH_MAX_1023 is not set
# CONFIG_AUFS_BRANCH_MAX_32767 is not set
CONFIG_AUFS_HINOTIFY=y
# CONFIG_AUFS_DEBUG is not set
CONFIG_AUFS_BDEV_LOOP=y
-----------------
Gentoo kernel patches - 
http://dev.gentoo.org/~dsd/genpatches/patches-2.6.27-9.htm

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com

Reply via email to