Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cf84a06a authored by Paul Moore's avatar Paul Moore Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: selinux: ensure the policy has been loaded before reading the sidtab stats



Check to make sure we have loaded a policy before we query the
sidtab's hash stats.  Failure to do so could result in a kernel
panic/oops due to a dereferenced NULL pointer.

Fixes: 66f8e2f03c02 ("selinux: sidtab reverse lookup hash table")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
(cherry picked from commit 15b590a81fcdd44ddcb4810f2a6334df8b6ca512)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I7e18ac17ee6c89d2a63caf02efcfb597f21f2c54
parent a3d2e129
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment