lkml.org 
[lkml]   [2019]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] selinux: ensure the policy has been loaded before reading the sidtab stats
On Mon, Dec 23, 2019 at 6:01 PM Paul Moore <paul@paul-moore.com> wrote:
>
> 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>
> ---
> security/selinux/ss/services.c | 6 ++++++
> 1 file changed, 6 insertions(+)

Merged into selinux/next.

--
paul moore
www.paul-moore.com

\
 
 \ /
  Last update: 2019-12-24 00:04    [W:0.022 / U:1.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site