apparmor_parser profile replace speed issues in 4.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
Environment: stock Ubuntu 16.04 with apache 2.4 with apparmor/
Starting around 4.4.0-59 and continuing into 4.4.0-66, we are seeing apparmor_parser threads spin on writing to sysfs for long periods of time when updating profiles - hours/days in some cases. We have observed a positive correlation between this failure and busy apache workers, usually with one such worker in a defunct/zombie state. Unfortunately, this load has proven difficult to profile so I am unable to provide reliable steps to reproduce.
apparmor_parser stack:
[<ffffffff8138d
[<ffffffff81381
[<ffffffff81381
[<ffffffff8120e
[<ffffffff8120e
[<ffffffff8120f
[<ffffffff8183c
[<fffffffffffff
I'm also attaching some parser strace output that shows 20 writes making it to .replace in about an hour's time.
tags: | added: aa-kernel |
Curious if https:/ /launchpad. net/ubuntu/ +source/ linux/4. 4.0-67. 88 or https:/ /launchpad. net/ubuntu/ +source/ linux/4. 4.0-69. 90 resolves the issue for you? IIRC, I was seeing some slowness that looked like hangs in the 4.10 kernel until the patches in 67 and 69 were in there. Note: https:/ /launchpad. net/ubuntu/ +source/ linux/4. 4.0-70. 91 reverted these patches for unrelated reasons.