System unstable, kernel ring buffer flooded with "BUG: Bad page state in process swapper/0"

Bug #2056706 reported by Ari Sovijärvi
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After upgrading a homelab 24.04 test machine from 6.6 to 6.8 kernel that was recently introduced, the test machine started flooding the terminal with following messages:

[ 1877.712068] BUG: Bad page state in process swapper/0 pfn:58919

The process name varies and appears to be whatever is currently doing something. I installed a fresh up to date copy to see if this could be replicated elsewhere and the outcome is the same. Both of the machines are VMs running under Xen with XCP-ng, although unsure if it's related.

The issue produces a notable amount of syslog entries. If left running, the system will eventually go into a state where processes get stuck and do not react to systemd control, even when there's no notable load, no memory pressure nor is the disk space low.

Booted back to 6.6 kernel the issue no longer happens.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-6.8.0-11-generic 6.8.0-11.11
ProcVersionSignature: Ubuntu 6.8.0-11.11-generic 6.8.0-rc4
Uname: Linux 6.8.0-11-generic x86_64
AlsaDevices:
 total 0
 crw-rw----+ 1 root audio 116, 1 Mar 11 00:31 seq
 crw-rw----+ 1 root audio 116, 33 Mar 11 00:31 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/timer', '/dev/snd/seq'] failed with exit code 1:
CRDA: N/A
CasperMD5CheckResult: pass
Date: Mon Mar 11 00:36:24 2024
InstallationDate: Installed on 2024-03-11 (0 days ago)
InstallationMedia: Ubuntu-Server 24.04 LTS "Noble Numbat" - Daily amd64 (20240222)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb:
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU Tablet
Lsusb-t:
 /: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=uhci_hcd/2p, 12M
     |__ Port 002: Dev 002, If 0, Class=Human Interface Device, Driver=usbhid, 12M
MachineType: Xen HVM domU
PciMultimedia:

ProcEnviron:
 LANG=en_US.UTF-8
 LC_CTYPE=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
ProcFB: 0 bochs-drmdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.8.0-11-generic root=UUID=97002c6c-ab61-49d5-b937-891e4e8da514 ro
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 linux-restricted-modules-6.8.0-11-generic N/A
 linux-backports-modules-6.8.0-11-generic N/A
 linux-firmware 20240202.git36777504-0ubuntu1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/31/2024
dmi.bios.release: 4.13
dmi.bios.vendor: Xen
dmi.bios.version: 4.13
dmi.chassis.type: 1
dmi.chassis.vendor: Xen
dmi.modalias: dmi:bvnXen:bvr4.13:bd01/31/2024:br4.13:svnXen:pnHVMdomU:pvr4.13:cvnXen:ct1:cvr:sku:
dmi.product.name: HVM domU
dmi.product.version: 4.13
dmi.sys.vendor: Xen

Revision history for this message
Ari Sovijärvi (apz-fi) wrote :
Revision history for this message
Eugene San (eugenesan) wrote :

I did not have the chance to see the logs but I can confirm that 6.8.0-11 is extremely unstable.
It randomly but surely hangs under load.

It usually hangs at the beginning of default Ubuntu 24.04 ISO install on both KVM and Virtual box.
On real H/W (Dell XPS13) it hangs under load (nothing in the logs).

Sometime the UI freezes and mouse cursor continues to react, sometimes it hardlocks with 100% CPU usage on Hypervisors.

I am still baffled why Canonical decided to go with 6.8 for LTS...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Morten Jakobsen (jakeobsen) wrote :

One of my VM's is affected too, running under Xen with XCP-ng.

Revision history for this message
Jake Commons (jakecommons) wrote (last edit ):

All of my VMs running 6.8 under Xen with XCP-ng are impacted. Also affects non-Ubuntu distros with vanilla 6.8.1 kernels. 6.7.9 runs fine.

Revision history for this message
Eugene San (eugenesan) wrote :

Update:
Since release of 6.8.0-20.20 real machine (XPS13) seems to be working fine.
VMs are still hanging.

Short testing showed that the issue is caused by RAM starvation.
Booting LiveCD or Desktop should consume ~1.2GB but under 6.8, it starts with ~2GB usage and keeps going up.
Maybe it is related to filesystem subsystem while using ISO9660/OverlayFS. Once the system hangs it keeps reading from optical device.

The issue with LiveCD install can be mitigated by increasing VM's memory to at least 3GB or more.

P.S.
The issue might have been fixed with 6.8.0-20.20 but we'll have to wait and see since ISOs with this kernel are still not available.

Revision history for this message
Jake Commons (jakecommons) wrote :
Revision history for this message
Leonidas Spyropoulos (artafinde) wrote :
Revision history for this message
Anders Bystrup (redakula) wrote :

This bug is still present in the 24.04 Beta with 6.8.0-22 kernel.

VM is unusable on Xen/XCP-NG.

Will the fix be in the final relase on the 25th?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 6.8.0-31.31

---------------
linux (6.8.0-31.31) noble; urgency=medium

  * noble/linux: 6.8.0-31.31 -proposed tracker (LP: #2062933)

  * Packaging resync (LP: #1786013)
    - [Packaging] debian.master/dkms-versions -- update from kernel-versions
      (main/d2024.04.04)

 -- Andrea Righi <email address hidden> Fri, 19 Apr 2024 23:46:38 +0200

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.