diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-09-06 15:11:41 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-09-07 15:46:03 +0000 |
| commit | c63c77b3a5312dfd00f7749a07269119da886609 (patch) | |
| tree | 0b57ac7e5f36b6fab3d130fd3ab957e1a82dacc5 /source/compiler/dtutils.c | |
| parent | a7258157e1a20957af23332814197ea723f5778d (diff) | |
Since the vp_crossmp vnode can leak into vn_vptocnp() calls due to
nullfs file mounting, not all lock requests are non-sleeping. The
requirement for the crossmp locking is that all lock requests should be
shared. Then, it does not matter if the requests allow sleeping, since
all locks are shared.
Also, check the lock type by correctly masking it with LK_TYPE_MASK.
Reported and tested by: pho
Reviewed by: jah, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D59468
Diffstat (limited to 'source/compiler/dtutils.c')
0 files changed, 0 insertions, 0 deletions
