linux/security
Paul Moore cf84a06a47 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: 66f8e2f03c ("selinux: sidtab reverse lookup hash table")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
(cherry picked from commit 15b590a81f)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7e18ac17ee6c89d2a63caf02efcfb597f21f2c54
2020-11-16 09:22:34 +01:00
..
apparmor apparmor: ensure that dfa state tables have entries 2020-07-22 09:32:06 +02:00
integrity evm: Check size of security.evm before using it 2020-11-05 11:08:34 +01:00
keys This is the 4.19.129 stable release 2020-06-22 10:50:54 +02:00
loadpin module: replace the existing LSM hook in init_module 2018-07-16 12:31:57 -07:00
selinux UPSTREAM: selinux: ensure the policy has been loaded before reading the sidtab stats 2020-11-16 09:22:34 +01:00
smack Smack: prevent underflow in smk_set_cipso() 2020-08-19 08:14:59 +02:00
tomoyo tomoyo: Use atomic_t for statistics counter 2020-02-05 14:43:38 +00:00
yama Yama: Check for pid death before checking ancestry 2019-01-22 21:40:32 +01:00
commoncap.c exec: Always set cap_ambient in cap_bprm_set_creds 2020-06-03 08:19:38 +02:00
device_cgroup.c device_cgroup: fix RCU imbalance in error case 2019-04-27 09:36:40 +02:00
inode.c Revert "ANDROID: vfs: Add permission2 for filesystems with per mount permissions" 2020-06-27 15:17:42 +02:00
Kconfig Revert "ANDROID: security,perf: Allow further restriction of perf_event_open" 2020-01-23 22:02:46 +00:00
Kconfig.hardening UPSTREAM: security: allow using Clang's zero initialization for stack variables 2020-09-02 18:53:22 +02:00
lsm_audit.c missing barriers in some of unix_sock ->addr and ->path accesses 2019-03-19 13:12:41 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
min_addr.c ANDROID: GKI: security: Add mmap export symbols for modules 2020-04-13 16:30:04 -07:00
security.c Revert "ANDROID: sdcardfs: Enable modular sdcardfs" 2020-06-27 15:17:45 +02:00