Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Nov 2021 21:16:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 260081] bhyve: capsicum preventing blockif hole-punching detection
Message-ID:  <bug-260081-27103@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 260081
           Summary: bhyve: capsicum preventing blockif hole-punching
                    detection
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: chuck@FreeBSD.org

Formatting a file-backed NVMe device in bhyve fails because the
blockif_candelete function returns FALSE on kernel which supports
hole-punching:

# uname -mrsvK
FreeBSD 14.0-CURRENT FreeBSD 14.0-CURRENT main-81b22a9892 GENERIC  amd64
1400041

This appears to happen because the cap_right_init(3) call does not allow the
use of fpathconf(2). The attached patch which adds the CAP_FPATHCONF right
fixes this.

--=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-260081-27103>