icedove/gnupg trigger infinite loop related to apparmor
Originally created by @alant on #12243 (Redmine)
I had icedove
using 100% CPU, closed it, then gpg2
is using 100% CPU
too. Logs are flooded by apparmpor
messages:
Feb 16 08:51:35 amnesia audit[26260]: AVC apparmor="DENIED" operation="link" profile="icedove//gpg" name="/home/amnesia/.gnupg/gnupg_spawn_agent_sentinel.lock" pid=26260 comm="gpg2" requested_mask="l" denied_mask="l" suid=1000 ouid=1000 target="/home/amnesia/.gnupg/.#lk0x0000556d1b224ba0.amnesia.26260"
Feb 16 08:51:35 amnesia audit[26260]: AVC apparmor="DENIED" operation="link" profile="icedove//gpg" name="/homeamnesia/.gnupg/gnupg_spawn_agent_sentinel.lock" pid=26260 comm="gpg2" requested_mask="l" denied_mask="l" fsuid=1000 ouid=1000 target="/home/amnesia/.gnupg/.#lk0x0000556d1b224ba0.amnesia.26260"
Feb 16 08:51:35 amnesia audit[26260]: AVC apparmor="DENIED" operation="link" profile="icedove//gpg" name="/homeamnesia/.gnupg/gnupg_spawn_agent_sentinel.lock" pid=26260 comm="gpg2" requested_mask="l" denied_mask="l" fsuid=1000 ouid=1000 target="/home/amnesia/.gnupg/.#lk0x0000556d1b224ba0.amnesia.26260"
[…]
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: Deep recursion on anonymous subroutine at /usr/lib/x86_64-linux-gnu/perl5/5.24/Glib/Object/Introspection.pm line 67, <DATA> line 1.
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: *** unhandled exception in callback:
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: *** Deep recursion on subroutine "main::handle_clipboard_owner_change" at /usr/bin/openpgp-applet line 219, <DATA> line 1.
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: *** ignoring at /usr/lib/x86_64-linux-gnu/perl5/5.24/Glib/Object/Introspection.pm line 67, <DATA> line 1.
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: Deep recursion on anonymous subroutine at /usr/lib/x86_64-linux-gnu/perl5/5.24/Glib/Object/Introspection.pm line 67, <DATA> line 1.
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: *** unhandled exception in callback:
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: *** Deep recursion on subroutine "main::handle_clipboard_owner_change" at /usr/bin/openpgp-applet line 219, <DATA> line 1.
Feb 16 08:52:06 amnesia openpgp-applet.desktop[3068]: *** ignoring at /usr/lib/x86_64-linux-gnu/perl5/5.24/Glib/Object/Introspection.pm line 67, <DATA> line 1.
[…]
Feb 16 08:52:11 amnesia kernel: audit_printk_skb: 193584 callbacks suppressed
Feb 16 08:52:11 amnesia kernel: audit: type=1400 audit(1487235131.128:6407132): apparmor="DENIED" operation="link" profile="icedove//gpg" name="/home/amnesia/.gnupg/gnupg_spawn_agent_sentinel.lock" pid=25520 comm="gpg2" requested_mask="l" denied_mask="l" fsuid=1000 ouid=1000 target="/home/amnesia/.gnupg/.#lk0x000055cc80cb0120.amnesia.25520"
Feb 16 08:52:11 amnesia kernel: audit: type=1400 audit(1487235131.128:6407133): apparmor="DENIED" operation="link" profile="icedove//gpg" name="/home/amnesia/.gnupg/gnupg_spawn_agent_sentinel.lock" pid=25520 comm="gpg2" requested_mask="l" denied_mask="l" fsuid=1000 ouid=1000 target="/home/amnesia/.gnupg/.#lk0x000055cc80cb0120.amnesia.25520"
Feb 16 08:52:11 amnesia kernel: audit: type=1400 audit(1487235131.128:6407134): apparmor="DENIED" operation="link" profile="icedove//gpg" name="/home/amnesia/.gnupg/gnupg_spawn_agent_sentinel.lock" pid=25520 comm="gpg2" requested_mask="l" denied_mask="l" fsuid=1000 ouid=1000 target="/home/amnesia/.gnupg/.#lk0x000055cc80cb0120.amnesia.25520"
Feb 16 08:52:11 amnesia kernel: audit: type=1400 audit(1487235131.128:6407135): apparmor="DENIED" operation="link" profile="icedove//gpg" name="/home/amnesia/.gnupg/gnupg_spawn_agent_sentinel.lock" pid=25520 comm="gpg2" requested_mask="l" denied_mask="l" fsuid=1000 ouid=1000 target="/home/amnesia/.gnupg/.#lk0x000055cc80cb0120.amnesia.25520"