Bug#813601: linux-image-3.16: kernel panic when umounting rootfs
Package: src:linux
Version: 3.16.7-ckt11-1+deb8u6
Severity: critical
Tags: patch
Justification: breaks the whole system
Dear Maintainer,
This upstream commit is missing:
da362b09e42e umount: Do not allow unmounting rootfs.
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=da362b09e42e
The commit log of this patch explains how to reproduce the kernel panic (see below).
Note that this patch depends on
5ff9d8a65ce8 vfs: Lock in place mounts from more privileged users
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5ff9d8a65ce8
Regards,
Nicolas
-- Package-specific info:
** Version:
Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09)
** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/6WIND-debian8 ro console=ttyS0,115200n8 quiet
** Not tainted
** Kernel log:
[ 0.307242] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.307253] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.307264] intel_idle: does not run on family 6 model 60
[ 0.307286] GHES: HEST is not enabled!
[ 0.307371] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.329356] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.351248] 00:06: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.351502] Linux agpgart interface v0.103
[ 0.351588] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 0.352073] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.352077] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.352274] mousedev: PS/2 mouse device common for all mice
[ 0.352437] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 0.352569] rtc_cmos 00:00: RTC can wake from S4
[ 0.352748] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[ 0.352818] rtc_cmos 00:00: alarms up to one day, 114 bytes nvram, hpet irqs
[ 0.352848] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.352913] AMD IOMMUv2 driver by Joerg Roedel <joerg.roedel@amd.com>
[ 0.352914] AMD IOMMUv2 functionality not available on this system
[ 0.352966] TCP: cubic registered
[ 0.353150] NET: Registered protocol family 10
[ 0.353323] mip6: Mobile IPv6
[ 0.353326] NET: Registered protocol family 17
[ 0.353330] mpls_gso: MPLS GSO support
[ 0.353567] registered taskstats version 1
[ 0.353776] rtc_cmos 00:00: setting system clock to 2016-02-03 14:33:55 UTC (1454510035)
[ 0.353809] PM: Hibernation image not present or could not be loaded.
[ 0.354519] Freeing unused kernel memory: 1204K (ffffffff818ee000 - ffffffff81a1b000)
[ 0.354521] Write protecting the kernel read-only data: 8192k
[ 0.355897] Freeing unused kernel memory: 924K (ffff880001519000 - ffff880001600000)
[ 0.356232] Freeing unused kernel memory: 216K (ffff8800017ca000 - ffff880001800000)
[ 0.363665] systemd-udevd[65]: starting version 215
[ 0.364044] random: systemd-udevd urandom read with 1 bits of entropy available
[ 0.372312] SCSI subsystem initialized
[ 0.376219] libata version 3.00 loaded.
[ 0.379153] Floppy drive(s): fd0 is 1.44M
[ 0.390411] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[ 0.390939] ata_piix 0000:00:01.1: version 2.13
[ 0.391593] virtio-pci 0000:00:03.0: irq 40 for MSI/MSI-X
[ 0.391603] virtio-pci 0000:00:03.0: irq 41 for MSI/MSI-X
[ 0.391612] virtio-pci 0000:00:03.0: irq 42 for MSI/MSI-X
[ 0.391742] scsi0 : ata_piix
[ 0.391844] scsi1 : ata_piix
[ 0.391882] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc020 irq 14
[ 0.391883] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc028 irq 15
[ 0.392532] FDC 0 is a S82078B
[ 0.548567] ata2.01: NODEV after polling detection
[ 0.548740] ata1.01: NODEV after polling detection
[ 0.548943] ata2.00: ATAPI: QEMU DVD-ROM, 2.3.0, max UDMA/100
[ 0.549085] ata1.00: ATA-7: QEMU HARDDISK, 2.3.0, max UDMA/100
[ 0.549086] ata1.00: 62914560 sectors, multi 16: LBA48
[ 0.549551] ata2.00: configured for MWDMA2
[ 0.549639] ata1.00: configured for MWDMA2
[ 0.549763] scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 0 PQ: 0 ANSI: 5
[ 0.550243] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.3. PQ: 0 ANSI: 5
[ 0.553232] sd 0:0:0:0: [sda] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB)
[ 0.553251] sd 0:0:0:0: [sda] Write Protect is off
[ 0.553253] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 0.553259] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.553858] sda: sda1
[ 0.553979] sd 0:0:0:0: [sda] Attached SCSI disk
[ 0.560526] sr0: scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[ 0.560527] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 0.560626] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 0.561096] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 0.561286] sr 1:0:0:0: Attached scsi generic sg1 type 5
[ 0.622146] device-mapper: uevent: version 1.0.3
[ 0.622204] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[ 1.304052] tsc: Refined TSC clocksource calibration: 3200.094 MHz
[ 1.623854] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
[ 1.825975] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 1.850411] fuse init (API version 7.23)
[ 1.889011] systemd-udevd[170]: starting version 215
[ 1.973613] input: PC Speaker as /devices/platform/pcspkr/input/input2
[ 1.973942] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[ 1.973945] ACPI: Power Button [PWRF]
[ 1.983009] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0
[ 1.986877] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
[ 1.989480] parport_pc 00:04: reported by Plug and Play ACPI
[ 1.990141] systemd-udevd[182]: renamed network interface eth0 to mgmt0
[ 1.990173] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[ 2.004457] ppdev: user-space parallel port driver
[ 2.049546] AVX2 version of gcm_enc/dec engaged.
[ 2.051483] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[ 2.054289] alg: No test for crc32 (crc32-pclmul)
[ 2.055728] intel_rapl: no valid rapl domains found in package 0
[ 2.335369] random: nonblocking pool is initialized
[ 2.510776] FS-Cache: Loaded
[ 2.532540] RPC: Registered named UNIX socket transport module.
[ 2.532542] RPC: Registered udp transport module.
[ 2.532542] RPC: Registered tcp transport module.
[ 2.532543] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.539547] FS-Cache: Netfs 'nfs' registered for caching
[ 2.541496] Key type dns_resolver registered
[ 2.546979] NFS: Registering the id_resolver key type
[ 2.546986] Key type id_resolver registered
[ 2.546987] Key type id_legacy registered
[ 2.576321] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 2.663920] systemd-journald[193]: Received request to flush runtime journal from PID 1
[ 2.825453] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
** Model information
sys_vendor: QEMU
product_name: Standard PC (i440FX + PIIX, 1996)
product_version: pc-i440fx-2.3
chassis_vendor: QEMU
chassis_version: pc-i440fx-2.3
bios_vendor: SeaBIOS
bios_version: rel-1.8.1-0-g4adadbd-20150316_085822-nilsson.home.kraxel.org
** Loaded modules:
nfsv3
nfsd
nfs_acl
rpcsec_gss_krb5
auth_rpcgss
oid_registry
nfsv4
dns_resolver
nfs
lockd
sunrpc
fscache
crc32_pclmul
ghash_clmulni_intel
aesni_intel
ppdev
processor
aes_x86_64
parport_pc
evdev
parport
lrw
thermal_sys
psmouse
i2c_piix4
gf128mul
glue_helper
ablk_helper
cryptd
i2c_core
serio_raw
button
pcspkr
fuse
autofs4
ext4
crc16
mbcache
jbd2
dm_mod
sg
sd_mod
crc_t10dif
crct10dif_generic
sr_mod
cdrom
ata_generic
virtio_net
floppy
crct10dif_pclmul
crct10dif_common
ata_piix
crc32c_intel
libata
scsi_mod
virtio_pci
virtio_ring
virtio
** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02)
Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000]
Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] [8086:7010] (prog-if 80 [Master])
Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable)
Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable)
Region 4: I/O ports at c020 [size=16]
Kernel driver in use: ata_piix
00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 03)
Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 9
Kernel driver in use: piix4_smbus
00:03.0 Ethernet controller [0200]: Red Hat, Inc Virtio network device [1af4:1000]
Subsystem: Red Hat, Inc Device [1af4:0001]
Physical Slot: 3
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at c000 [size=32]
Region 1: Memory at febc0000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at feb80000 [disabled] [size=256K]
Capabilities: [40] MSI-X: Enable+ Count=3 Masked-
Vector table: BAR=1 offset=00000000
PBA: BAR=1 offset=00000800
Kernel driver in use: virtio-pci
** USB devices:
not available
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages linux-image-3.16.0-4-amd64 depends on:
ii debconf [debconf-2.0] 1.5.56
ii initramfs-tools [linux-initramfs-tool] 0.120
ii kmod 18-3
ii linux-base 3.5
Versions of packages linux-image-3.16.0-4-amd64 recommends:
pn firmware-linux-free <none>
pn irqbalance <none>
Versions of packages linux-image-3.16.0-4-amd64 suggests:
pn debian-kernel-handbook <none>
ii grub-pc 2.02~beta2-22
pn linux-doc-3.16 <none>
Versions of packages linux-image-3.16.0-4-amd64 is related to:
pn firmware-atheros <none>
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
pn firmware-brcm80211 <none>
pn firmware-intelwimax <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
pn firmware-iwlwifi <none>
pn firmware-libertas <none>
pn firmware-linux <none>
pn firmware-linux-nonfree <none>
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
pn firmware-ralink <none>
pn firmware-realtek <none>
pn xen-hypervisor <none>
-- debconf information:
linux-image-3.16.0-4-amd64/postinst/mips-initrd-3.16.0-4-amd64:
linux-image-3.16.0-4-amd64/postinst/depmod-error-initrd-3.16.0-4-amd64: false
linux-image-3.16.0-4-amd64/prerm/removing-running-kernel-3.16.0-4-amd64: true
Reply to: