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)
commit341c1fda5e17156619fb71acfc7082b2669b4b72
treee5fbbd464835c19aec5fa16ce4bd325a4667fa05
parentbce4e7e9c45ef97ac1e30b9cb4adc25b5b5a7cfa
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: df323337e507 ("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