Package: src:linux Version: 5.2.9-2 Severity: normal Hello,
How to reproduce: 1. set up zram with mem_limit that we can hit, like 10MB or so 2. get system to start swapping there, for example put a large random file in tmpfs and attempt to lock large portion of memory with memtester System freezes with swap write errors If we do not set mem_limit then that process gets killed by OOM just fine. My guess is that the way mem_limit works by denying swap writes is somehow blocking Linux OOM triggers? Thanks -- Package-specific info: ** Version: Linux version 5.2.0-2-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-21)) #1 SMP Debian 5.2.9-2 (2019-08-21) ** Command line: BOOT_IMAGE=/boot/vmlinuz-5.2.0-2-amd64 root=UUID=a548c59c-2eb5-451a-86a6-50e11befaed1 ro quiet ** Not tainted ** Kernel log: ** Model information [ 1.692152] scsi host6: ahci [ 1.692308] scsi host7: ahci [ 1.692448] ata3: SATA max UDMA/133 abar m4096@0xfc032000 port 0xfc032100 irq 24 [ 1.692457] ata4: SATA max UDMA/133 abar m4096@0xfc032000 port 0xfc032180 irq 24 [ 1.692465] ata5: SATA max UDMA/133 abar m4096@0xfc032000 port 0xfc032200 irq 24 [ 1.692531] ata6: SATA max UDMA/133 abar m4096@0xfc032000 port 0xfc032280 irq 24 [ 1.692539] ata7: SATA max UDMA/133 abar m4096@0xfc032000 port 0xfc032300 irq 24 [ 1.692547] ata8: SATA max UDMA/133 abar m4096@0xfc032000 port 0xfc032380 irq 24 [ 1.692879] PCI Interrupt Link [LNKB] enabled at IRQ 10 [ 1.692934] virtio-pci 0000:00:06.0: virtio_pci: leaving for legacy driver [ 1.693926] virtio-pci 0000:00:07.0: virtio_pci: leaving for legacy driver [ 1.697127] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) [ 1.697394] PCI Interrupt Link [LNKA] enabled at IRQ 11 [ 1.700614] 8139cp 0000:00:05.0 eth0: RTL-8139C+ at 0x(____ptrval____), 52:54:00:88:e3:90, IRQ 11 [ 1.703679] 8139too: 8139too Fast Ethernet driver 0.9.28 [ 1.708829] ACPI: bus type USB registered [ 1.708856] usbcore: registered new interface driver usbfs [ 1.708864] usbcore: registered new interface driver hub [ 1.708901] usbcore: registered new device driver usb [ 1.714140] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.717706] uhci_hcd: USB Universal Host Controller Interface driver [ 1.717935] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3 [ 1.718850] uhci_hcd 0000:00:01.2: UHCI Host Controller [ 1.718857] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1 [ 1.718881] uhci_hcd 0000:00:01.2: detected 2 ports [ 1.718994] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c140 [ 1.719130] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.02 [ 1.719131] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.719132] usb usb1: Product: UHCI Host Controller [ 1.719133] usb usb1: Manufacturer: Linux 5.2.0-2-amd64 uhci_hcd [ 1.719134] usb usb1: SerialNumber: 0000:00:01.2 [ 1.719224] hub 1-0:1.0: USB hub found [ 1.719231] hub 1-0:1.0: 2 ports detected [ 1.719980] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2 [ 1.769811] 8139cp 0000:00:05.0 ens5: renamed from eth0 [ 1.772491] virtio_blk virtio2: [vda] 41943040 512-byte logical blocks (21.5 GB/20.0 GiB) [ 1.773342] vda: vda1 vda2 < vda5 > [ 1.850666] ata2.01: NODEV after polling detection [ 1.851145] ata2.00: ATAPI: QEMU DVD-ROM, 1.1.0, max UDMA/100 [ 1.853302] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 1.1. PQ: 0 ANSI: 5 [ 2.007014] ata3: SATA link down (SStatus 0 SControl 300) [ 2.007259] ata7: SATA link down (SStatus 0 SControl 300) [ 2.010040] ata5: SATA link down (SStatus 0 SControl 300) [ 2.010273] ata4: SATA link down (SStatus 0 SControl 300) [ 2.010509] ata6: SATA link down (SStatus 0 SControl 300) [ 2.010766] ata8: SATA link down (SStatus 0 SControl 300) [ 2.050873] usb 1-1: new full-speed USB device number 2 using uhci_hcd [ 2.066596] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray [ 2.066600] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 2.067790] sr 1:0:0:0: Attached scsi CD-ROM sr0 [ 2.245049] usb 1-1: New USB device found, idVendor=0409, idProduct=55aa, bcdDevice= 1.01 [ 2.245051] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2.245053] usb 1-1: Product: QEMU USB Hub [ 2.245055] usb 1-1: Manufacturer: QEMU [ 2.245056] usb 1-1: SerialNumber: 314159-0000:00:01.2-1 [ 2.247134] hub 1-1:1.0: USB hub found [ 2.248097] hub 1-1:1.0: 8 ports detected [ 2.374200] PM: Image not found (code -22) [ 2.461671] random: fast init done [ 2.550868] usb 1-1.1: new full-speed USB device number 3 using uhci_hcd [ 2.610429] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null) [ 2.699975] usb 1-1.1: New USB device found, idVendor=0627, idProduct=0001, bcdDevice= 0.00 [ 2.699978] usb 1-1.1: New USB device strings: Mfr=1, Product=3, SerialNumber=5 [ 2.699980] usb 1-1.1: Product: QEMU USB Tablet [ 2.699981] usb 1-1.1: Manufacturer: QEMU [ 2.699982] usb 1-1.1: SerialNumber: 42 [ 2.777442] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist. [ 2.842635] systemd[1]: Inserted module 'autofs4' [ 2.868199] systemd[1]: systemd 242 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid) [ 2.868284] systemd[1]: Detected virtualization kvm. [ 2.868305] systemd[1]: Detected architecture x86-64. [ 2.877819] systemd[1]: Set hostname to <debian>. [ 2.878913] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument [ 3.149021] random: systemd: uninitialized urandom read (16 bytes read) [ 3.149050] systemd[1]: Reached target Remote File Systems. [ 3.149321] random: systemd: uninitialized urandom read (16 bytes read) [ 3.149549] systemd[1]: Listening on Journal Audit Socket. [ 3.149578] random: systemd: uninitialized urandom read (16 bytes read) [ 3.149812] systemd[1]: Listening on Syslog Socket. [ 3.150096] systemd[1]: Listening on fsck to fsckd communication Socket. [ 3.153145] systemd[1]: Created slice system-getty.slice. [ 3.333273] EXT4-fs (vda1): re-mounted. Opts: errors=remount-ro [ 3.761893] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input4 [ 3.761946] ACPI: Power Button [PWRF] [ 3.873637] sr 1:0:0:0: Attached scsi generic sg0 type 5 [ 3.930395] input: PC Speaker as /devices/platform/pcspkr/input/input5 [ 3.979186] hidraw: raw HID events driver (C) Jiri Kosina [ 4.067012] usbcore: registered new interface driver usbhid [ 4.067014] usbhid: USB HID core driver [ 4.180758] [drm:qxl_pci_probe [qxl]] *ERROR* qxl too old, doesn't support client_monitors_config, use xf86-video-qxl in user mode [ 4.180762] qxl: probe of 0000:00:02.0 failed with error -22 [ 4.194210] input: QEMU QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-1/1-1.1/1-1.1:1.0/0003:0627:0001.0001/input/input6 [ 4.194324] hid-generic 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU QEMU USB Tablet] on usb-0000:00:01.2-1.1/input0 [ 4.284599] audit: type=1400 audit(1568318051.420:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=281 comm="apparmor_parser" [ 4.285345] audit: type=1400 audit(1568318051.420:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=282 comm="apparmor_parser" [ 4.285347] audit: type=1400 audit(1568318051.420:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=282 comm="apparmor_parser" [ 4.635785] systemd-journald[217]: Received request to flush runtime journal from PID 1 [ 4.730211] 8139cp 0000:00:05.0 ens5: link up, 100Mbps, full-duplex, lpa 0x05E1 [ 45.711074] random: crng init done [ 45.711089] random: 7 urandom warning(s) missed due to ratelimiting sys_vendor: Bochs product_name: Bochs product_version: chassis_vendor: Bochs chassis_version: bios_vendor: Bochs bios_version: Bochs ** Loaded modules: hid_generic qxl ttm drm_kms_helper usbhid drm hid joydev pcspkr virtio_balloon virtio_console serio_raw sg evdev button ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic sr_mod cdrom ata_generic virtio_blk uhci_hcd ehci_hcd psmouse usbcore 8139too 8139cp mii virtio_pci virtio_ring virtio ahci libahci ata_piix i2c_piix4 libata usb_common scsi_mod floppy ** 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] 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- 00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] [8086:7010] (prog-if 80 [ISA Compatibility mode-only controller, supports bus mastering]) 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 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 c1e0 [size=16] Kernel driver in use: ata_piix Kernel modules: ata_piix, ata_generic 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] 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 D routed to IRQ 11 Region 4: I/O ports at c140 [size=32] Kernel driver in use: uhci_hcd Kernel modules: 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] 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- Interrupt: pin A routed to IRQ 9 Kernel driver in use: piix4_smbus Kernel modules: i2c_piix4 00:02.0 VGA compatible controller [0300]: Red Hat, Inc. QXL paravirtual graphic card [1b36:0100] (rev 03) (prog-if 00 [VGA controller]) Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100] 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- Interrupt: pin A routed to IRQ 10 Region 0: Memory at f4000000 (32-bit, non-prefetchable) [size=64M] Region 1: Memory at f8000000 (32-bit, non-prefetchable) [size=64M] Region 2: Memory at fc030000 (32-bit, non-prefetchable) [size=8K] Region 3: I/O ports at c160 [size=32] Expansion ROM at 000c0000 [disabled] [size=128K] Kernel modules: qxl 00:03.0 SATA controller [0106]: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] [8086:2922] (rev 02) (prog-if 01 [AHCI 1.0]) 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 24 Region 4: I/O ports at c180 [size=32] Region 5: Memory at fc032000 (32-bit, non-prefetchable) [size=4K] Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+ Address: 00000000fee01004 Data: 4024 Capabilities: [a8] SATA HBA v1.0 BAR4 Offset=00000004 Kernel driver in use: ahci Kernel modules: ahci 00:04.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon [1af4:1002] Subsystem: Red Hat, Inc. Virtio memory balloon [1af4:0005] 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 11 Region 0: I/O ports at c1a0 [size=32] Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:05.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 20) Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100] 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, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 11 Region 0: I/O ports at c000 [size=256] Region 1: Memory at fc033000 (32-bit, non-prefetchable) [size=256] Expansion ROM at fc000000 [disabled] [size=128K] Kernel driver in use: 8139cp Kernel modules: 8139cp, 8139too 00:06.0 Communication controller [0780]: Red Hat, Inc. Virtio console [1af4:1003] Subsystem: Red Hat, Inc. Virtio console [1af4:0003] Physical Slot: 6 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 c1c0 [size=32] Region 1: Memory at fc034000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] MSI-X: Enable+ Count=32 Masked- Vector table: BAR=1 offset=00000000 PBA: BAR=1 offset=00000800 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:07.0 SCSI storage controller [0100]: Red Hat, Inc. Virtio block device [1af4:1001] Subsystem: Red Hat, Inc. Virtio block device [1af4:0002] Physical Slot: 7 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 c100 [size=64] Region 1: Memory at fc035000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] MSI-X: Enable+ Count=2 Masked- Vector table: BAR=1 offset=00000000 PBA: BAR=1 offset=00000800 Kernel driver in use: virtio-pci Kernel modules: virtio_pci ** USB devices: Bus 001 Device 003: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Hub Bus 001 Device 002: ID 0409:55aa NEC Corp. Hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.2.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages linux-image-5.2.0-2-amd64 depends on: ii initramfs-tools [linux-initramfs-tool] 0.135 ii kmod 26-1 ii linux-base 4.6 Versions of packages linux-image-5.2.0-2-amd64 recommends: ii apparmor 2.13.3-5 ii firmware-linux-free 3.4 Versions of packages linux-image-5.2.0-2-amd64 suggests: pn debian-kernel-handbook <none> ii grub-pc 2.04-3 pn linux-doc-5.2 <none> Versions of packages linux-image-5.2.0-2-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