Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82 - Debian

This is a discussion on Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82 - Debian ; Package: linux-image-2.6.18-5-xen-amd64 Version: 2.6.18.dfsg.1-13etch4 Followup-For: Bug #416524 Confirmation of this bug. Upgrading fuse-utils while sshfs-mounts are active screws up the whole fuse-system. Kernel log attached. I'm using kernel 2.6.18-5-xen-amd64 on a Xen domU Lenny host. ----------- [cut here ] --------- ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82

  1. Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82

    Package: linux-image-2.6.18-5-xen-amd64
    Version: 2.6.18.dfsg.1-13etch4
    Followup-For: Bug #416524


    Confirmation of this bug.

    Upgrading fuse-utils while sshfs-mounts are active screws up the whole
    fuse-system. Kernel log attached.

    I'm using kernel 2.6.18-5-xen-amd64 on a Xen domU Lenny host.

    ----------- [cut here ] --------- [please bite here ] ---------
    Kernel BUG at fs/fuse/control.c:82
    invalid opcode: 0000 [1] SMP
    CPU 1
    Modules linked in: fuse iptable_mangle tcp_diag inet_diag ipt_REJECT xt_tcpudp ipt_LOG xt_state iptable_nat ip_nat iptable_filter ip_tables ip_conntrack_irc ip_conntrack_ftp ip_conntrack nfnetlink ipt_owner x_tables dm_snapshot dm_mirror dm_mod ipv6 evdev pcspkr 8250 serial_core reiserfs
    Pid: 18145, comm: mount Not tainted 2.6.18-5-xen-amd64 #1
    RIP: e030:[] [] :fuse:fuse_ctl_add_dentry+0x26/0xef
    RSP: e02b:ffff88001058fb18 EFLAGS: 00010202
    RAX: 0000000000000001 RBX: ffff88001058fb68 RCX: 0000000000004140
    RDX: ffff88001058fb68 RSI: ffff88001058fb68 RDI: ffff88001a04d080
    RBP: ffff88001e820600 R08: 0000000000000002 R09: ffffffff8045b460
    R10: 0000000000000000 R11: 0000000000000000 R12: ffff88001a04d080
    R13: 0000000000004140 R14: ffffffff8045b460 R15: 0000000000000002
    FS: 00002b9fe3dc4af0(0000) GS:ffffffff804c4080(0000) knlGS:0000000000000000
    CS: e033 DS: 0000 ES: 0000
    Process mount (pid: 18145, threadinfo ffff88001058e000, task ffff88001d1da140)
    Stack: ffff880001600000 ffff88001058fb68 ffff88001e820600 ffff88001a04d080
    0000000000000000 ffffffff880a1465 ffff8800020d8180 ffffffff880a13e2
    ffffffff803f4de0 0000000000000001
    Call Trace:
    [] :fuse:fuse_ctl_fill_super+0x0/0xd3
    [] :fuse:fuse_ctl_add_conn+0x68/0xeb
    [] :fuse:fuse_ctl_fill_super+0x72/0xd3
    [] get_sb_single+0x5c/0xb3
    [] vfs_kern_mount+0x93/0x11a
    [] do_kern_mount+0x36/0x4d
    [] do_mount+0x68c/0x6ff
    [] mntput_no_expire+0x19/0x8b
    [] __handle_mm_fault+0x5ce/0xe85
    [] do_page_fault+0xdce/0x112f
    [] _spin_lock_irqsave+0x9/0x14
    [] __up_read+0x13/0x8a
    [] do_page_fault+0xdce/0x112f
    [] __handle_mm_fault+0x8f3/0xe85
    [] get_page_from_freelist+0x219/0x3bb
    [] __alloc_pages+0x5c/0x2a9
    [] sys_mount+0x8a/0xd7
    [] system_call+0x86/0x8b
    [] system_call+0x0/0x8b


    Code: 0f 0b 68 fd 1d 0a 88 c2 52 00 e8 25 a4 21 f8 48 85 c0 49 89
    RIP [] :fuse:fuse_ctl_add_dentry+0x26/0xef
    RSP

    ~$ dpkg -l | grep fuse
    ii fuse-utils 2.7.0-3 Filesystem in USErspace (utilities)
    ii libfuse2 2.7.0-3 Filesystem in USErspace library

    Hans van Kranenburg

    -- System Information:
    Debian Release: lenny/sid
    APT prefers testing
    APT policy: (990, 'testing'), (800, 'unstable')
    Architecture: amd64 (x86_64)

    Kernel: Linux 2.6.18-5-xen-amd64 (SMP w/2 CPU cores)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
    Shell: /bin/sh linked to /bin/bash

    Versions of packages linux-image-2.6.18-5-xen-amd64 depends on:
    ii e2fsprogs 1.40.2-1 ext2 file system utilities and lib
    ii initramfs-tools 0.90a tools for generating an initramfs
    ii linux-modules-2.6. 2.6.18.dfsg.1-13etch4 Linux 2.6.18 modules on AMD64

    linux-image-2.6.18-5-xen-amd64 recommends no packages.

    -- no debconf information



    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  2. Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82

    On Mon, Oct 29, 2007 at 06:15:42PM +0100, Hans van Kranenburg wrote:
    > Confirmation of this bug.
    >
    > Upgrading fuse-utils while sshfs-mounts are active screws up the whole
    > fuse-system. Kernel log attached.
    >
    > I'm using kernel 2.6.18-5-xen-amd64 on a Xen domU Lenny host.


    Can you reproduce with 2.6.18.dfsg.1-16 from proposed-updates?

    --
    dann frazier




    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  3. Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82

    Correction on a confusing sentence:

    Hans van Kranenburg wrote:
    >
    > By the way... On the box where fuse crashed yesterday, I reinstalled the
    > fuse-utils package.


    That is, I reinstalled it *after* having to use xm destroy on the domU
    to stop it, and re-creating it again.

    > Unfortunately, I don't have the original output from
    > dpkg anymore while it failed upgrading. But it will show up if I can
    > reproduce it.


    This points to the failure to upgrade yesterday, it's not about the
    apt-get install --reinstall, which went successfully.

    Hans



    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  4. Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82

    dann frazier wrote:
    > On Mon, Oct 29, 2007 at 06:15:42PM +0100, Hans van Kranenburg wrote:
    >> Confirmation of this bug.
    >>
    >> Upgrading fuse-utils while sshfs-mounts are active screws up the whole
    >> fuse-system. Kernel log attached.
    >>
    >> I'm using kernel 2.6.18-5-xen-amd64 on a Xen domU Lenny host.

    >
    > Can you reproduce with 2.6.18.dfsg.1-16 from proposed-updates?


    I'll try it tonight.

    My report was based on linux-image-2.6.18-5-xen-amd64 2.6.18.dfsg.1-13etch4.

    I will bootstrap a Lenny domU and run it with this kernel packages:

    [http://ftp.debian.org/debian/pool/main/l/linux-2.6/]
    linux-image-2.6.18-5-xen-amd64_2.6.18.dfsg.1-16_amd64.deb
    04-Oct-2007 15:47 1.6M
    linux-modules-2.6.18-5-xen-amd64_2.6.18.dfsg.1-16_amd64.deb
    04-Oct-2007 15:47 14.6M

    Then I'll make some mounts and install fuse-utils 2.7.0-2, then upgrade
    it to 2.7.0-3.

    By the way... On the box where fuse crashed yesterday, I reinstalled the
    fuse-utils package. Unfortunately, I don't have the original output from
    dpkg anymore while it failed upgrading. But it will show up if I can
    reproduce it.

    yoshi.7 ~# dpkg -l | grep fuse
    iFR fuse-utils 2.7.0-3 Filesystem in USErspace (utilities)
    ii libfuse2 2.7.0-3 Filesystem in USErspace library
    yoshi.7 ~# dpkg-reconfigure fuse-utils
    /usr/sbin/dpkg-reconfigure: fuse-utils is broken or not fully installed
    yoshi.7 ~# dpkg --configure -a
    dpkg: error processing fuse-utils (--configure):
    Package is in a very bad inconsistent state - you should
    reinstall it before attempting configuration.
    Errors were encountered while processing:
    fuse-utils
    yoshi.7 ~# apt-get install --reinstall fuse-utils
    [..snip..]
    (Reading database ... 35306 files and directories currently installed.)
    Preparing to replace fuse-utils 2.7.0-3 (using
    ..../fuse-utils_2.7.0-3_amd64.deb) ...
    Unpacking replacement fuse-utils ...
    Setting up fuse-utils (2.7.0-3) ...
    creating fuse device node...
    udev active, devices will be created in /dev/.static/dev/
    creating fuse group...
    yoshi.7 ~# dpkg -l | grep fuse
    ii fuse-utils 2.7.0-3 Filesystem in USErspace (utilities)
    ii libfuse2 2.7.0-3 Filesystem in USErspace library

    Hans



    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  5. Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82

    Ok... got it reproduced on 2.6.18.dfsg.1-13etch4:

    What I just did:
    - bootstrap a new lenny domU, run it with kernel 2.6.18-xen-amd64
    (2.6.18.dfsg.1-13etch4)
    - install libfuse2 and fuse-utils 2.7.0-2 (from snapshot.debian.net)
    - create a user account, add it to the fuse group, load fuse module etc
    - log in as the new regular user
    - create a sshfs mount to another host
    - actually *use* the mount - important!! - just open a random textfile
    with less or whatever, but cd into it and do something there...
    - as root: apt-get upgrade the fuse stuff to 2.7.0-3

    fuse:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be upgraded:
    fuse-utils libfuse2
    2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/140kB of archives.
    After unpacking 0B of additional disk space will be used.
    Do you want to continue [Y/n]?
    (Reading database ... 10096 files and directories currently installed.)
    Preparing to replace fuse-utils 2.7.0-2 (using
    ..../fuse-utils_2.7.0-3_amd64.deb) ...
    Unpacking replacement fuse-utils ...
    Preparing to replace libfuse2 2.7.0-2 (using
    ..../libfuse2_2.7.0-3_amd64.deb) ...
    Unpacking replacement libfuse2 ...
    Setting up libfuse2 (2.7.0-3) ...
    Setting up fuse-utils (2.7.0-3) ...
    creating fuse device node...
    udev active, devices will be created in /dev/.static/dev/
    creating fuse group...
    /etc/init.d/fuse: line 30: 3985 Segmentation fault mount -t
    fusectl fusectl $MOUNTPOINT >/dev/null 2>&1

    Message from syslogd@fuse at Tue Oct 30 21:20:37 2007 ...
    fuse kernel: invalid opcode: 0000 [1] SMP
    fuse:~#

    /var/log/syslog shows the same error with call trace:

    Oct 30 21:20:37 fuse kernel: ----------- [cut here ] --------- [please
    bite here ] ---------
    Oct 30 21:20:37 fuse kernel: Kernel BUG at fs/fuse/control.c:82
    Oct 30 21:20:37 fuse kernel: invalid opcode: 0000 [1] SMP
    Oct 30 21:20:37 fuse kernel: CPU 1
    [..snip..]

    fusermount -u hangs when the user tries to umount the sshfs mount.

    A system halt executed by root hangs...

    fuse:~# halt
    Broadcast message from root@fuse (pts/0) (Tue Oct 30 21:23:21 2007):
    The system is going down for system halt NOW!

    logging in with xm console shows a /bin/umount -i /path/to/sshfsmount
    that's blocking:

    4393 pts/1 D 0:00 /bin/umount -i /path/to/sshfsmount
    4998 pts/0 D+ 0:00 shutdown -h 0 w

    I cannot kill dash nine or do anything to stop this process 4393... So I
    have to do a xm destroy from the dom0.

    When the sshfs mount I made was not in use upgrading libfuse/fuse-utils
    went just fine, and afterwards the sshfs mount was gone, so I guess it
    was umounted during the fuse upgrade. I guess there's a pointer to what
    is going wrong actually?

    Now... let's try 2.6.18.dfsg.1-16:

    What I did:
    - install the linux-image/modules 2.6.18.dfsg.1-16_amd64.deb in dom0
    - install the linux-modules 2.6.18.dfsg.1-16_amd64.deb in the domU
    - install fuse-foobar 2.7.0-2 again in the domU
    - start the domU with kernel 2.6.18.dfsg.1-16
    - log in as the existing regular user
    - create a sshfs mount to another host
    - actually *use* the mount; just open a random textfile with less or
    whatever, but cd into it and do something there...
    - as root: apt-get upgrade the fuse stuff to 2.7.0-3

    fuse:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be upgraded:
    fuse-utils libfuse2
    2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/140kB of archives.
    After unpacking 0B of additional disk space will be used.
    Do you want to continue [Y/n]?
    (Reading database ... 10097 files and directories currently installed.)
    Preparing to replace fuse-utils 2.7.0-2 (using
    ..../fuse-utils_2.7.0-3_amd64.deb) ...
    Unpacking replacement fuse-utils ...
    Preparing to replace libfuse2 2.7.0-2 (using
    ..../libfuse2_2.7.0-3_amd64.deb) ...
    Unpacking replacement libfuse2 ...
    Setting up libfuse2 (2.7.0-3) ...
    Setting up fuse-utils (2.7.0-3) ...
    creating fuse device node...
    udev active, devices will be created in /dev/.static/dev/
    creating fuse group...
    fuse:~#

    Looks good... Let's see what happened to the mount?

    fuse:~# mount | grep sshfs
    sshfs#knorrie@anotherhost:/home/knorrie on /home/knorrie/bla type fuse
    (rw,nosuid,nodev,max_read=65536,user=knorrie)

    It still exists... The other session where this user was accessing a
    file on the remote mounted system still responds... It seems the
    existing mount was not touched.

    So... It seems 2.6.18.dfsg.1-16 fixes this issue, like you suggested.
    Perhaps you can shed some light on what exactly was the issue?

    Perhaps just installing and re-installing 2.7.0-3 over again would
    trigger the same situation, but I did choose to reproduce it in a way it
    was most like how things went yesterday.

    Have fun,
    Hans van Kranenburg



    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  6. Bug#416524: linux-image-2.6.18-5-xen-amd64: Kernel BUG at fs/fuse/control.c:82

    forcemerge 427518 416524
    thanks

    On Tue, Oct 30, 2007 at 11:01:46PM +0100, Hans van Kranenburg wrote:
    > So... It seems 2.6.18.dfsg.1-16 fixes this issue, like you suggested.
    > Perhaps you can shed some light on what exactly was the issue?


    >From the changelog:

    * Fix a BUG in fuse_ctl_add_dentry by resetting the dentry counter
    in fuse_ctl_kill_sb(). (closes: #427518)

    --
    dann frazier




    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

+ Reply to Thread