acct: Zero pad bytes in accounting records

Reported by:	KMSAN
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2021-07-23 10:29:57 -04:00
parent 5c18bf9d5f
commit 90959dd1e5

View File

@ -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);
/*