]> 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)
commit65eae11dc3b91a30444dc8a1f8142690c3ba55b5
treee5fbbd464835c19aec5fa16ce4bd325a4667fa05
parent65ef3c11e549677dcb313f25477eccdb43a4019c
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: 6b952d4592c6 ("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