git: 3ba04b9f3102 - stable/14 - audit(9): do not touch VFS if panicing
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Feb 2025 00:38:09 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=3ba04b9f31026976f06fe84e95839288698df944
commit 3ba04b9f31026976f06fe84e95839288698df944
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-01-30 10:45:04 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-02-08 00:26:56 +0000
audit(9): do not touch VFS if panicing
(cherry picked from commit 53ece2bea9ffa654aaa50e5ed66341160194179f)
---
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 cb6052de3ed1..6a9730571607 100644
--- a/sys/security/audit/audit.c
+++ b/sys/security/audit/audit.c
@@ -397,7 +397,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);
}