]> git.baikalelectronics.ru Git - kernel.git/commit
audit: fix possible null-pointer dereference in audit_filter_rules
authorGaosheng Cui <cuigaosheng1@huawei.com>
Sat, 16 Oct 2021 07:23:50 +0000 (15:23 +0800)
committerPaul Moore <paul@paul-moore.com>
Mon, 18 Oct 2021 22:27:47 +0000 (18:27 -0400)
commit6e3ee990c90494561921c756481d0e2125d8b895
treea51a15f661eca61335799a2bc4b898a6720e454c
parent67d69e9d1a6c889d98951c1d74b19332ce0565af
audit: fix possible null-pointer dereference in audit_filter_rules

Fix  possible null-pointer dereference in audit_filter_rules.

audit_filter_rules() error: we previously assumed 'ctx' could be null

Cc: stable@vger.kernel.org
Fixes: bf361231c295 ("audit: add saddr_fam filter field")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c