diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-11-17 08:42:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-11-17 08:42:05 -0500 |
commit | bf786e2a78d4d3cfc87469c3b31ade257df14fa0 (patch) | |
tree | 641bcf2440c7719d2dd88c25d6046d74d405b25a | |
parent | 7475e51b87969e01a6812eac713a1c8310372e8a (diff) | |
parent | 969d90ec212bae4b45bf9d21d7daa30aa6cf055e (diff) | |
download | lwn-bf786e2a78d4d3cfc87469c3b31ade257df14fa0.tar.gz lwn-bf786e2a78d4d3cfc87469c3b31ade257df14fa0.zip |
Merge tag 'audit-pr-20231116' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit
Pull audit fix from Paul Moore:
"One small audit patch to convert a WARN_ON_ONCE() into a normal
conditional to avoid scary looking console warnings when eBPF code
generates audit records from unexpected places"
* tag 'audit-pr-20231116' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare()
-rw-r--r-- | kernel/audit_watch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 91e82e34b51e..7a98cd176a12 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c @@ -531,7 +531,7 @@ int audit_exe_compare(struct task_struct *tsk, struct audit_fsnotify_mark *mark) if (tsk != current) return 0; - if (WARN_ON_ONCE(!current->mm)) + if (!current->mm) return 0; exe_file = get_mm_exe_file(current->mm); if (!exe_file) |