Date: Wed, 11 Jul 2018 19:39:57 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r336207 - stable/11/sys/security/audit Message-ID: <201807111939.w6BJdvvl002266@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Wed Jul 11 19:39:56 2018 New Revision: 336207 URL: https://svnweb.freebsd.org/changeset/base/336207 Log: MFC r334296: 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. Differential Revision: https://reviews.freebsd.org/D15381 Modified: stable/11/sys/security/audit/audit_bsm.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/security/audit/audit_bsm.c ============================================================================== --- stable/11/sys/security/audit/audit_bsm.c Wed Jul 11 19:39:29 2018 (r336206) +++ stable/11/sys/security/audit/audit_bsm.c Wed Jul 11 19:39:56 2018 (r336207) @@ -418,7 +418,6 @@ audit_sys_auditon(struct audit_record *ar, struct au_r break; case A_SETCLASS: - kau_write(rec, tok); tok = au_to_arg32(2, "setclass:ec_event", ar->ar_arg_auditon.au_evclass.ec_number); kau_write(rec, tok);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807111939.w6BJdvvl002266>