From 53ece2bea9ffa654aaa50e5ed66341160194179f Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 30 Jan 2025 12:45:04 +0200 Subject: [PATCH] audit(9): do not touch VFS if panicing Reported by: bz --- sys/security/audit/audit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index 269e62db454..8a9865bf233 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -396,7 +396,8 @@ SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL); void audit_shutdown(void *arg, int howto) { - + if (KERNEL_PANICED()) + return; audit_rotate_vnode(NULL, NULL); }