Page MenuHomeFreeBSD

Fix "Bad tailq" panic when auditing auditon(A_SETCLASS, ...)
ClosedPublic

Authored by asomers on May 10 2018, 3:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 28, 10:01 AM
Unknown Object (File)
Sat, May 17, 8:04 PM
Unknown Object (File)
Tue, May 13, 4:39 PM
Unknown Object (File)
Apr 20 2025, 11:10 PM
Unknown Object (File)
Apr 20 2025, 3:46 PM
Unknown Object (File)
Apr 14 2025, 8:58 AM
Unknown Object (File)
Apr 14 2025, 4:31 AM
Unknown Object (File)
Apr 13 2025, 9:45 PM
Subscribers

Details

Summary

Fix "Bad tailq" panic when auditing auditon(A_SETCLASS, ...)

Due to an oversight in r195280, auditon(A_SETCLASS, ...) would cause a tailq
element to get added to the tailq twice, resulting in a circular tailq. This
panics when INVARIANTS are on.

Test Plan

Open /dev/auditpipe, set the preselect mode to LOCAL, set the preselect flags
and naflags to include class ad, then start auditd. Some ATF tests in progress
do this (Phabricator D15286).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable