Open Bug 2099286 Opened 1 day ago Updated 21 minutes ago

[Regression] Severe kernel memory leak (kmalloc) exhausting 100% RAM in Firefox 161 Flatpak on SteamOS (AMD GPU)

Categories

(Core :: Widget: Gtk, defect)

Firefox 161
defect

Tracking

()

UNCONFIRMED

People

(Reporter: cristobalfuentesr, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file Archivo de texto.txt —

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:160.0) Gecko/20100101 Firefox/160.0

Steps to reproduce

  1. Update the official Mozilla Firefox Flatpak (org.mozilla.firefox from Flathub) from version 160.0.1 to 161 on a Steam Deck (SteamOS Stable, fully up to date, AMD RDNA 2 APU / amdgpu).
  2. Open Firefox in Desktop Mode and browse / watch media normally.
  3. Monitor total system RAM (free -h), application usage (Mission Center), and kernel slab allocation (sudo slabtop -o).

Actual results

System RAM steadily climbs to 100% (16 GB) until OOM/page reclaim triggers (Node 0 active_anon warnings in dmesg).

Crucially, this memory is leaked at the kernel slab level (kmalloc-*):

  • slabtop shows kmalloc-16, kmalloc-192, and kmalloc-512 at 95–99% utilization.
  • Firefox processes themselves do not show high RAM usage in system monitors.
  • Closing Firefox completely does not free the leaked memory; a full system reboot is required to recover RAM.

Expected results

Memory usage should remain stable and be properly released upon closing Firefox, as observed in version 160.0.1.

Note: Downgrading the Flatpak back to 160.0.1 completely resolves the issue (the system stays stable with ~9.8 GB of free RAM under the exact same workload).

The Bugbug bot thinks this bug should belong to the 'Core::Performance: Memory' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Performance: Memory
Product: Firefox → Core

Thanks for the report. This looks like bug 2098924, where Firefox 161's change to wl_shm buffers lets KWin import them through a path in the amdgpu driver that leaks kernel memory. That path only applies on Wayland, so could you run echo $XDG_SESSION_TYPE in Desktop Mode and tell us the result? Firefox 161.0.1 reverts the change; once it reaches Flathub, please let us know whether the leak stops.

Flags: needinfo?(cristobalfuentesr)
See Also: → 2087615, 2098924

Moving component to Widget: Gtk to align with the regressor 2087615.

Component: Performance: Memory → Widget: Gtk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: