Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2021 00:33:15 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a67749ac451e - stable/13 - vfs: Initialize "lastfail" in vfs_mountroot_wait()
Message-ID:  <202107300033.16U0XFx0043620@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a67749ac451e1ca22bde3c2a63db9ec0e962aa21

commit a67749ac451e1ca22bde3c2a63db9ec0e962aa21
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-07-23 16:04:02 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-07-30 00:32:58 +0000

    vfs: Initialize "lastfail" in vfs_mountroot_wait()
    
    This variable is only used to rate-limit "Root mount waiting for: ..."
    messages using ppsratecheck().
    
    Reported by:    KMSAN
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 048cd371f3d793fa354f1d3a1d484bc2725a3fc1)
---
 sys/kern/vfs_mountroot.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
index 3b968fd19bbd..a34ae3fe06e3 100644
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -982,6 +982,7 @@ vfs_mountroot_wait(void)
 	TSENTER();
 
 	curfail = 0;
+	lastfail.tv_sec = 0;
 	while (1) {
 		g_waitidle();
 		mtx_lock(&root_holds_mtx);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107300033.16U0XFx0043620>