Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Nov 2022 21:28:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255047] race bug with mount generating same fsid for different mount points
Message-ID:  <bug-255047-227-WPvVx0oppv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255047-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255047-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255047

--- Comment #2 from Olivier Cochard <olivier@freebsd.org> ---
Source of the problem in vfs_getnewfsid() in sys/kern/vfs_subr.c that has t=
his
comment:

  * Keep in mind that several mounts may be running in parallel.  Starting
  * the search one past where the previous search terminated is both a
  * micro-optimization and a defense against returning the same fsid to
  * different mounts.


This protection doesn't work here.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255047-227-WPvVx0oppv>