]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
SELinux: Reduce max avtab size to avoid page allocation failures
authorStephen Smalley <sds@tycho.nsa.gov>
Mon, 15 Mar 2010 14:42:11 +0000 (10:42 -0400)
committerJames Morris <jmorris@namei.org>
Wed, 14 Apr 2010 23:26:01 +0000 (09:26 +1000)
commit6c9ff1013b7a21099da838eeef7c3f23ee347957
tree38fb14055ae1dcae110f0f77a959d9584e2466a0
parent2ba3abd8186f24c7fb418927025b4e2120e3a362
SELinux: Reduce max avtab size to avoid page allocation failures

Reduce MAX_AVTAB_HASH_BITS so that the avtab allocation is an order 2
allocation rather than an order 4 allocation on x86_64.  This
addresses reports of page allocation failures:
http://marc.info/?l=selinux&m=126757230625867&w=2
https://bugzilla.redhat.com/show_bug.cgi?id=570433

Reported-by: Russell Coker <russell@coker.com.au>
Signed-off-by: Stephen D. Smalley <sds@tycho.nsa.gov>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/avtab.h