Attempting to mount a supermount partition with gentoo-dev-sources-2.6.1 kernel causes what I think is called a "kernel oops" and it fails to mount, effectively meaning that supermount is useless. (BTW I'm still new to this bug reporting stuff, so please forgive me if I've missed anything out) Reproducible: Always Steps to Reproduce: 1. Include supermount support in kernel configuration (and compiled it etc). 2. Attempt to mount a supermount filesystem, either manually or when the kernel boots up. Actual Results: Unable to handle kernel NULL pointer dereference at virtual address 00000000 printing eip: c02487b4 *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c02487b4>] Not tainted EFLAGS: 00010297 EIP is at parse_options+0xf4/0x1f0 eax: 00000000 ebx: df542022 ecx: 00000005 edx: c0445fac esi: df9c7e7c edi: df7c6b40 ebp: c17ad200 esp: df9c7e6c ds: 007b es: 007b ss: 0068 Process mount (pid: 2574, threadinfo=df9c6000 task=df9c9980) Stack: df542022 c0472f40 df9c7e7c 00000292 df54200f df542021 dffef290 000000d0 dffef548 000000d0 002462a3 00000003 c17ad200 df7c6b40 fffffff4 00000001 c02489e7 00000000 c17ad200 00000000 fffffff4 c17ad200 00000000 fffffff4 Call Trace: [<c02489e7>] supermount_read_super+0x47/0x210 [<c01573e4>] get_sb_nodev+0x64/0xa0 [<c015758e>] do_kern_mount+0x8e/0x100 [<c02489a0>] supermount_read_super+0x0/0x210 [<c016d525>] do_add_mount+0x95/0x190 [<c016d8a1>] do_mount+0x171/0x1d0 [<c016d6ac>] copy_mount_options+0x8c/0x110 [<c016dcb7>] sys_mount+0xd7/0x140 [<c01091bb>] syscall_call+0x7/0xb Code: 80 38 00 75 0a ba ea ff ff ff e9 35 ff ff ff 89 04 24 e8 95 # emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-gentoo-r2) ================================================================= System uname: 2.6.0-gentoo-r2 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.3.10p1 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox userpriv usersandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://gentoo.linux.no/pub/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm avi berkdb bonobo cdr cjk crypt cups dga dvd encode foomaticdb gd gdbm gif gpm gtk2 guile imlib joystick jpeg kde libwww mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib linguas_en_GB"
Did this work with previous kernels, and what about vanilla-2.6.1?
It did work with gentoo-dev-sources-2.6.0-r2. Manually applying the supermount patch (from genpatches-2.6-1.15) to vanilla-sources-2.6.1 produced the same error. However... the version of supermount in genpatches-2.6-1.15 is 2.0.3 and a later version 2.0.3a is available from http://supermount-ng.sourceforge.net/ I applied this patch to vanilla-sources-2.6.1 and supermount worked without any problems! So I think supermount-ng 2.0.3a needs to be put into genpatches.
Thanks - reassigning...
ok, I needed to release a genpatches 1.16 anyhow, I'll make sure this gets in there. Supermount 2.02a was used in 2.6.0 kernels, but 2.03 came out, so I upgraded, apparently they screwed up. Thanks for the report, I'll close when its done. -Brad
New supermount patch version 2.0.3a, fix same problems in gentoo-dev-sources 2.6.1
fixed.