Apparmor crashes GPU acceleration in Firefox 120
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
$ apt-cache policy apparmor
apparmor:
Installed: 3.0.4-2ubuntu2.3
Candidate: 3.0.4-2ubuntu2.3
Version table:
*** 3.0.4-2ubuntu2.3 500 (phased 20%)
500 http://
100 /var/lib/
3.0.4-2ubuntu2 500
500 http://
$ apt-cache policy firefox
firefox:
Installed: 120.0+build2-
Candidate: 120.0+build2-
Version table:
1:
500 http://
*** 120.0+build2-
1001 https:/
100 /var/lib/
$ apt-cache policy libglx-mesa0
libglx-mesa0:
Installed: 23.0.4-
Candidate: 23.0.4-
Version table:
*** 23.0.4-
500 http://
100 /var/lib/
22.
500 http://
Firefox Apparmor profile seems out of date and needs extra permissions.
The issue started happening in Firefox version 120 after an upgrade from 119.0.1.
I do see the lots of DENIED Apparmor errors before the freeze/crash:
AVC apparmor="DENIED" operation="open" class="file" profile="firefox" name="/
AVC apparmor="DENIED" operation="open" class="file" profile="firefox" name="/
AVC apparmor="DENIED" operation="open" class="file" profile="firefox" name="/
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen
Adding the following the following permissions to /etc/apparmor.
/sys/
@{PROC}
@{PROC}
Disabling the firefox profile also mitigates the issue. It seems the profile needs an update to include permissions required by Firefox 120.
Status changed to 'Confirmed' because the bug affects multiple users.