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
F167744604: D15381.id42368.diff
Mon, Aug 24, 5:36 AM
Unknown Object (File)
Sat, Aug 22, 7:35 AM
Unknown Object (File)
Fri, Aug 21, 3:53 PM
Unknown Object (File)
Fri, Aug 21, 3:33 PM
Unknown Object (File)
Thu, Aug 20, 8:35 PM
Unknown Object (File)
Thu, Aug 20, 6:20 PM
Unknown Object (File)
Thu, Aug 20, 1:20 PM
Unknown Object (File)
Thu, Aug 20, 6:49 AM
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