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.)

-- 
operations on unlinked files leak memory in apparmor
https://bugs.launchpad.net/bugs/329489
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to