Re: [PATCH -next,v3 1/2] audit: fix possible null-pointer dereference in audit_filter_rules

From: Paul Moore
Date: Mon Oct 18 2021 - 18:29:12 EST


On Sat, Oct 16, 2021 at 3:21 AM Gaosheng Cui <cuigaosheng1@xxxxxxxxxx> wrote:
>
> Fix possible null-pointer dereference in audit_filter_rules.
>
> audit_filter_rules() error: we previously assumed 'ctx' could be null
>
> Fixes: bf361231c295 ("audit: add saddr_fam filter field")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>
> ---
> kernel/auditsc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Thank you for the patch; I added a stable tag and merged it into
audit/stable-5.15, I'll send it up to Linus later this week once it
has gone through some additional testing.

--
paul moore
www.paul-moore.com