polkit uses a lot of cpu with hardened kernel, with non-hardened kernel no problem. useful information: https://paste.pound-python.org/show/EYDRILi7A9LMBoaXX6gI/ screenshot: http://imgur.com/sE8lVl2 perf report: https://paste.pound-python.org/show/6HPsU7IEg2EasgpedU1F/ Reproducible: Always
The pastes dont open for me. Can you attach them directly here? In general pastebins are not good cuz they expire and then coming back to the bug later makes no sense.
Hm the perf report one finally loaded. looks like a lot of time is spent mmap/munmapping stuff? Can you attach your kernel config too?
(In reply to Jason Zaman from comment #2) > Hm the perf report one finally loaded. looks like a lot of time is spent > mmap/munmapping stuff? Can you attach your kernel config too? I tried and they work all the links, for safety I still loaded on github logs that can be used (to tell the truth is not the same hardened kernel of when I opened the bugs I guess, but it's still the hardened kernel gentoo affected by the same problem) https://github.com/oscarandrea/gentooBUG/blob/master/logkernel.txt
Created attachment 463708 [details] polkitd strace
I got this problem too. Everything worked well before. After I upgraded system, included: hardened-sources: 4.8.15 -> 4.9.8 polkit: 0.113-r1 -> 0.113-r2 Polkit uses a lot of cpu. I attached strace, and kernel config. those lines keep spawning very fast. [pid 4344] 02:50:25.626126 munmap(0x3401259e000, 1048576) = 0 [pid 4344] 02:50:25.626148 mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3400ccd8000
Created attachment 463710 [details] kernel config
(In reply to Thanh from comment #5) > I got this problem too. Everything worked well before. After I upgraded > system, included: > hardened-sources: 4.8.15 -> 4.9.8 > polkit: 0.113-r1 -> 0.113-r2 > > Polkit uses a lot of cpu. I attached strace, and kernel config. > > those lines keep spawning very fast. > > [pid 4344] 02:50:25.626126 munmap(0x3401259e000, 1048576) = 0 > [pid 4344] 02:50:25.626148 mmap(NULL, 2097152, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3400ccd8000 thanks for answering, unfortunately it's been a long time since I've reported the bug, too, now I no longer have this problem, I do not know if it's because I disabled several options, or update the kernel, this is my new config, maybe someone can help https://paste.pound-python.org/show/g6KVH3b4LDcDRYle8hV3/
Created attachment 463712 [details] kernel config hardened (4.8.15) working