AMDGPU 5600U iGPU large memory leak in kernel space triggered by WebGL
Issue was present for multiple kernel versions: 6.5, 6.4, 6.3, 6.2, probably more.
Reproduction:
Google Chrome
WebGL enabled
visit photopea.com
Open multiple PSD files containing multiple layers within Photopea
Close browser
System memory consumption has greatly increased, tools (eg. htop) don't show any of the increase being in userland.
( sanity check of dropping caches via /proc/sys/vm/drop_caches has no effect )
Memory leak appears to have no cap, after opening and closing many PSD files the leak can be grown to over 10GB system memory with no sign of stopping.
Memory is never freed again.
Disabling WebGL in the browser prevents this bug entirely.
Photopea is making WebGL do something to trigger this bug. This is also a potential DDoS vulnerability.
Nothing in any logs that I could find.
cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.5.3_1 root=/dev/mapper/******** ro loglevel=4 consoleblank=180 usbcore.autosuspend=-1 zswap.enabled=0 ipv6.disable=1 init_on_free=1 net.ifnames=0 rd.luks.uuid=******** rd.lvm.vg=****** resume=/dev/********/swap
dmesg: (system boot, sanitized usb peripheral information, leak generates nothing) https://pastebin.com/raw/vXZ8hicU