Date: Sat, 8 Feb 2025 00:38:09 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 3ba04b9f3102 - stable/14 - audit(9): do not touch VFS if panicing Message-ID: <202502080038.5180c9RI016588@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502080038.5180c9RI016588>