diff options
author | Paul Moore <[email protected]> | 2023-11-14 17:25:48 -0500 |
---|---|---|
committer | Paul Moore <[email protected]> | 2023-11-14 17:34:27 -0500 |
commit | 969d90ec212bae4b45bf9d21d7daa30aa6cf055e (patch) | |
tree | 7c5b2531c906db34ca62827b5e286c227eb6720d /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare()
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: <[email protected]>
Fixes: 47846d51348d ("audit: don't take task_lock() in audit_exe_compare() code path")
Reported-by: Artem Savkov <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions