Debian Bug report logs - #563735
support nfscow

Package: live-boot; Maintainer for live-boot is Live Systems Maintainers <debian-live@lists.debian.org>; Source for live-boot is src:live-boot.

Reported by: Zachary Palmer <zep_debbug@bahj.com>

Date: Mon, 4 Jan 2010 22:30:02 UTC

Severity: wishlist

Merged with 563082

Done: Daniel Baumann <daniel.baumann@progress-technologies.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#563735; Package live-initramfs. (Mon, 04 Jan 2010 22:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zachary Palmer <zep_debbug@bahj.com>:
New Bug report received and forwarded. Copy sent to Debian Live <debian-live@lists.debian.org>. (Mon, 04 Jan 2010 22:30:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Zachary Palmer <zep_debbug@bahj.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: live-initramfs: nfs cow leads to segfault
Date: Mon, 04 Jan 2010 17:20:59 -0500
Package: live-initramfs
Version: 1.156.1+1.157.2-1
Severity: normal


I have created a relatively simple Debian Live configuration to allow PXE booting a thin client.  Everything was working fine until I tried to add persistent copy-on-write via NFS.  The NFS server is configured like so:

    /srv/debian-live *(ro,async,subtree_check,no_root_squash)
    #/srv/debian-live-cow *(rw,async,subtree_check,all_squash,anonuid=1007,anongid=1007)
    /srv/debian-live-cow *(rw,async,subtree_check,no_root_squash)

(The commented second line is the configuration I was originally using; things broke there too.  The UID and GID are for a user I created to avoid giving root write permissions on the server to the thin client.)

The configuration in the Debian Live config directory was changed only in the "binary" file:

    # $LH_NET_COW_PATH: set cow directory
    # (Default: )
    LH_NET_COW_PATH="/srv/debian-live-cow"

    # $LH_NET_COW_SERVER: set cow server
    # (Default: )
    LH_NET_COW_SERVER="10.0.0.1"

This is *without* use of the "persistent" boot parameter, since that disables the functionality that makes use of these variables (and since the "persistent" boot-time parameter doesn't support NFS - it looks at local block devices).

Upon booting, I get the following:

    Begin: Running /scripts/live-premount ... done.
    IP-Config: eth0 hardware address 00:19:21:0d:24:84 mtu 1500 DHCP RARP
    [   10.260015] RPC: Registered udp transport module.
    [   10.260059] RPC: Registered tcp transport module.
    [   10.299282] aufs 20080714
    [   10.320096] loop: module loaded
    [   10.389098] squashfs: version 3.3-CVS (2008/04/04) Phillip Lougher
    [   10.409185] BUG: unable to handle kernel NULL pointer dereference at 00000015
    [   10.409278] IP: [<f89dbf90>] :nfs:nfs_create+0x47/0xa4
    [   10.409361] *pde = 00000000
    [   10.409423] Oops: 0000 [#1]
    [   10.409482] Modules linked in: squashfs zlib_inflate loop aufs exportfs nfs lockd nfs_acl sunrpc ide_generic ide_cd_mod cdrom ata_generic sata_nv libata scsi_mod dock usbhid hid ff_memless floppy forcedeth ide_pci_generic amd74xx ide_core ehci_hcd ohci_hcd usbcore thermal processor fan thermal_sys [last unloaded: scsi_wait_scan]
    [   10.410365]
    [   10.410401] Pid: 1433, comm: exe Not tainted (2.6.26-2-486 #1)
    [   10.410443] EIP: 0060:[<f89dbf90>] EFLAGS: 00010246 CPU: 0
    [   10.410499] EIP is at nfs_create+0x47/0xa4 [nfs]
    [   10.410539] EAX: f7136ae4 EBX: 00008124 ECX: 00008124 EDX: 00000000
    [   10.410581] ESI: f70f2294 EDI: f7136ae4 EBP: 00000000 ESP: f79e9c6c
    [   10.410623]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
    [   10.410665] Process exe (pid: 1433, ti=f79e8000 task=f79414d0 task.ti=f79e8000)
    [   10.410708] Stack: 00000001 39368124 cccc3961 fffee532 f8a0acb0 f79e9c94 f897c580 f7455cc0
    [   10.410967]        f7136ae4 f7136ae4 f89dbafe 00000003 c016b971 f89f9d20 f7136ae4 00008124
    [   10.411224]        f70f2294 c016bf2b 00000000 00000000 00000124 f7138594 f70f2294 f89a4cee
    [   10.411482] Call Trace:
    [   10.411554]  [<f89dbafe>] nfs_permission+0x0/0x10d [nfs]
    [   10.411633]  [<c016b971>] permission+0xd6/0xfc
    [   10.411698]  [<c016bf2b>] vfs_create+0xb4/0x116
    [   10.411763]  [<f89a4cee>] au_h_create+0x25/0x93 [aufs]

The trace proceeds thusly.  I am then left in a BusyBox shell.  The read-only NFS mount (10.0.0.1:/srv/debian-live mounted on /live/image) behaves correctly.  Attempting to list the contents of the COW NFS mount (10.0.0.1:/srv/debian-live-cow mounted on /cow) locks up and will not respond to SIGINT.

I am able to mount both NFS shares successfully on other machines.  I am also able to mount the COW NFS share on the initramfs after the segfault using the same command that the /live.log claimed failed in the first place ("nfsmount -o nolock 10.0.0.1:/srv/debian-live-cow /cow") as long as I change the mount point.  Attempting to run the AUFS mount over that using "mount -o noatime,dirs=/foo=rw://filesystem.squashfs=rr -t aufs aufs /bar" (where /foo is the place I mounted the newer COW NFS share) leads to the same segfault.  Please also note that passing the boot-time parameter "nopersistent" avoids all of this.

As a result of the above, I can only conclude that this is the result of some peculiar combination between AUFS and using an NFS share for COW.  I have no workaround.  Please let me know if I can provide any additional information.

-- Package-specific info:

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (600, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages live-initramfs depends on:
ii  busybox                   1:1.10.2-2     Tiny utilities for small and embed
ii  file                      4.26-1         Determines file type using "magic"
ii  initramfs-tools           0.92o          tools for generating an initramfs
ii  sudo                      1.6.9p17-2     Provide limited super user privile
ii  udev                      0.125-7+lenny1 /dev/ and hotplug management daemo
ii  user-setup                1.23           Set up initial user and password

Versions of packages live-initramfs recommends:
ii  cryptsetup                  2:1.0.6-7    configures encrypted block devices
ii  eject                       2.1.5+deb1-4 ejects CDs and operates CD-Changer
ii  uuid-runtime                1.41.3-1     universally unique id library
ii  wget                        1.11.4-2     retrieves files from the web

Versions of packages live-initramfs suggests:
pn  curlftpfs                     <none>     (no description available)
pn  genext2fs                     <none>     (no description available)
pn  httpfs2                       <none>     (no description available)
pn  loop-aes-utils                <none>     (no description available)
pn  mtd-tools                     <none>     (no description available)
ii  squashfs-tools                1:3.3-7    Tool to create and append to squas

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#563735; Package live-initramfs. (Mon, 04 Jan 2010 23:06:12 GMT) Full text and rfc822 format available.

Acknowledgement sent to Łukasz Oleś <lukaszoles@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Live <debian-live@lists.debian.org>. (Mon, 04 Jan 2010 23:06:12 GMT) Full text and rfc822 format available.

Message #10 received at 563735@bugs.debian.org (full text, mbox):

From: Łukasz Oleś <lukaszoles@gmail.com>
To: 563735@bugs.debian.org
Subject: Re: Bug#563735: live-initramfs: nfs cow leads to segfault
Date: Tue, 5 Jan 2010 00:05:46 +0100
I'm not sure what happened with squashfs, but nfscow option will not
work... see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563082




Changed Bug title to 'support nfscow' from 'live-initramfs: nfs cow leads to segfault' Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Mon, 01 Feb 2010 09:54:20 GMT) Full text and rfc822 format available.

Forcibly Merged 563082 563735. Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Mon, 01 Feb 2010 09:54:22 GMT) Full text and rfc822 format available.

Bug reassigned from package 'live-initramfs' to 'live-boot'. Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Fri, 16 Jul 2010 03:09:10 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions live-initramfs/1.156.1+1.157.2-1. Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Fri, 16 Jul 2010 03:09:11 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Live Systems Maintainers <debian-live@lists.debian.org>:
Bug#563735; Package live-boot. (Wed, 19 Jun 2013 06:00:20 GMT) Full text and rfc822 format available.

Acknowledgement sent to daniel.baumann@progress-technologies.net:
Extra info received and forwarded to list. Copy sent to Live Systems Maintainers <debian-live@lists.debian.org>. (Wed, 19 Jun 2013 06:00:20 GMT) Full text and rfc822 format available.

Message #23 received at 563735@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel.baumann@progress-technologies.net>
To: 536796@bugs.debian.org, 563082@bugs.debian.org, 563735@bugs.debian.org, 568502@bugs.debian.org, 598542@bugs.debian.org, 514916@bugs.debian.org, 442333@bugs.debian.org, 452444@bugs.debian.org
Subject: live-boot
Date: Wed, 19 Jun 2013 07:58:26 +0200
close 442333
close 452444
close 514916
close 536796
close 563082
close 563735
close 568502
close 598542
thanks

Eventually, live-boot will support additional stuff (it's on our todo
page at http://live.debian.net/devel/live-boot/todo), but since these
are wishlist items open for long time, requireing quite a bit of work to
implement and nobody worked on them for years, I do not see much point
in keeping it rotting in the bts, that's what we have the todo page for
(that includes above things, and much more).

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baumann@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/



Marked Bug as done Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Wed, 19 Jun 2013 06:00:34 GMT) Full text and rfc822 format available.

Notification sent to Zachary Palmer <zep_debbug@bahj.com>:
Bug acknowledged by developer. (Wed, 19 Jun 2013 06:00:35 GMT) Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 17 Jul 2013 07:31:40 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 13:17:06 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.