Skip to content

Commit bf786e2

Browse files
committed
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()
2 parents 7475e51 + 969d90e commit bf786e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/audit_watch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ int audit_exe_compare(struct task_struct *tsk, struct audit_fsnotify_mark *mark)
531531
if (tsk != current)
532532
return 0;
533533

534-
if (WARN_ON_ONCE(!current->mm))
534+
if (!current->mm)
535535
return 0;
536536
exe_file = get_mm_exe_file(current->mm);
537537
if (!exe_file)

0 commit comments

Comments
 (0)