Date: Fri, 23 Jul 2021 14:49:55 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 90959dd1e50e - main - acct: Zero pad bytes in accounting records Message-ID: <202107231449.16NEntvs015374@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=90959dd1e50ee820e84bed4bc63fbed140298441 commit 90959dd1e50ee820e84bed4bc63fbed140298441 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-07-23 14:29:57 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-07-23 14:29:57 +0000 acct: Zero pad bytes in accounting records Reported by: KMSAN MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/kern/kern_acct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 4c1efada10da..ad272676083e 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -349,6 +349,8 @@ acct_process(struct thread *td) if (acct_vp == NULL || acct_suspended) return (0); + memset(&acct, 0, sizeof(acct)); + sx_slock(&acct_sx); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107231449.16NEntvs015374>