Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501110 - gentoo-sources-3.10.25: kernel BUG at fs/ext3/super.c:442! / invalid opcode: 0000 [#1] when stopping NFS
Summary: gentoo-sources-3.10.25: kernel BUG at fs/ext3/super.c:442! / invalid opcode: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 19:57 UTC by Stefan Kiesler
Modified: 2015-01-05 20:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Kiesler 2014-02-12 19:57:17 UTC
My Gentoo system and two NFS shares reside on an encrypted software RAID partitions. I mount the partitions manually running mdadm and cryptsetup in an initramfs.
In an attempt to properly umount the NFS shares, I put the following in /etc/local.d/baselayout1.stop:


/etc/init.d/minidlna stop
/etc/init.d/nfs stop
echo "umount..."
umount /nfs/share
umount /nfs/share2
cryptsetup luksClose share
cryptsetup luksClose share2

minidlna and nfsd are the only services accessing the shares locally.
While stopping nfsd, I sometimes get a kernel bug right after the nfs init script prints "Unexporting NFS directories ..." on the console, and _before_ the "umount..." message from the local.d script.
I'm currently running gentoo-sources-3.10.25, but the problem also occurred with gentoo-sources-3.10.17 and probably older versions as well.
During reboot fsck reports an orphaned inode for /dev/mapper/share2.

Excerpt from /var/log/messages:

Feb 12 17:26:35 horst shutdown[3650]: shutting down for system halt
Feb 12 17:26:35 horst init: Switching to runlevel: 0
Feb 12 17:26:36 horst rpc.mountd[2604]: Caught signal 15, un-registering and exiting.
Feb 12 17:26:36 horst kernel: nfsd: last server has exited, flushing export cache
Feb 12 17:26:37 horst kernel: EXT3-fs (dm-2): error: sb orphan head is 56115252
Feb 12 17:26:37 horst kernel: EXT3-fs (dm-2): sb_info orphan list:
Feb 12 17:26:37 horst kernel: EXT3-fs (dm-2):   inode dm-2:56115252 at ffff880033e508a8: mode 100600, nlink 0, next 0
Feb 12 17:26:37 horst kernel: 
Feb 12 17:26:37 horst kernel: ------------[ cut here ]------------
Feb 12 17:26:37 horst kernel: kernel BUG at fs/ext3/super.c:442!
Feb 12 17:26:37 horst kernel: invalid opcode: 0000 [#1] 
Feb 12 17:26:37 horst kernel: Modules linked in: pppoe pppox ppp_generic slhc xt_TCPMSS xt_conntrack iptable_mangle ipt_MASQUERADE xt_nat iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_pcm k8temp hwmon snd_page_alloc i2c_piix4 i2c_core snd_timer snd
Feb 12 17:26:37 horst kernel: CPU: 0 PID: 3704 Comm: umount Not tainted 3.10.25-gentoo #1
Feb 12 17:26:37 horst kernel: Hardware name: MICRO-STAR INTERNATIONAL CO.,LTD MS-7327/MS-7327, BIOS V1.5 09/08/2007
Feb 12 17:26:37 horst kernel: task: ffff88003b816aa0 ti: ffff88003849c000 task.ti: ffff88003849c000
Feb 12 17:26:37 horst kernel: RIP: 0010:[<ffffffff8113c3ad>]  [<ffffffff8113c3ad>] ext3_put_super+0x22d/0x230
Feb 12 17:26:37 horst kernel: RSP: 0018:ffff88003849ddf8  EFLAGS: 00010206
Feb 12 17:26:37 horst kernel: RAX: 0000000000000058 RBX: ffff88003c2cbf28 RCX: 0000000000000006
Feb 12 17:26:37 horst kernel: RDX: 0000000000000007 RSI: 0000000000000059 RDI: ffffffff815ec710
Feb 12 17:26:37 horst kernel: RBP: ffff88003849de38 R08: 0000000000000400 R09: 0000000000000287
Feb 12 17:26:37 horst kernel: R10: 0000000000000006 R11: 0000000000000286 R12: ffff88003c2cbe00
Feb 12 17:26:37 horst kernel: R13: ffff88003b532400 R14: ffff88003c2cbf28 R15: ffff88003b6174e0
Feb 12 17:26:37 horst kernel: FS:  00007f0bc56e4780(0000) GS:ffffffff815de000(0000) knlGS:0000000000000000
Feb 12 17:26:37 horst kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Feb 12 17:26:37 horst kernel: CR2: 00007f0bc52bd022 CR3: 00000000391f8000 CR4: 00000000000007f0
Feb 12 17:26:37 horst kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Feb 12 17:26:37 horst kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Feb 12 17:26:37 horst kernel: Stack:
Feb 12 17:26:37 horst kernel: ffff880000008180 ffffffff00000000 ffff880000000000 ffff88003b532400
Feb 12 17:26:37 horst kernel: ffff88003b532400 ffff88003b532498 ffffffff814826c0 ffff88003b617500
Feb 12 17:26:37 horst kernel: ffff88003849de68 ffffffff810a9bcc 0000000672619ad8 ffff88003bc3a380
Feb 12 17:26:37 horst kernel: Call Trace:
Feb 12 17:26:37 horst kernel: [<ffffffff810a9bcc>] generic_shutdown_super+0x5c/0xd0
Feb 12 17:26:37 horst kernel: [<ffffffff810a9c6b>] kill_block_super+0x2b/0x80
Feb 12 17:26:37 horst kernel: [<ffffffff810aa0ad>] deactivate_locked_super+0x3d/0x70
Feb 12 17:26:37 horst kernel: [<ffffffff810aa9f8>] deactivate_super+0x48/0x60
Feb 12 17:26:37 horst kernel: [<ffffffff810c1aab>] mntput_no_expire+0xab/0xf0
Feb 12 17:26:37 horst kernel: [<ffffffff810c2ae6>] SyS_umount+0x96/0x3a0
Feb 12 17:26:37 horst kernel: [<ffffffff814671d0>] system_call_fastpath+0x16/0x1b
Feb 12 17:26:37 horst kernel: Code: 89 ef e8 97 f8 ff ff e9 3c fe ff ff 66 90 48 c7 c2 f7 11 55 81 48 c7 c6 b7 27 48 81 4c 89 ef 31 c0 e8 e8 fc ff ff e9 12 fe ff ff <0f> 0b 90 55 48 89 e5 53 48 c7 c3 e2 ff ff ff 48 83 ec 08 f6 47 
Feb 12 17:26:37 horst kernel: RIP  [<ffffffff8113c3ad>] ext3_put_super+0x22d/0x230
Feb 12 17:26:37 horst kernel: RSP <ffff88003849ddf8>
Feb 12 17:26:37 horst kernel: ---[ end trace a66516ccb5b9aff9 ]---

emerge --info:

Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-AMD_Sempron-tm-_Processor_LE-1100-with-gentoo-2.2
KiB Mem:      992196 total,    744712 free
KiB Swap:    4209024 total,   4209024 free
Timestamp of tree: Mon, 10 Feb 2014 15:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8-sse3 -O2 -pipe"
DISTDIR="/nfs/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/nfs/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm iconv ipv6 mmx modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd threads unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest proxy proxy_ajp" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mike Pagano gentoo-dev 2014-12-22 20:15:50 UTC
Is this still an issue with later kernels?
Comment 2 Stefan Kiesler 2015-01-05 19:17:20 UTC
No, the problem hasn't reoccurred with later kernels.
Comment 3 Mike Pagano gentoo-dev 2015-01-05 20:58:14 UTC
OK, thanks for reporting. I'll close this for now, but please feel free to comment back if you see this recurring again.