Public bug reported:

A kernel BUG at lib/maple_tree.c:511 was triggered during normal desktop use on 
an ASUS ROG Zephyrus G16 (2024) running kernel 6.17.0-19-generic with the 
NVIDIA open kernel module
   (nvidia-driver-590-open 590.48.01) in PRIME on-demand mode.                  
                                                                                
                     
                                                                                
                                                                                
                     
  The crash cascaded into swap entry corruption and systemd-journald failure. 
Updating the Ubuntu NVIDIA driver package from revision -0ubuntu0.24.04.1 to 
-0ubuntu0.24.04.4 resolved
   the issue (2 consecutive clean boots confirmed after update).
                                                                                
                                                                                
                     
  == Hardware ==                                                                
                                                                                
                     
   
  Machine:   ASUS ROG Zephyrus G16 (2024)                                       
                                                                                
                     
  CPU:       Intel Core i7-13620H (13th Gen, Raptor Lake-P, 16 threads)
  iGPU:      Intel Raptor Lake-P UHD Graphics  [PCI 0000:00:02.0, rev 04]  
driver: xe                                                                      
                          
  dGPU:      NVIDIA GeForce RTX 4060 Max-Q / Mobile (AD107M)  [PCI 
0000:01:00.0, rev a1]                                                           
                                  
  GPU mode:  on-demand (PRIME hybrid graphics)                                  
                                                                                
                     
  RAM:       32 GB                                                              
                                                                                
                     
                                                                                
                                                                                
                     
  == Software at time of crash ==                                               
                                                                                
                     
                  
  OS:        Ubuntu 24.04.4 LTS (Noble Numbat)                                  
                                                                                
                     
  Kernel:    6.17.0-19-generic  (package: 6.17.0-19.19~24.04.2)
  NVIDIA:    nvidia-driver-590-open 590.48.01-0ubuntu0.24.04.1  (open kernel 
module, DKMS)                                                                   
                        
                                                                                
                                                                                
                     
  Kernel boot parameters:                                                       
                                                                                
                     
    quiet splash pcie_aspm=off acpi_osi='Windows 2022' iommu=soft reboot=pci 
nowatchdog intel_idle.max_cstate=1                                              
                        
                                                                                
                                                                                
                     
  == Kernel messages ==
                                                                                
                                                                                
                     
  [Thu Mar 26 19:39:58 2026] kernel BUG at lib/maple_tree.c:511!                
                                                                                
                     
   
  Cascading swap corruption starting ~10 minutes later:                         
                                                                                
                     
                  
  [Thu Mar 26 19:49:52 2026] _swap_info_get: Bad swap offset entry 
3ffffffefffff                                                                   
                                  
  [Thu Mar 26 19:50:01 2026] _swap_info_get: Bad swap offset entry 3ffffffefffff
  ... (repeated ~30 times until 20:01:02)                                       
                                                                                
                     
  [Thu Mar 26 19:56:20 2026] systemd[1]: Failed to start 
systemd-journald.service - Journal Service.                                     
                                            
                                                                                
                                                                                
                     
  Note: The full call trace was not captured. systemd-journald crashed 16 
minutes after the initial BUG before the journal could be persisted. kdump was 
not enabled at the time.    
                                                                                
                                                                                
                     
  == Timeline ==                                                                
                                                                                
                     
                  
  19:39:58  kernel BUG at lib/maple_tree.c:511
  19:49:52  Bad swap offset entries begin (x30+ over next ~12 min)
  19:56:20  systemd-journald fails to start                                     
                                                                                
                     
  ~20:10    Manual reboot. Driver updated to 590.48.01-0ubuntu0.24.04.4
  20:20     First boot post-fix: CLEAN (no BUG, no swap errors)                 
                                                                                
                     
  21:03     Second boot post-fix: CLEAN                                         
                                                                                
                     
                                                                                
                                                                                
                     
  == Analysis ==                                                                
                                                                                
                     
                                                                                
                                                                                
                     
  lib/maple_tree.c is the kernel's VMA (Virtual Memory Area) management 
subsystem, which replaced the red-black tree in recent kernels. The NVIDIA open 
kernel module interacts      
  directly with VMAs when mapping/unmapping GPU memory.
                                                                                
                                                                                
                     
  The 590.48.01-0ubuntu0.24.04.1 driver likely used a VMA manipulation code 
path that violated a maple tree invariant under kernel 6.17, triggering the 
BUG_ON at line 511. The      
  corrupted VMA state then propagated to swap entry management, producing 
invalid swap offsets (0x3ffffffefffff is far outside any valid range for an 8GB 
swap file).
                                                                                
                                                                                
                     
  == Fix ==       

  sudo apt update                                                               
                                                                                
                     
  sudo apt install --only-upgrade nvidia-driver-590-open nvidia-dkms-590-open
  # upgrades from 590.48.01-0ubuntu0.24.04.1 to 590.48.01-0ubuntu0.24.04.4      
                                                                                
                     
  reboot                                                                        
                                                                                
                     
                                                                                
                                                                                
                     
  == Additional notes ==                                                        
                                                                                
                     
                  
  - ACPI errors (AE_ALREADY_EXISTS on USB hub nodes, AE_NOT_FOUND on \_TZ.THRM) 
are present but are chronic/benign ASUS BIOS issues, unrelated to this crash.   
                     
  - nvidia-persistenced fails at boot in on-demand mode (expected behavior).
  - This bug may affect other users with Intel+NVIDIA hybrid laptops running 
Ubuntu 24.04 with kernel 6.17 and nvidia-open module builds prior to the .4 
revision.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: nvidia-driver-590-open 590.48.01-0ubuntu0.24.04.4
ProcVersionSignature: Ubuntu 6.17.0-19.19~24.04.2-generic 6.17.13
Uname: Linux 6.17.0-19-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 26 22:02:47 2026
InstallationDate: Installed on 2026-03-04 (22 days ago)
InstallationMedia: Ubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 (20260210)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: nvidia-graphics-drivers-590
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: nvidia-graphics-drivers-590 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146498

Title:
  kernel BUG at lib/maple_tree.c:511 with nvidia-driver-590-open
  590.48.01 on kernel 6.17.0-19-generic, cascading swap corruption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-590/+bug/2146498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to