svn commit: r336207 - stable/11/sys/security/audit

Alan Somers asomers at FreeBSD.org
Wed Jul 11 19:39:58 UTC 2018


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);


More information about the svn-src-stable mailing list