summaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2019-12-24 00:38:36 +0300
committerPaul Moore <paul@paul-moore.com>2019-12-24 00:38:36 +0300
commit15b590a81fcdd44ddcb4810f2a6334df8b6ca512 (patch)
tree02a5e1441d741d2629d391a63ec0c54d4c6a6ce7 /scripts/bpf_helpers_doc.py
parent030b995ad9ece9fa2d218af4429c1c78c2342096 (diff)
downloadlinux-15b590a81fcdd44ddcb4810f2a6334df8b6ca512.tar.xz
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: kernel test robot <lkp@intel.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions