android_kernel_samsung_msm8976/security/selinux/ss
Stephen Smalley b2c80e29e4 selinux: fix GPF on invalid policy
commit 5b0e7310a2a33c06edc7eb81ffc521af9b2c5610 upstream.

levdatum->level can be NULL if we encounter an error while loading
the policy during sens_read prior to initializing it.  Make sure
sens_destroy handles that case correctly.

Reported-by: syzbot+6664500f0f18f07a5c0e@syzkaller.appspotmail.com
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-27 21:53:36 +02:00
..
avtab.c selinux: Android kernel compatibility with M userspace 2016-04-12 00:10:23 -07:00
avtab.h selinux: extended permissions for ioctls 2016-04-12 00:09:14 -07:00
conditional.c UPSTREAM: selinux: fix bug in conditional rules handling 2016-04-12 00:11:06 -07:00
conditional.h selinux: extended permissions for ioctls 2016-04-12 00:09:14 -07:00
constraint.h
context.h
ebitmap.c
ebitmap.h
hashtab.c
hashtab.h
mls.c
mls.h
mls_types.h
policydb.c selinux: fix GPF on invalid policy 2019-07-27 21:53:36 +02:00
policydb.h
services.c selinux: KASAN: slab-out-of-bounds in xattr_getsecurity 2019-07-27 21:49:37 +02:00
services.h selinux: extended permissions for ioctls 2016-04-12 00:09:14 -07:00
sidtab.c
sidtab.h
status.c security: selinux: Partially remove samsung changes 2017-04-18 12:51:52 +02:00
symtab.c
symtab.h