Date: Tue, 10 Jul 2018 21:57:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 228444] "exa-0.8.0" panics the kernel while auditd(8) is running and audit_mask is set as "pc" Message-ID: <bug-228444-227-TZngLqNCYK@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-228444-227@https.bugs.freebsd.org/bugzilla/> References: <bug-228444-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228444 Alan Somers <asomers@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |asomers@FreeBSD.org Status|New |Open --- Comment #3 from Alan Somers <asomers@FreeBSD.org> --- I reproduced this bug in a different way. Simply doing a kernel build while "pc" is in the audit mask and auditd is running will do it. I also found t= he root cause: 1) kern_thr_exit locks the process's spin lock with PROC_SLOCK(p) 2) thread_exit() calls AUDIT_SYSCALL_EXIT while the spin lock is still held 3) a few stack frames later, au_event_class tries to lock a rwlock with EVCLASS_RLOCK. However, witness forbids grabbing an rwlock while holding a spin lock. The likeliest solution is to fix thread_exit so that AUDIT_SYSCALL_EXIT isn= 't called with the spin lock held. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228444-227-TZngLqNCYK>