Skip to content
Snippets Groups Projects
Commit 6b0ce09e authored by Paul Moore's avatar Paul Moore Committed by Frieder Schrempf
Browse files

audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare()


commit 969d90ec upstream.

eBPF can end up calling into the audit code from some odd places, and
some of these places don't have @current set properly so we end up
tripping the `WARN_ON_ONCE(!current->mm)` near the top of
`audit_exe_compare()`.  While the basic `!current->mm` check is good,
the `WARN_ON_ONCE()` results in some scary console messages so let's
drop that and just do the regular `!current->mm` check to avoid
problems.

Cc: <stable@vger.kernel.org>
Fixes: 47846d51 ("audit: don't take task_lock() in audit_exe_compare() code path")
Reported-by: default avatarArtem Savkov <asavkov@redhat.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f34af8e3
No related branches found
No related tags found
1 merge request!119🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.66)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment