[Desktop-packages] [Bug 2018439] Re: Apparmor crashes GPU acceleration
Hi Daniel! Thanks for testing and making sure. As you were able to figure out, the AppArmor parser accepts both include and #includes, although we are deprecating the latter. Since the AppArmor policy is distributed by the Mozilla Team's firefox, they need to add this permission to their AppArmor profile in the package. ** Changed in: apparmor (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2018439 Title: Apparmor crashes GPU acceleration Status in apparmor package in Ubuntu: Invalid Status in firefox package in Ubuntu: Confirmed Bug description: Apparmor crashes GPU acceleration Firefox GPU acceleration started crashing after updating from Ubuntu 22.10 to 23.04. $ lsb_release -rd No LSB modules are available. Description:Ubuntu 23.04 Release:23.04 $ apt-cache policy firefox firefox: Installed: 113.0+build1-0ubuntu0.23.04.1~mt1 Candidate: 113.0+build1-0ubuntu0.23.04.1~mt1 Version table: 1:1snap1-0ubuntu3 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages *** 113.0+build1-0ubuntu0.23.04.1~mt1 999 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy libglx-mesa0 libglx-mesa0: Installed: 23.0.3~kisak1~k Candidate: 23.0.3~kisak1~k Version table: *** 23.0.3~kisak1~k 500 500 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status 23.0.2-1ubuntu1 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages $ apt-cache policy apparmor apparmor: Installed: 3.0.8-1ubuntu2 Candidate: 3.0.8-1ubuntu2 Version table: *** 3.0.8-1ubuntu2 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status # Expected behavior Firefox should not crash in WebGL aquarium and continue to work properly like on 22.10. It should successfully use my GPU to make scrolling smooths and save battery when watching videos. # Actual behavior 1. Startup takes a second or two longer than usual 2. Typing in the address bar is slow 3. Scrolling takes 400% CPU usage 4. Scrolling stutters 5. VAAPI on https://www.w3schools.com/html/html5_video.asp is no longer used as shown in intel_gpu_top 6. Fans start spinning and battery goes down fast 7. glxtest failures had to be manually deleted in about:config 8. Only a few fish in WebGL aquarium (https://webglsamples.org/aquarium/aquarium.html) load before Firefox force-closes with the message: "Mozilla Crash Reporter Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a crash report. Details: The application did not leave a crash dump file. Close" 9. The following lines are relevant in dmesg after clearing it: [22157.695580] kauditd_printk_skb: 6 callbacks suppressed [22157.695582] audit: type=1400 audit(1683153440.994:2583): apparmor="DENIED" operation="capable" class="cap" profile="firefox" pid=15898 comm="firefox" capability=21 capname="sys_admin" [22157.739641] audit: type=1400 audit(1683153441.038:2584): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739647] audit: type=1400 audit(1683153441.038:2585): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739719] audit: type=1400 audit(1683153441.038:2586): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739729] audit: type=1400 audit(1683153441.038:2587): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.769407] audit: type=1400 audit(1683153441.070:2588): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/oom_score_adj" pid=15898 comm="firefox" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000 [22157.773042] audit: type=1400 audit(1683153441.074:2589): apparmor="DENIED" operation="file_mmap" class="file" profile="firefox//lsb_release" name="/usr/bin/dash" pid=15934 comm="lsb_release" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.974718] audit: type=1400 audit(1683153441.274:2590): apparmor="DENIED"
[Desktop-packages] [Bug 2018439] Re: Apparmor crashes GPU acceleration
Hi georgiag, thank you for your command suggestion. Yes, it does fix my issue. I had a bunch of tabs open for months and finally closed them. After updating Firefox and not restarting today, it seems that the postinst autoloaded the AppArmor profile despite apparmor.service being disabled, so I had to manually aa-teardown. I then tried to reproduce both with and without your line added. What was frustrating was that the broken behavior failed to appear in these cases: 1. When I added exactly 1 hash to try to comment out your line: s/include/#include/ . Turns out you need to add two hashes ( s/include/##include/ ) for the comment to work. vim confused me as it showed it as a green comment anyway 2. When I did mv local/usr.bin.firefox local/bak.usr.bin.firefox the profile did not load Anyway, when I fell back to adding and removing your entire line manually, I could consistently confirm that your solution works. I feel safer today now that I can reenable apparmor.service . -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2018439 Title: Apparmor crashes GPU acceleration Status in apparmor package in Ubuntu: Confirmed Status in firefox package in Ubuntu: Confirmed Bug description: Apparmor crashes GPU acceleration Firefox GPU acceleration started crashing after updating from Ubuntu 22.10 to 23.04. $ lsb_release -rd No LSB modules are available. Description:Ubuntu 23.04 Release:23.04 $ apt-cache policy firefox firefox: Installed: 113.0+build1-0ubuntu0.23.04.1~mt1 Candidate: 113.0+build1-0ubuntu0.23.04.1~mt1 Version table: 1:1snap1-0ubuntu3 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages *** 113.0+build1-0ubuntu0.23.04.1~mt1 999 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy libglx-mesa0 libglx-mesa0: Installed: 23.0.3~kisak1~k Candidate: 23.0.3~kisak1~k Version table: *** 23.0.3~kisak1~k 500 500 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status 23.0.2-1ubuntu1 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages $ apt-cache policy apparmor apparmor: Installed: 3.0.8-1ubuntu2 Candidate: 3.0.8-1ubuntu2 Version table: *** 3.0.8-1ubuntu2 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status # Expected behavior Firefox should not crash in WebGL aquarium and continue to work properly like on 22.10. It should successfully use my GPU to make scrolling smooths and save battery when watching videos. # Actual behavior 1. Startup takes a second or two longer than usual 2. Typing in the address bar is slow 3. Scrolling takes 400% CPU usage 4. Scrolling stutters 5. VAAPI on https://www.w3schools.com/html/html5_video.asp is no longer used as shown in intel_gpu_top 6. Fans start spinning and battery goes down fast 7. glxtest failures had to be manually deleted in about:config 8. Only a few fish in WebGL aquarium (https://webglsamples.org/aquarium/aquarium.html) load before Firefox force-closes with the message: "Mozilla Crash Reporter Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a crash report. Details: The application did not leave a crash dump file. Close" 9. The following lines are relevant in dmesg after clearing it: [22157.695580] kauditd_printk_skb: 6 callbacks suppressed [22157.695582] audit: type=1400 audit(1683153440.994:2583): apparmor="DENIED" operation="capable" class="cap" profile="firefox" pid=15898 comm="firefox" capability=21 capname="sys_admin" [22157.739641] audit: type=1400 audit(1683153441.038:2584): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739647] audit: type=1400 audit(1683153441.038:2585): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739719] audit: type=1400 audit(1683153441.038:2586): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739729] audit: type=1400 audit(1683153441.038:2587): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r"
[Desktop-packages] [Bug 2018439] Re: Apparmor crashes GPU acceleration
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: firefox (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2018439 Title: Apparmor crashes GPU acceleration Status in apparmor package in Ubuntu: Confirmed Status in firefox package in Ubuntu: Confirmed Bug description: Apparmor crashes GPU acceleration Firefox GPU acceleration started crashing after updating from Ubuntu 22.10 to 23.04. $ lsb_release -rd No LSB modules are available. Description:Ubuntu 23.04 Release:23.04 $ apt-cache policy firefox firefox: Installed: 113.0+build1-0ubuntu0.23.04.1~mt1 Candidate: 113.0+build1-0ubuntu0.23.04.1~mt1 Version table: 1:1snap1-0ubuntu3 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages *** 113.0+build1-0ubuntu0.23.04.1~mt1 999 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy libglx-mesa0 libglx-mesa0: Installed: 23.0.3~kisak1~k Candidate: 23.0.3~kisak1~k Version table: *** 23.0.3~kisak1~k 500 500 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status 23.0.2-1ubuntu1 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages $ apt-cache policy apparmor apparmor: Installed: 3.0.8-1ubuntu2 Candidate: 3.0.8-1ubuntu2 Version table: *** 3.0.8-1ubuntu2 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status # Expected behavior Firefox should not crash in WebGL aquarium and continue to work properly like on 22.10. It should successfully use my GPU to make scrolling smooths and save battery when watching videos. # Actual behavior 1. Startup takes a second or two longer than usual 2. Typing in the address bar is slow 3. Scrolling takes 400% CPU usage 4. Scrolling stutters 5. VAAPI on https://www.w3schools.com/html/html5_video.asp is no longer used as shown in intel_gpu_top 6. Fans start spinning and battery goes down fast 7. glxtest failures had to be manually deleted in about:config 8. Only a few fish in WebGL aquarium (https://webglsamples.org/aquarium/aquarium.html) load before Firefox force-closes with the message: "Mozilla Crash Reporter Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a crash report. Details: The application did not leave a crash dump file. Close" 9. The following lines are relevant in dmesg after clearing it: [22157.695580] kauditd_printk_skb: 6 callbacks suppressed [22157.695582] audit: type=1400 audit(1683153440.994:2583): apparmor="DENIED" operation="capable" class="cap" profile="firefox" pid=15898 comm="firefox" capability=21 capname="sys_admin" [22157.739641] audit: type=1400 audit(1683153441.038:2584): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739647] audit: type=1400 audit(1683153441.038:2585): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739719] audit: type=1400 audit(1683153441.038:2586): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739729] audit: type=1400 audit(1683153441.038:2587): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.769407] audit: type=1400 audit(1683153441.070:2588): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/oom_score_adj" pid=15898 comm="firefox" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000 [22157.773042] audit: type=1400 audit(1683153441.074:2589): apparmor="DENIED" operation="file_mmap" class="file" profile="firefox//lsb_release" name="/usr/bin/dash" pid=15934 comm="lsb_release" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.974718] audit: type=1400 audit(1683153441.274:2590): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/cgroup" pid=15898 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 [22157.996255] audit: type=1400 audit(1683153441.298:2591): apparmor="DENIED" operation="open"
[Desktop-packages] [Bug 2018439] Re: Apparmor crashes GPU acceleration
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: apparmor (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2018439 Title: Apparmor crashes GPU acceleration Status in apparmor package in Ubuntu: Confirmed Status in firefox package in Ubuntu: Confirmed Bug description: Apparmor crashes GPU acceleration Firefox GPU acceleration started crashing after updating from Ubuntu 22.10 to 23.04. $ lsb_release -rd No LSB modules are available. Description:Ubuntu 23.04 Release:23.04 $ apt-cache policy firefox firefox: Installed: 113.0+build1-0ubuntu0.23.04.1~mt1 Candidate: 113.0+build1-0ubuntu0.23.04.1~mt1 Version table: 1:1snap1-0ubuntu3 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages *** 113.0+build1-0ubuntu0.23.04.1~mt1 999 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy libglx-mesa0 libglx-mesa0: Installed: 23.0.3~kisak1~k Candidate: 23.0.3~kisak1~k Version table: *** 23.0.3~kisak1~k 500 500 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status 23.0.2-1ubuntu1 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages $ apt-cache policy apparmor apparmor: Installed: 3.0.8-1ubuntu2 Candidate: 3.0.8-1ubuntu2 Version table: *** 3.0.8-1ubuntu2 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status # Expected behavior Firefox should not crash in WebGL aquarium and continue to work properly like on 22.10. It should successfully use my GPU to make scrolling smooths and save battery when watching videos. # Actual behavior 1. Startup takes a second or two longer than usual 2. Typing in the address bar is slow 3. Scrolling takes 400% CPU usage 4. Scrolling stutters 5. VAAPI on https://www.w3schools.com/html/html5_video.asp is no longer used as shown in intel_gpu_top 6. Fans start spinning and battery goes down fast 7. glxtest failures had to be manually deleted in about:config 8. Only a few fish in WebGL aquarium (https://webglsamples.org/aquarium/aquarium.html) load before Firefox force-closes with the message: "Mozilla Crash Reporter Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a crash report. Details: The application did not leave a crash dump file. Close" 9. The following lines are relevant in dmesg after clearing it: [22157.695580] kauditd_printk_skb: 6 callbacks suppressed [22157.695582] audit: type=1400 audit(1683153440.994:2583): apparmor="DENIED" operation="capable" class="cap" profile="firefox" pid=15898 comm="firefox" capability=21 capname="sys_admin" [22157.739641] audit: type=1400 audit(1683153441.038:2584): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739647] audit: type=1400 audit(1683153441.038:2585): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739719] audit: type=1400 audit(1683153441.038:2586): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739729] audit: type=1400 audit(1683153441.038:2587): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.769407] audit: type=1400 audit(1683153441.070:2588): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/oom_score_adj" pid=15898 comm="firefox" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000 [22157.773042] audit: type=1400 audit(1683153441.074:2589): apparmor="DENIED" operation="file_mmap" class="file" profile="firefox//lsb_release" name="/usr/bin/dash" pid=15934 comm="lsb_release" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.974718] audit: type=1400 audit(1683153441.274:2590): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/cgroup" pid=15898 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 [22157.996255] audit: type=1400 audit(1683153441.298:2591): apparmor="DENIED" operation="open"
[Desktop-packages] [Bug 2018439] Re: Apparmor crashes GPU acceleration
Hi Daniel. Thanks for the report! Could you try the following commands and let me know if they fix the issue? sudo sh -c "echo 'include ' >> /etc/apparmor.d/local/usr.bin.firefox" sudo apparmor_parser -r /etc/apparmor.d/usr.bin.firefox -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2018439 Title: Apparmor crashes GPU acceleration Status in apparmor package in Ubuntu: New Status in firefox package in Ubuntu: New Bug description: Apparmor crashes GPU acceleration Firefox GPU acceleration started crashing after updating from Ubuntu 22.10 to 23.04. $ lsb_release -rd No LSB modules are available. Description:Ubuntu 23.04 Release:23.04 $ apt-cache policy firefox firefox: Installed: 113.0+build1-0ubuntu0.23.04.1~mt1 Candidate: 113.0+build1-0ubuntu0.23.04.1~mt1 Version table: 1:1snap1-0ubuntu3 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages *** 113.0+build1-0ubuntu0.23.04.1~mt1 999 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy libglx-mesa0 libglx-mesa0: Installed: 23.0.3~kisak1~k Candidate: 23.0.3~kisak1~k Version table: *** 23.0.3~kisak1~k 500 500 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status 23.0.2-1ubuntu1 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages $ apt-cache policy apparmor apparmor: Installed: 3.0.8-1ubuntu2 Candidate: 3.0.8-1ubuntu2 Version table: *** 3.0.8-1ubuntu2 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status # Expected behavior Firefox should not crash in WebGL aquarium and continue to work properly like on 22.10. It should successfully use my GPU to make scrolling smooths and save battery when watching videos. # Actual behavior 1. Startup takes a second or two longer than usual 2. Typing in the address bar is slow 3. Scrolling takes 400% CPU usage 4. Scrolling stutters 5. VAAPI on https://www.w3schools.com/html/html5_video.asp is no longer used as shown in intel_gpu_top 6. Fans start spinning and battery goes down fast 7. glxtest failures had to be manually deleted in about:config 8. Only a few fish in WebGL aquarium (https://webglsamples.org/aquarium/aquarium.html) load before Firefox force-closes with the message: "Mozilla Crash Reporter Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a crash report. Details: The application did not leave a crash dump file. Close" 9. The following lines are relevant in dmesg after clearing it: [22157.695580] kauditd_printk_skb: 6 callbacks suppressed [22157.695582] audit: type=1400 audit(1683153440.994:2583): apparmor="DENIED" operation="capable" class="cap" profile="firefox" pid=15898 comm="firefox" capability=21 capname="sys_admin" [22157.739641] audit: type=1400 audit(1683153441.038:2584): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739647] audit: type=1400 audit(1683153441.038:2585): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739719] audit: type=1400 audit(1683153441.038:2586): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739729] audit: type=1400 audit(1683153441.038:2587): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.769407] audit: type=1400 audit(1683153441.070:2588): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/oom_score_adj" pid=15898 comm="firefox" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000 [22157.773042] audit: type=1400 audit(1683153441.074:2589): apparmor="DENIED" operation="file_mmap" class="file" profile="firefox//lsb_release" name="/usr/bin/dash" pid=15934 comm="lsb_release" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.974718] audit: type=1400 audit(1683153441.274:2590): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/cgroup" pid=15898 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[Desktop-packages] [Bug 2018439] Re: Apparmor crashes GPU acceleration
** Also affects: apparmor (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2018439 Title: Apparmor crashes GPU acceleration Status in apparmor package in Ubuntu: New Status in firefox package in Ubuntu: New Bug description: Apparmor crashes GPU acceleration Firefox GPU acceleration started crashing after updating from Ubuntu 22.10 to 23.04. $ lsb_release -rd No LSB modules are available. Description:Ubuntu 23.04 Release:23.04 $ apt-cache policy firefox firefox: Installed: 113.0+build1-0ubuntu0.23.04.1~mt1 Candidate: 113.0+build1-0ubuntu0.23.04.1~mt1 Version table: 1:1snap1-0ubuntu3 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages *** 113.0+build1-0ubuntu0.23.04.1~mt1 999 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy libglx-mesa0 libglx-mesa0: Installed: 23.0.3~kisak1~k Candidate: 23.0.3~kisak1~k Version table: *** 23.0.3~kisak1~k 500 500 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status 23.0.2-1ubuntu1 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages $ apt-cache policy apparmor apparmor: Installed: 3.0.8-1ubuntu2 Candidate: 3.0.8-1ubuntu2 Version table: *** 3.0.8-1ubuntu2 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu lunar/main amd64 Packages 100 /var/lib/dpkg/status # Expected behavior Firefox should not crash in WebGL aquarium and continue to work properly like on 22.10. It should successfully use my GPU to make scrolling smooths and save battery when watching videos. # Actual behavior 1. Startup takes a second or two longer than usual 2. Typing in the address bar is slow 3. Scrolling takes 400% CPU usage 4. Scrolling stutters 5. VAAPI on https://www.w3schools.com/html/html5_video.asp is no longer used as shown in intel_gpu_top 6. Fans start spinning and battery goes down fast 7. glxtest failures had to be manually deleted in about:config 8. Only a few fish in WebGL aquarium (https://webglsamples.org/aquarium/aquarium.html) load before Firefox force-closes with the message: "Mozilla Crash Reporter Firefox had a problem and crashed. Unfortunately, the crash reporter is unable to submit a crash report. Details: The application did not leave a crash dump file. Close" 9. The following lines are relevant in dmesg after clearing it: [22157.695580] kauditd_printk_skb: 6 callbacks suppressed [22157.695582] audit: type=1400 audit(1683153440.994:2583): apparmor="DENIED" operation="capable" class="cap" profile="firefox" pid=15898 comm="firefox" capability=21 capname="sys_admin" [22157.739641] audit: type=1400 audit(1683153441.038:2584): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739647] audit: type=1400 audit(1683153441.038:2585): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739719] audit: type=1400 audit(1683153441.038:2586): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/revision" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.739729] audit: type=1400 audit(1683153441.038:2587): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/sys/devices/pci:00/:00:02.0/config" pid=15901 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.769407] audit: type=1400 audit(1683153441.070:2588): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/oom_score_adj" pid=15898 comm="firefox" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000 [22157.773042] audit: type=1400 audit(1683153441.074:2589): apparmor="DENIED" operation="file_mmap" class="file" profile="firefox//lsb_release" name="/usr/bin/dash" pid=15934 comm="lsb_release" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [22157.974718] audit: type=1400 audit(1683153441.274:2590): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/15898/cgroup" pid=15898 comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 [22157.996255] audit: type=1400 audit(1683153441.298:2591): apparmor="DENIED" operation="open" class="file" profile="firefox"