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

Bug#881813: linux-image-4.13.0-1-amd64: Linux 4.13.0 cannot run squeeze chroot environment



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

Current (2017-11-14 - 2017-11-15) sid with up-to-date kernel (4.13.0) cannot "chroot" into squeeze chroot environment.

What I did?

* I started qemu-system-x86_64 (debian package qemu-system-x86 1:2.8+dfsg-6+deb9u3) from my host system (debian stretch amd64)
* 2017-11-14 I downloaded current buster installer from here:
http://cdimage.debian.org/cdimage/buster_di_alpha1/amd64/iso-cd/debian-buster-DI-alpha1-amd64-netinst.iso
* I installed it to the qemu virtual machine
* I upgraded it to current sid (2017-11-14 - 2017-11-15)
* I created (in this qemu virtual machine, of course) squeeze chroot environment using command (I use debootstrap 1.0.92):
# debootstrap --variant=minbase --no-check-gpg squeeze /tmp/target http://archive.debian.org/debian
* It failed:
W: Failure trying to run: chroot /tmp/target dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.22_amd64.deb
W: See /tmp/target/debootstrap/debootstrap.log for details
* /tmp/target/debootstrap/debootstrap.log is here:
warning, in file '/var/lib/dpkg/status' near line 4 package 'dpkg':
 missing description
Segmentation fault
* Then I tried to run "chroot /tmp/target /bin/bash" and got "Segmentation fault"

So, it seems current sid simply cannot run squeeze chroot environment: it gots segmentation fault when triyng to run /bin/bash .

* Then I removed /tmp/target and created it again using command:
# debootstrap --variant=minbase --no-check-gpg --foreign squeeze /tmp/target http://archive.debian.org/debian
* Now the command worked well. But then I tried "chroot /tmp/target /bin/bash" and got "Segmentation fault" again
* Then I copied that /tmp/target to outside of my qemu virtual machine and run it on my host. My host is debian stretch with kernel
linux-image-4.9.0-4-amd64 4.9.51-1. And /bin/bash worked successfully. So, squeeze chroot environment doesn't work on sid with kernel
4.13.0, but works with stretch with kernel 4.9.0
* Then I run my host OS in qemu using well known "qemu -snapshot /dev/sda" trick. And then I did run "chroot /tmp/target /bin/bash" in this
qemu instance. /bin/bash worked well again. So, it seems qemu doesn't influence bug reproducebility. I. e. it seems the problem is not
qemu-related.

So, I am pretty sure problem is not in debootstrap. I also think the problem is not in qemu (I already wrote why I did so). I think problem
is this: modern kernel cannot run old squeeze chroot environment. So I fill this bug to "linux-image" package.

I think this is very important bug, so I give it "important" priority. Linux kernel is very conservative when we speak about API and ABI.
Modern debian releases typically can run very old chroot environments. I can successfully create debian hamm chroot environment on my
stretch host using my own script. Yes, hamm!!! Which is released 1998-07-24!!! And I can successfully run /bin/bash from it. So, debian
(until recently) successfully did run very old chroot environments. And now you broke this tradition, this is very bad.

This bug report is sent from mentioned sid qemu virtual machine.

-- Package-specific info:
** Version:
Linux version 4.13.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 6.4.0 20171026 (Debian 6.4.0-9)) #1 SMP Debian 4.13.10-1 (2017-10-30)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-4.13.0-1-amd64 root=UUID=8e27eccf-cc87-4c57-8bb6-7d3da96097e3 ro quiet

** Not tainted

** Kernel log:
[    0.606044] Write protecting the kernel read-only data: 12288k
[    0.606615] Freeing unused kernel memory: 1592K
[    0.608452] Freeing unused kernel memory: 1128K
[    0.609313] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    0.657316] SCSI subsystem initialized
[    0.658541] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0
[    0.659811] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    0.659811] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.668058] libata version 3.00 loaded.
[    0.671377] Floppy drive(s): fd0 is 2.88M AMI BIOS
[    0.674626] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3
[    0.674745] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2
[    0.690794] FDC 0 is a S82078B
[    0.698539] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[    1.025342] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 52:54:00:12:34:56
[    1.025348] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
[    1.025367] ata_piix 0000:00:01.1: version 2.13
[    1.026725] e1000 0000:00:03.0 ens3: renamed from eth0
[    1.027495] scsi host0: ata_piix
[    1.027584] scsi host1: ata_piix
[    1.027608] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc040 irq 14
[    1.027609] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc048 irq 15
[    1.184305] ata1.01: NODEV after polling detection
[    1.184501] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
[    1.184502] ata1.00: 16777216 sectors, multi 16: LBA48 
[    1.184805] ata1.00: configured for MWDMA2
[    1.184892] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    1.188279] ata2.01: NODEV after polling detection
[    1.188465] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[    1.188764] ata2.00: configured for MWDMA2
[    1.189062] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
[    1.191408] sd 0:0:0:0: [sda] 16777216 512-byte logical blocks: (8.59 GB/8.00 GiB)
[    1.191412] sd 0:0:0:0: [sda] Write Protect is off
[    1.191413] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.191418] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.192239]  sda: sda1
[    1.192421] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.200520] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    1.200522] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.200778] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    1.349125] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    1.376033] tsc: Refined TSC clocksource calibration: 3092.844 MHz
[    1.376036] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2c94dffea94, max_idle_ns: 440795361700 ns
[    1.450142] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.454415] systemd[1]: systemd 235 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN default-hierarchy=hybrid)
[    1.454439] systemd[1]: Detected virtualization kvm.
[    1.454441] systemd[1]: Detected architecture x86-64.
[    1.454730] systemd[1]: Set hostname to <debian>.
[    1.562393] systemd[1]: Reached target Swap.
[    1.562463] systemd[1]: Reached target Remote File Systems.
[    1.562475] systemd[1]: Reached target User and Group Name Lookups.
[    1.562629] systemd[1]: Created slice System Slice.
[    1.562656] systemd[1]: Listening on fsck to fsckd communication Socket.
[    1.562683] systemd[1]: Listening on Journal Socket.
[    1.648150] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[    1.691365] systemd-journald[159]: Received request to flush runtime journal from PID 1
[    1.813113] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
[    1.813125] ACPI: Power Button [PWRF]
[    1.844420] parport_pc 00:04: reported by Plug and Play ACPI
[    1.844498] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[    1.878400] input: PC Speaker as /devices/platform/pcspkr/input/input5
[    1.878553] [drm] Found bochs VGA, ID 0xb0c0.
[    1.878554] [drm] Framebuffer size 16384 kB @ 0xfd000000, mmio @ 0xfebf0000.
[    1.886258] [TTM] Zone  kernel: Available graphics memory: 509896 kiB
[    1.886259] [TTM] Initializing pool allocator
[    1.886262] [TTM] Initializing DMA pool allocator
[    1.887455] fbcon: bochsdrmfb (fb0) is primary device
[    1.902257] Console: switching to colour frame buffer device 128x48
[    1.903335] bochs-drm 0000:00:02.0: fb0: bochsdrmfb frame buffer device
[    1.903463] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 0
[    1.956591] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.956608] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    1.995948] ppdev: user-space parallel port driver
[    2.623689] IPv6: ADDRCONF(NETDEV_UP): ens3: link is not ready
[    2.625441] IPv6: ADDRCONF(NETDEV_UP): ens3: link is not ready
[    2.632565] e1000: ens3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[    2.633186] IPv6: ADDRCONF(NETDEV_CHANGE): ens3: link becomes ready
[    6.184827] random: crng init done
[  343.700272] dpkg[3622] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7fff186a3668 ax:ffffffffff600400 si:1 di:7fff186a36b8
[  343.700274] dpkg[3622]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff186a3668 error 15
[  978.432116] dpkg[6300] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7fffb9480478 ax:ffffffffff600400 si:1 di:7fffb94804c8
[  978.432119] dpkg[6300]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fffb9480478 error 15
[ 1678.130981] bash[6548] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7fffe3e1e378 ax:ffffffffff600400 si:7fffe3e1e888 di:0
[ 1678.130984] bash[6548]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fffe3e1e378 error 15
[ 1682.880555] bash[6549] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffdfbade798 ax:ffffffffff600400 si:7ffdfbae0888 di:0
[ 1682.880557] bash[6549]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffdfbade798 error 15
[ 1689.430009] bash[6551] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffd9ae1ca58 ax:ffffffffff600400 si:7ffd9ae1e888 di:0
[ 1689.430011] bash[6551]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffd9ae1ca58 error 15
[ 1864.803981] ldd[6662] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffff0c6c978 ax:ffffffffff600400 si:7ffff0c6d870 di:0
[ 1864.803983] ldd[6662]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffff0c6c978 error 15
[ 1868.653045] ldd[6663] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffe867da0f8 ax:ffffffffff600400 si:7ffe867db870 di:0
[ 1868.653047] ldd[6663]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffe867da0f8 error 15
[ 1873.402932] ldd[6665] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7fff1ec7afd8 ax:ffffffffff600400 si:7fff1ec7b870 di:0
[ 1873.402935] ldd[6665]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff1ec7afd8 error 15
[ 1959.717806] ld-linux-x86-64[6672]: segfault at b0 ip 00007fd46bd612fe sp 00007fff02e6f3b8 error 4 in libc-2.24.so[7fd46bcdf000+193000]
[ 1997.989919] ld-linux-x86-64[6674]: segfault at 5 ip 0000000000000005 sp 00007ffd322efb78 error 14 in bash[400000+100000]
[ 2692.065016] bash[9289] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7ffdf2517298 ax:ffffffffff600400 si:7ffdf2518888 di:0
[ 2692.065019] bash[9289]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007ffdf2517298 error 15
[ 3232.778112] bash[9415] vsyscall attempted with vsyscall=none ip:ffffffffff600400 cs:33 sp:7fffd3040f88 ax:ffffffffff600400 si:7fffd3041878 di:0
[ 3232.778116] bash[9415]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fffd3040f88 error 15

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

** Loaded modules:
ppdev
evdev
joydev
sg
serio_raw
pcspkr
bochs_drm
ttm
drm_kms_helper
drm
parport_pc
parport
button
ip_tables
x_tables
autofs4
ext4
crc16
mbcache
jbd2
crc32c_generic
fscrypto
ecb
crypto_simd
cryptd
glue_helper
aes_x86_64
sd_mod
sr_mod
cdrom
ata_generic
psmouse
floppy
ata_piix
e1000
i2c_piix4
libata
scsi_mod

** 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 c040 [size=16]
	Kernel driver in use: ata_piix
	Kernel modules: ata_piix, ata_generic

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
	Kernel modules: i2c_piix4

00:02.0 VGA compatible controller [0300]: Device [1234:1111] (rev 02) (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-
	Latency: 0
	Region 0: Memory at fd000000 (32-bit, prefetchable) [size=16M]
	Region 2: Memory at febf0000 (32-bit, non-prefetchable) [size=4K]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Kernel driver in use: bochs-drm
	Kernel modules: bochs_drm

00:03.0 Ethernet controller [0200]: Intel Corporation 82540EM Gigabit Ethernet Controller [8086:100e] (rev 03)
	Subsystem: Red Hat, Inc QEMU Virtual Machine [1af4:1100]
	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: Memory at febc0000 (32-bit, non-prefetchable) [size=128K]
	Region 1: I/O ports at c000 [size=64]
	Expansion ROM at feb80000 [disabled] [size=256K]
	Kernel driver in use: e1000
	Kernel modules: e1000


** USB devices:
not available


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-image-4.13.0-1-amd64 depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.130
ii  kmod                                    24-1
ii  linux-base                              4.5

Versions of packages linux-image-4.13.0-1-amd64 recommends:
pn  firmware-linux-free  <none>
pn  irqbalance           <none>

Versions of packages linux-image-4.13.0-1-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-pc                 2.02-2
pn  linux-doc-4.13          <none>

Versions of packages linux-image-4.13.0-1-amd64 is related to:
pn  firmware-amd-graphics     <none>
pn  firmware-atheros          <none>
pn  firmware-bnx2             <none>
pn  firmware-bnx2x            <none>
pn  firmware-brcm80211        <none>
pn  firmware-cavium           <none>
pn  firmware-intel-sound      <none>
pn  firmware-intelwimax       <none>
pn  firmware-ipw2x00          <none>
pn  firmware-ivtv             <none>
pn  firmware-iwlwifi          <none>
pn  firmware-libertas         <none>
pn  firmware-linux-nonfree    <none>
pn  firmware-misc-nonfree     <none>
pn  firmware-myricom          <none>
pn  firmware-netxen           <none>
pn  firmware-qlogic           <none>
pn  firmware-realtek          <none>
pn  firmware-samsung          <none>
pn  firmware-siano            <none>
pn  firmware-ti-connectivity  <none>
pn  xen-hypervisor            <none>

-- no debconf information


Reply to: