--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: linux-image-3.3.0-rc6-amd64: LVM segfaults on 3.3 kernel
- From: Rik Theys <Rik.Theys@esat.kuleuven.be>
- Date: Wed, 21 Mar 2012 13:55:08 +0100
- Message-id: <20120321125508.2573.98830.reportbug@squeeze.esat.kuleuven.be>
Package: linux-2.6
Version: 3.3~rc6-1~experimental.1
Severity: important
Hi,
I installed the 3.3.0-rc6-amd64 kernel from experimental on a squeeze VM. The
system fails to boot this kernel as it can no longer find the root file system.
When booting with the quiet option off, I see that the lvm command in the initrd
segfaults.
Are there any changes in the new kernel that require a more recent LVM?
Regards,
Rik
-- Package-specific info:
** Kernel log: boot messages should be attached
** Model information
sys_vendor: Red Hat
product_name: KVM
product_version: RHEL 6.2.0 PC
chassis_vendor: Red Hat
chassis_version:
bios_vendor: Seabios
bios_version: 0.5.1
** Network interface configuration:
auto lo
iface lo inet loopback
up /sbin/iptables-restore < /etc/network/firewall
auto eth0
iface eth0 inet dhcp
** 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-
Latency: 0
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 c000 [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 c020 [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]: Red Hat, Inc. Device [1b36:0100] (rev 03) (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-
Interrupt: pin A routed to IRQ 10
Region 0: Memory at f0000000 (32-bit, non-prefetchable) [size=64M]
Region 1: Memory at e0000000 (32-bit, non-prefetchable) [size=64M]
Region 2: Memory at f4000000 (32-bit, non-prefetchable) [size=8K]
Region 3: I/O ports at c040 [size=32]
Expansion ROM at f4010000 [disabled] [size=64K]
00:03.0 Ethernet controller [0200]: Red Hat, Inc Virtio network device [1af4:1000]
Subsystem: Red Hat, Inc Device [1af4:0001]
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 c060 [size=32]
Region 1: Memory at f4020000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at f4030000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: virtio-pci
00:04.0 Communication controller [0780]: Red Hat, Inc Virtio console [1af4:1003]
Subsystem: Red Hat, Inc Device [1af4:0003]
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 c080 [size=32]
Region 1: Memory at f4040000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: virtio-pci
00:05.0 SCSI storage controller [0100]: Red Hat, Inc Virtio block device [1af4:1001]
Subsystem: Red Hat, Inc Device [1af4:0002]
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 c0c0 [size=64]
Region 1: Memory at f4041000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: virtio-pci
00:06.0 RAM memory [0500]: Red Hat, Inc Virtio memory balloon [1af4:1002]
Subsystem: Red Hat, Inc Device [1af4:0005]
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 c100 [size=32]
Kernel driver in use: virtio-pci
** USB devices:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-0.bpo.2-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.3.0-rc6-amd64 depends on:
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii initramfs-tools [linux-init 0.99~bpo60+1 tools for generating an initramfs
ii linux-base 3.4~bpo60+1 Linux image base package
ii module-init-tools 3.12-2 tools for managing Linux kernel mo
Versions of packages linux-image-3.3.0-rc6-amd64 recommends:
ii firmware-linux-free 2.6.32-41 Binary firmware for various driver
Versions of packages linux-image-3.3.0-rc6-amd64 suggests:
ii grub-pc 1.98+20100804-14+squeeze1 GRand Unified Bootloader, version
pn linux-doc-3.3 <none> (no description available)
Versions of packages linux-image-3.3.0-rc6-amd64 is related to:
pn firmware-atheros <none> (no description available)
pn firmware-bnx2 <none> (no description available)
pn firmware-bnx2x <none> (no description available)
pn firmware-brcm80211 <none> (no description available)
pn firmware-intelwimax <none> (no description available)
pn firmware-ipw2x00 <none> (no description available)
pn firmware-ivtv <none> (no description available)
pn firmware-iwlwifi <none> (no description available)
pn firmware-libertas <none> (no description available)
pn firmware-linux <none> (no description available)
pn firmware-linux-nonfree <none> (no description available)
pn firmware-myricom <none> (no description available)
pn firmware-netxen <none> (no description available)
pn firmware-qlogic <none> (no description available)
pn firmware-ralink <none> (no description available)
pn firmware-realtek <none> (no description available)
pn xen-hypervisor <none> (no description available)
-- debconf information:
linux-image-3.3.0-rc6-amd64/postinst/ignoring-ramdisk:
linux-image-3.3.0-rc6-amd64/prerm/removing-running-kernel-3.3.0-rc6-amd64: true
linux-image-3.3.0-rc6-amd64/postinst/depmod-error-initrd-3.3.0-rc6-amd64: false
linux-image-3.3.0-rc6-amd64/postinst/missing-firmware-3.3.0-rc6-amd64:
--- End Message ---
--- Begin Message ---
- To: Rik Theys <Rik.Theys@esat.kuleuven.be>
- Cc: 664859-done@bugs.debian.org
- Subject: Re: LVM segfaults on 3.3-rc6
- From: Moritz Muehlenhoff <jmm@inutil.org>
- Date: Mon, 19 Aug 2013 18:08:30 +0200
- Message-id: <20130819160830.GD13159@inutil.org>
- In-reply-to: <4FB0CDDB.8010701@esat.kuleuven.be>
- References: <20120321125508.2573.98830.reportbug@squeeze.esat.kuleuven.be> <20120321162731.GA2492@burratino> <4F6B1721.5090606@esat.kuleuven.be> <1336856599.9080.3.camel@deadeye> <20120512212546.GH9819@burratino> <1336858362.9080.5.camel@deadeye> <4FB0AAC4.7020809@esat.kuleuven.be> <1336985527.9080.62.camel@deadeye> <4FB0CDDB.8010701@esat.kuleuven.be>
On Mon, May 14, 2012 at 11:18:19AM +0200, Rik Theys wrote:
> Hi,
>
> On 05/14/2012 10:52 AM, Ben Hutchings wrote:
>> On Mon, 2012-05-14 at 08:48 +0200, Rik Theys wrote:
>>> Hi,
>>>
>>> On 05/12/2012 11:32 PM, Ben Hutchings wrote:
>>>> On Sat, 2012-05-12 at 16:25 -0500, Jonathan Nieder wrote:
>>>>> Ben Hutchings wrote:
>>>>>
>>>>>> Which shows that the segfault is always at the same code address:
>>>>>>
>>>>>> [ 56.663596] lvm[540]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff25461ec8 error 5
>>>>>> [ 76.174282] exe[541]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fffa69b3388 error 5
>>>>>> [ 78.307062] exe[542]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff33270d08 error 5
>>>>>> [ 87.775183] exe[543]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffffb125068 error 5
>>>>>> [ 97.937356] exe[545]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fffb53be498 error 5
>>>>>> [ 108.789157] lvm[547]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff0e012348 error 5
>>>>>>
>>>>>> This address is not accessible in user-mode, and probably isn't used by
>>>>>> the kernel either.
>>>>>
>>>>> Nice lead. Looks like
>>>>> http://thread.gmane.org/gmane.linux.kernel/1248253/focus=1254330
>>>>
>>>> Agreed. Rik, which version of the kernel is the hypervisor from?
>>>
>>> The hypervisor is CentOS 6.2 with kernel version
>>> 2.6.32-220.7.1.el6.x86_64 and qemu-kvm-0.12.1.2-2.209.el6_2.4.x86_64.
>>
>> OK, so it doesn't look we have a bug to fix.
>>
>> Based on that email thread I think you can work around this with
>> 'vsyscall=native' on the guest's kernel command line. The down-side of
>> this is that it makes it easier to exploit some types of bug for
>> privilege escalation.
>
> Thanks, that does indeed "fix" the issue.
>
> It will do for now as it's just a test box. I'm sure Red Hat will fix
> this in one of their future updates.
Closing.
Cheers,
Moritz
--- End Message ---