Bug#782698: xen: Network failure after resume from suspend
Package: src:linux
Version: 3.16.7-ckt9-2
Severity: important
Tags: patch
Dear Maintainer,
When running as a Xen HVM guest, after resuming or migrating a couple of times,
the VM will lose its network and the following error appears on the console:
[ 489.940505] xen_netfront: can't alloc rx grant refs
This is fixed by the following upstream commit (in 3.17):
commit a5b5dc3ce4df4f05f4d81c7d3c56a7604b242093
Author: David Vrabel <david.vrabel@citrix.com>
Date: Thu Jul 31 17:38:23 2014 +0100
xen-netfront: release per-queue Tx and Rx resource when disconnecting
Since netfront may reconnect to a backend with a different number of
queues, all per-queue Rx and Tx resources (skbs and grant references)
should be freed when disconnecting.
Without this fix, the Tx and Rx grant refs are not released and
netfront will exhaust them after only a few reconnections. netfront
will fail to connect when no free grant references are available.
Since all Rx bufs are freed and reallocated instead of reused this
will add some additional delay to the reconnection but this is
expected to be small compared to the time taken by any backend hotplug
scripts etc.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a5b5dc3ce4df4f05f4d81c7d3c56a7604b242093
It would be great if this could be included soon.
Thanks
-- 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-ckt9-2 (2015-04-13)
** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=08bfef5d-0e4e-4147-b26c-121cca82462a ro quiet
** Not tainted
** Kernel log:
[ 0.903455] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.904355] xen_netfront: Initialising Xen virtual ethernet driver
[ 0.905074] uhci_hcd 0000:00:01.2: UHCI Host Controller
[ 0.905083] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[ 0.905210] uhci_hcd 0000:00:01.2: detected 2 ports
[ 0.905718] uhci_hcd 0000:00:01.2: irq 23, io base 0x0000c200
[ 0.916219] SCSI subsystem initialized
[ 0.920849] FDC 0 is a S82078B
[ 0.920995] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.920998] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.920999] usb usb1: Product: UHCI Host Controller
[ 0.921001] usb usb1: Manufacturer: Linux 3.16.0-4-amd64 uhci_hcd
[ 0.921003] usb usb1: SerialNumber: 0000:00:01.2
[ 0.921609] hub 1-0:1.0: USB hub found
[ 0.921622] hub 1-0:1.0: 2 ports detected
[ 0.925753] vbd vbd-5696: 19 xenbus_dev_probe on device/vbd/5696
[ 0.929193] libata version 3.00 loaded.
[ 0.930412] ata_piix 0000:00:01.1: version 2.13
[ 0.932393] scsi0 : ata_piix
[ 0.932918] scsi1 : ata_piix
[ 0.933002] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc220 irq 14
[ 0.933004] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc228 irq 15
[ 0.933389] blkfront: xvda: barrier: enabled; persistent grants: disabled; indirect descriptors: disabled;
[ 0.944282] xvda: xvda1 xvda2 < xvda5 >
[ 0.944687] Setting capacity to 33554432
[ 0.944691] xvda: detected capacity change from 0 to 17179869184
[ 1.090762] ata2.01: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
[ 1.092592] ata2.01: configured for MWDMA2
[ 1.094438] scsi 1:0:1:0: CD-ROM QEMU QEMU DVD-ROM 0.10 PQ: 0 ANSI: 5
[ 1.106271] sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
[ 1.106274] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.106430] sr 1:0:1:0: Attached scsi CD-ROM sr0
[ 1.107455] sr 1:0:1:0: Attached scsi generic sg0 type 5
[ 1.187977] PM: Starting manual resume from disk
[ 1.187981] PM: Hibernation image partition 202:5 present
[ 1.187982] PM: Looking for hibernation image.
[ 1.188694] PM: Image not found (code -22)
[ 1.188697] PM: Hibernation image not present or could not be loaded.
[ 1.232111] usb 1-2: new full-speed USB device number 2 using uhci_hcd
[ 1.287376] EXT4-fs (xvda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1.479545] usb 1-2: New USB device found, idVendor=0627, idProduct=0001
[ 1.479548] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.479550] usb 1-2: Product: QEMU USB Tablet
[ 1.479552] usb 1-2: Manufacturer: QEMU 0.10.2
[ 1.479554] usb 1-2: SerialNumber: 1
[ 1.759876] random: nonblocking pool is initialized
[ 1.820173] tsc: Refined TSC clocksource calibration: 2199.997 MHz
[ 2.415816] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 2.929422] systemd-udevd[179]: starting version 215
[ 3.403354] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[ 3.403361] ACPI: Power Button [PWRF]
[ 3.403425] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input3
[ 3.403428] ACPI: Sleep Button [SLPF]
[ 3.466956] input: PC Speaker as /devices/platform/pcspkr/input/input4
[ 3.492633] [drm] Initialized drm 1.1.0 20060810
[ 3.511543] piix4_smbus 0000:00:01.3: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
[ 3.589946] SSE version of gcm_enc/dec engaged.
[ 3.592276] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[ 3.600061] [drm] Found bochs VGA, ID 0xb0c4.
[ 3.600064] [drm] Framebuffer size 8192 kB @ 0xf1000000, ioports @ 0x1ce.
[ 3.600196] [TTM] Zone kernel: Available graphics memory: 507398 kiB
[ 3.600198] [TTM] Initializing pool allocator
[ 3.600203] [TTM] Initializing DMA pool allocator
[ 3.600742] fbcon: bochsdrmfb (fb0) is primary device
[ 3.604937] Console: switching to colour frame buffer device 128x48
[ 3.607245] bochs-drm 0000:00:02.0: fb0: bochsdrmfb frame buffer device
[ 3.607247] bochs-drm 0000:00:02.0: registered panic notifier
[ 3.616373] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 0
[ 3.616894] alg: No test for crc32 (crc32-pclmul)
[ 3.637242] intel_rapl: Found RAPL domain package
[ 3.637246] intel_rapl: Found RAPL domain core
[ 3.637280] intel_rapl: Found RAPL domain dram
[ 3.637304] intel_rapl: Found RAPL domain package
[ 3.637312] intel_rapl: Found RAPL domain core
[ 3.637338] intel_rapl: Found RAPL domain dram
[ 3.637381] intel_rapl: Found RAPL domain package
[ 3.637397] intel_rapl: Found RAPL domain core
[ 3.637664] intel_rapl: Found RAPL domain dram
[ 3.637856] intel_rapl: Found RAPL domain package
[ 3.637865] intel_rapl: Found RAPL domain core
[ 3.637890] intel_rapl: Found RAPL domain dram
[ 3.645799] parport_pc 00:07: reported by Plug and Play ACPI
[ 3.646426] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[ 3.747819] EXT4-fs (xvda1): re-mounted. Opts: errors=remount-ro
[ 3.804059] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.810374] ppdev: user-space parallel port driver
[ 3.844879] usbcore: registered new interface driver usbhid
[ 3.844882] usbhid: USB HID core driver
[ 3.873531] input: QEMU 0.10.2 QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-2/1-2:1.0/0003:0627:0001.0001/input/input6
[ 3.873691] hid-generic 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU 0.10.2 QEMU USB Tablet] on usb-0000:00:01.2-2/input0
[ 3.935902] systemd-journald[173]: Received request to flush runtime journal from PID 1
[ 4.606092] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input5
[ 6.511311] Adding 731132k swap on /dev/xvda5. Priority:-1 extents:1 across:731132k SSFS
[ 7.954778] RPC: Registered named UNIX socket transport module.
[ 7.954782] RPC: Registered udp transport module.
[ 7.954783] RPC: Registered tcp transport module.
[ 7.954784] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 7.989715] FS-Cache: Loaded
[ 8.011669] FS-Cache: Netfs 'nfs' registered for caching
[ 8.066506] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
** Model information
sys_vendor: Xen
product_name: HVM domU
product_version: 4.5.0
chassis_vendor: Xen
chassis_version:
bios_vendor: Xen
bios_version: 4.5.0
** Loaded modules:
xenfs
xen_privcmd
nfsd
auth_rpcgss
oid_registry
nfs_acl
nfs
lockd
fscache
sunrpc
joydev
hid_generic
ppdev
usbhid
hid
psmouse
evdev
serio_raw
parport_pc
parport
intel_rapl
crc32_pclmul
ghash_clmulni_intel
bochs_drm
aesni_intel
ttm
aes_x86_64
lrw
processor
gf128mul
glue_helper
thermal_sys
ablk_helper
i2c_piix4
cryptd
drm_kms_helper
drm
pcspkr
i2c_core
button
autofs4
ext4
crc16
mbcache
jbd2
sg
sr_mod
cdrom
ata_generic
ata_piix
libata
crct10dif_pclmul
crct10dif_common
xen_netfront
xen_blkfront
uhci_hcd
ehci_hcd
crc32c_intel
usbcore
scsi_mod
usb_common
floppy
** Network interface configuration:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# 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 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 4a:36:93:1a:24:71 brd ff:ff:ff:ff:ff:ff
inet 10.80.237.102/20 brd 10.80.239.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::4836:93ff:fe1a:2471/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
eth0: 3072284 7966 0 0 0 0 0 0 648496 1155 0 0 0 0 0 0
lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
*** Protocol statistics:
Ip:
3699 total packets received
48 with invalid addresses
0 forwarded
0 incoming packets discarded
2999 incoming packets delivered
1138 requests sent out
Icmp:
2 ICMP messages received
0 input ICMP message failed.
ICMP input histogram:
echo requests: 2
2 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
echo replies: 2
IcmpMsg:
InType8: 2
OutType0: 2
Tcp:
7 active connections openings
1 passive connection openings
0 failed connection attempts
2 connection resets received
1 connections established
1193 segments received
1273 segments send out
8 segments retransmited
0 bad segments received.
3 resets sent
Udp:
44 packets received
0 packets to unknown port received.
0 packet receive errors
30 packets sent
UdpLite:
TcpExt:
1 invalid SYN cookies received
4 delayed acks sent
Quick ack mode was activated 2 times
21 packets directly queued to recvmsg prequeue.
24150 bytes directly received in process context from prequeue
416 packet headers predicted
9 packets header predicted and directly queued to user
122 acknowledgments not containing data payload received
436 predicted acknowledgments
1 times recovered from packet loss by selective acknowledgements
4 fast retransmits
2 forward retransmits
TCPLossProbes: 2
TCPLossProbeRecovery: 2
2 DSACKs sent for old packets
3 DSACKs received
2 connections reset due to early user close
TCPDSACKIgnoredNoUndo: 1
TCPSackShiftFallback: 1
TCPRcvCoalesce: 64
TCPOFOQueue: 23
TCPAutoCorking: 215
TCPOrigDataSent: 855
IpExt:
InMcastPkts: 4
InBcastPkts: 1770
InOctets: 2761175
OutOctets: 630626
InMcastOctets: 128
InBcastOctets: 167069
InNoECTPkts: 3700
** 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]
Physical Slot: 0
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
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]
Physical Slot: 1
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: XenSource, Inc. Device [5853:0001]
Physical Slot: 1
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: 64
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 c220 [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: XenSource, Inc. Device [5853:0001]
Physical Slot: 1
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: 64
Interrupt: pin D routed to IRQ 23
Region 4: I/O ports at c200 [size=32]
Kernel driver in use: uhci_hcd
00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 01)
Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100]
Physical Slot: 1
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 9
00:02.0 VGA compatible controller [0300]: Device [1234:1111] (prog-if 00 [VGA controller])
Subsystem: XenSource, Inc. Device [5853:0001]
Physical Slot: 2
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 f1000000 (32-bit, prefetchable) [size=8M]
Expansion ROM at <unassigned> [disabled]
Kernel driver in use: bochs-drm
00:03.0 SCSI storage controller [0100]: XenSource, Inc. Xen Platform Device [5853:0001] (rev 02)
Subsystem: XenSource, Inc. Xen Platform Device [5853: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 C routed to IRQ 30
Region 0: I/O ports at c000 [size=256]
Region 1: Memory at f0000000 (32-bit, prefetchable) [size=16M]
Kernel driver in use: xen-platform-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: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 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/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
linux-image-3.16.0-4-amd64/postinst/mips-initrd-3.16.0-4-amd64:
Reply to: