[Regression] Severe kernel memory leak (kmalloc) exhausting 100% RAM in Firefox 161 Flatpak on SteamOS (AMD GPU)
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: cristobalfuentesr, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
5.86 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:160.0) Gecko/20100101 Firefox/160.0
Steps to reproduce
- Update the official Mozilla Firefox Flatpak (
org.mozilla.firefoxfrom Flathub) from version 160.0.1 to 161 on a Steam Deck (SteamOS Stable, fully up to date, AMD RDNA 2 APU /amdgpu). - Open Firefox in Desktop Mode and browse / watch media normally.
- 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-*):
slabtopshowskmalloc-16,kmalloc-192, andkmalloc-512at 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).
Comment 1•1 day ago
|
||
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.
Comment 2•23 hours ago
|
||
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.
Updated•23 hours ago
|
Comment 3•21 minutes ago
|
||
Moving component to Widget: Gtk to align with the regressor 2087615.
Description
•