Comment 12 for bug 329489

Revision history for this message
Steve Beattie (sbeattie) wrote : Re: frequent fcntl()s leak memory in apparmor

It looks like the issue is the constructed pathname dealing with the deleted file; commenting out the unlink() call in the testcase causes no memory growth, in any of the modes (you do need to remember to manually delete the lockfile if it exists before each testrun).

(FYI, you can use slabtop to see the growth. I also limited the while loop locally to do 1000 iterations, which makes the leak visible, but doesn't cause the kernel to crash.)