[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#775215: linux-image-3.2.0-4-amd64: Segmentation fault in ext4_clear_journal_err when remounting ext4 filesystem after disabling journal



Package: src:linux
Version: 3.2.65-1
Severity: important

Dear Maintainer,

I wanted to disable journal for my root ext4 filesystem running in virtual Debian Wheezy amd64 (using Virt Manager, KVM machine), but just after remounting filesystem to 'rw' mode with disabled journal, kernel experienced segmentation fault. 

Call trace is attached as screenshot because there was no textual information saved after crash. System did not respond to 'reboot' or 'poweroff' or anything afterwards.

System does boot successfully when force-restarded, and I am not sure if there is any damage for filesystem consistency.

To reproduce crash I did like this:

1. Install virtual Debian Wheezy amd64 using Virt Manager with ext4 as single '/' filesystem with default mount options.

2. After first boot, enter single user mode:
init 1

3. Disable ext4 journal using this sequence:
mount -o remount,ro / #tunte2fs needs readonly filesystem to disable journal...
tune2fs -O ^has_journal /dev/sda1
mount -o remount,rw /
*crash*

Output of a crash is seen in attached screenshot. 

To reproduce it again:
1. (re)boot system in normal runlevel

2. Enable journal:
tunte2fs -O has_journal /

3. Reboot (again).

4. Repeat from step 2 in last sequence (init 1 ...) to disable journal again.

-- Package-specific info:
** Version:
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.65-1

** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 root=UUID=2adc03af-5d7d-4380-8dc6-643b55e1b956 ro quiet

** Not tainted

** Kernel log:
[    0.617659] cpuidle: using governor menu
[    0.618097] TCP cubic registered
[    0.618342] NET: Registered protocol family 10
[    0.619420] Mobile IPv6
[    0.619425] NET: Registered protocol family 17
[    0.619441] Registering the dns_resolver key type
[    0.619918] PM: Hibernation image not present or could not be loaded.
[    0.619940] registered taskstats version 1
[    0.621006] rtc_cmos 00:01: setting system clock to 2015-01-12 16:41:41 UTC (1421080901)
[    0.621073] Initializing network drop monitor service
[    0.623328] Freeing unused kernel memory: 576k freed
[    0.623729] Write protecting the kernel read-only data: 6144k
[    0.628004] Freeing unused kernel memory: 644k freed
[    0.631503] Freeing unused kernel memory: 688k freed
[    0.706691] udevd[48]: starting version 175
[    0.828814] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
[    0.829486] virtio-pci 0000:00:03.0: setting latency timer to 64
[    0.829878] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[    0.830722] virtio-pci 0000:00:05.0: setting latency timer to 64
[    0.839212] usbcore: registered new interface driver usbfs
[    0.839286] usbcore: registered new interface driver hub
[    0.839389] SCSI subsystem initialized
[    0.848653] usbcore: registered new device driver usb
[    0.850674] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.851896] uhci_hcd: USB Universal Host Controller Interface driver
[    0.853091] uhci_hcd 0000:00:01.2: setting latency timer to 64
[    0.853114] uhci_hcd 0000:00:01.2: UHCI Host Controller
[    0.853582] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[    0.853820] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c000
[    0.853978] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    0.853982] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.853984] usb usb1: Product: UHCI Host Controller
[    0.853987] usb usb1: Manufacturer: Linux 3.2.0-4-amd64 uhci_hcd
[    0.853989] usb usb1: SerialNumber: 0000:00:01.2
[    0.854249] hub 1-0:1.0: USB hub found
[    0.854255] hub 1-0:1.0: 2 ports detected
[    0.857877] libata version 3.00 loaded.
[    0.859604] ata_piix 0000:00:01.1: version 2.13
[    0.861114] ata_piix 0000:00:01.1: setting latency timer to 64
[    0.861844] scsi0 : ata_piix
[    0.868989] scsi1 : ata_piix
[    0.869075] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
[    0.869079] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
[    0.965546] FDC 0 is a S82078B
[    0.983677] virtio-pci 0000:00:03.0: irq 40 for MSI/MSI-X
[    0.983726] virtio-pci 0000:00:03.0: irq 41 for MSI/MSI-X
[    0.983771] virtio-pci 0000:00:03.0: irq 42 for MSI/MSI-X
[    1.030610] ata1.01: NODEV after polling detection
[    1.032279] ata1.00: ATA-7: QEMU HARDDISK, 2.0.0, max UDMA/100
[    1.032289] ata1.00: 8388608 sectors, multi 16: LBA48 
[    1.036196] ata2.01: NODEV after polling detection
[    1.037069] ata1.00: configured for MWDMA2
[    1.037270] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.0. PQ: 0 ANSI: 5
[    1.037918] ata2.00: ATAPI: QEMU DVD-ROM, 2.0.0, max UDMA/100
[    1.039385] ata2.00: configured for MWDMA2
[    1.053039] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.0. PQ: 0 ANSI: 5
[    1.069994] sd 0:0:0:0: [sda] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    1.070081] sd 0:0:0:0: [sda] Write Protect is off
[    1.070084] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.070111] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.071672]  sda: sda1
[    1.072150] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.076436] sr0: scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    1.076445] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.076835] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    1.083157] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.083220] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    1.168227] usb 1-1: new full-speed USB device number 2 using uhci_hcd
[    1.329086] usb 1-1: New USB device found, idVendor=0627, idProduct=0001
[    1.329094] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=5
[    1.329099] usb 1-1: Product: QEMU USB Tablet
[    1.329103] usb 1-1: Manufacturer: QEMU
[    1.329107] usb 1-1: SerialNumber: 42
[    1.353680] input: QEMU QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-1/1-1:1.0/input/input1
[    1.353868] generic-usb 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU QEMU USB Tablet] on usb-0000:00:01.2-1/input0
[    1.354037] usbcore: registered new interface driver usbhid
[    1.354040] usbhid: USB HID core driver
[    1.419396] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[    1.487414] Refined TSC clocksource calibration: 1994.967 MHz.
[    2.409245] udevd[307]: starting version 175
[    2.701845] WARNING! power/level is deprecated; use power/control instead
[    2.776453] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[    2.776461] ACPI: Power Button [PWRF]
[    2.829454] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
[    2.938872] snd_hda_intel 0000:00:04.0: irq 43 for MSI/MSI-X
[    2.940464] snd_hda_intel 0000:00:04.0: setting latency timer to 64
[    3.071342] input: PC Speaker as /devices/platform/pcspkr/input/input3
[    3.085208] Error: Driver 'pcspkr' is already registered, aborting...
[    3.730847] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
[    4.223796] EXT4-fs (sda1): re-mounted. Opts: (null)
[    4.368120] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[    4.495571] loop: module loaded
[    8.298606] RPC: Registered named UNIX socket transport module.
[    8.298610] RPC: Registered udp transport module.
[    8.298612] RPC: Registered tcp transport module.
[    8.298614] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.314958] FS-Cache: Loaded
[    8.335165] FS-Cache: Netfs 'nfs' registered for caching
[    8.360356] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   19.216211] eth0: no IPv6 routers present

** Model information
sys_vendor: QEMU
product_name: Standard PC (i440FX + PIIX, 1996)
product_version: pc-i440fx-trusty
chassis_vendor: Bochs
chassis_version: 
bios_vendor: Bochs
bios_version: Bochs

** Loaded modules:
nfsd
nfs
nfs_acl
auth_rpcgss
fscache
lockd
sunrpc
loop
psmouse
serio_raw
pcspkr
snd_hda_intel
snd_hda_codec
snd_hwdep
processor
thermal_sys
snd_pcm
snd_page_alloc
virtio_balloon
container
snd_timer
evdev
i2c_piix4
i2c_core
joydev
snd
soundcore
button
ext4
crc16
jbd2
mbcache
usbhid
hid
sg
sr_mod
cdrom
sd_mod
crc_t10dif
ata_generic
virtio_net
floppy
ata_piix
libata
uhci_hcd
ehci_hcd
usbcore
scsi_mod
virtio_pci
virtio_ring
virtio
usb_common

** Network interface configuration:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

** Network status:
*** IP interfaces and addresses:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 52:54:00:8c:a4:70 brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.205/24 brd 192.168.100.255 scope global eth0
    inet6 fe80::5054:ff:fe8c:a470/64 scope link 
       valid_lft forever preferred_lft forever

*** Device statistics:
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth0: 2274341    1703    0    0    0     0          0         0    80799     830    0    0    0     0       0          0

*** Protocol statistics:
Ip:
    1547 total packets received
    1 with invalid addresses
    0 forwarded
    0 incoming packets discarded
    1544 incoming packets delivered
    821 requests sent out
Icmp:
    0 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
    0 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
Tcp:
    4 active connections openings
    0 passive connection openings
    0 failed connection attempts
    1 connection resets received
    0 connections established
    1530 segments received
    820 segments send out
    0 segments retransmited
    0 bad segments received.
    1 resets sent
Udp:
    12 packets received
    0 packets to unknown port received.
    0 packet receive errors
    12 packets sent
UdpLite:
TcpExt:
    5 delayed acks sent
    1434 packet headers predicted
    18 acknowledgments not containing data payload received
    8 predicted acknowledgments
    1 connections reset due to early user close
IpExt:
    InBcastPkts: 2
    InOctets: 2244532
    OutOctets: 68435
    InBcastOctets: 509


** 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) [size=1]
	Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
	Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
	Region 4: I/O ports at c060 [size=16]
	Kernel driver in use: ata_piix

00:01.2 USB controller [0c03]: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] [8086:7020] (rev 01) (prog-if 00 [UHCI])
	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-
	Latency: 0
	Interrupt: pin D routed to IRQ 11
	Region 4: I/O ports at c000 [size=32]
	Kernel driver in use: uhci_hcd

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:02.0 VGA compatible controller [0300]: Cirrus Logic GD 5446 [1013:00b8] (prog-if 00 [VGA controller])
	Subsystem: Red Hat, Inc Device [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-
	Region 0: Memory at fc000000 (32-bit, prefetchable) [size=32M]
	Region 1: Memory at febd4000 (32-bit, non-prefetchable) [size=4K]
	Expansion ROM at febc0000 [disabled] [size=64K]

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 10
	Region 0: I/O ports at c020 [size=32]
	Region 1: Memory at febd5000 (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

00:04.0 Audio device [0403]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller [8086:2668] (rev 01)
	Subsystem: Red Hat, Inc Device [1af4:1100]
	Physical Slot: 4
	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 43
	Region 0: Memory at febd0000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee00000  Data: 4051
	Kernel driver in use: snd_hda_intel

00:05.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon [1af4:1002]
	Subsystem: Red Hat, Inc Device [1af4:0005]
	Physical Slot: 5
	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 10
	Region 0: I/O ports at c040 [size=32]
	Kernel driver in use: virtio-pci


** USB devices:
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd 


-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-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/dash

Versions of packages linux-image-3.2.0-4-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.49
ii  initramfs-tools [linux-initramfs-tool]  0.109.1
ii  kmod                                    9-3
ii  linux-base                              3.5
ii  module-init-tools                       9-3

Versions of packages linux-image-3.2.0-4-amd64 recommends:
pn  firmware-linux-free  <none>

Versions of packages linux-image-3.2.0-4-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-pc                 1.99-27+deb7u2
pn  linux-doc-3.2           <none>

Versions of packages linux-image-3.2.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.2.0-4-amd64/postinst/depmod-error-initrd-3.2.0-4-amd64: false
  linux-image-3.2.0-4-amd64/prerm/removing-running-kernel-3.2.0-4-amd64: true
  linux-image-3.2.0-4-amd64/postinst/ignoring-ramdisk:
  linux-image-3.2.0-4-amd64/postinst/missing-firmware-3.2.0-4-amd64:

Attachment: linux_crash.png
Description: PNG image


Reply to: