]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: make it so work buffers can be allocated from atomic context
authorJohn Johansen <john.johansen@canonical.com>
Sat, 14 Sep 2019 10:34:06 +0000 (03:34 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 23 Nov 2019 00:41:08 +0000 (16:41 -0800)
commit1ae502dcd016cd699f29817e873d15c3018f3ed9
treee5fbbd464835c19aec5fa16ce4bd325a4667fa05
parent845cdd5b0f6dda8e7ed8b465b4e8d46affcce0d1
apparmor: make it so work buffers can be allocated from atomic context

In some situations AppArmor needs to be able to use its work buffers
from atomic context. Add the ability to specify when in atomic context
and hold a set of work buffers in reserve for atomic context to
reduce the chance that a large work buffer allocation will need to
be done.

Fixes: 390b87ae0f0d ("apparmor: Use a memory pool instead per-CPU caches")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c
security/apparmor/file.c
security/apparmor/include/file.h
security/apparmor/include/path.h
security/apparmor/lsm.c
security/apparmor/mount.c