Re: [PATCH 1/2] audit: drop BUG_ON() from audit_add_to_parent()
Paul Moore <[email protected]> Tue, 28 Jul 2026 15:53:45 -0400
| Newsgroups | org.kernel.vger.audit,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Jul 28, 2026 Ricardo Robaina <[email protected]> wrote: > > The BUG_ON(!mutex_is_locked(&audit_filter_mutex)) check in > audit_add_to_parent() will panic the kernel if the mutex is not held, > which is too severe for this situation. > > Replace it with lockdep_assert_held(), instead. > > Signed-off-by: Ricardo Robaina <[email protected]> > --- > kernel/audit_watch.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Merged into audit/dev, thanks. -- paul-moore.com