diff options
| author | Roman Bogorodskiy <novel@FreeBSD.org> | 2026-08-28 17:51:31 +0000 |
|---|---|---|
| committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2026-09-21 16:31:34 +0000 |
| commit | 51234535ddd6ec0afe9dd4e3f34a31b92d5cdd78 (patch) | |
| tree | 004ae824469936043f0cb5c361aa48f76fe0e9c2 /contrib/texinfo | |
| parent | 8943d47938216bfe5e162aaf237f27de2e3ce659 (diff) | |
Currently, bhyveload(8) does not validate the supplied disk
image path. For example, it allows passing the /dev/null
device, which later fails in userboot because it does not
support DIOCGSECTORSIZE and DIOCGMEDIASIZE ioctls (see
userdisk_init() in stand/userboot/userboot/userboot_disk.c).
Fix that by checking DIOCGSECTORSIZE and DIOCGMEDIASIZE ioctls early.
A similar check already exists in bhyve(8). While here, make
cb_diskioctl() report the obtained sector size instead of
hard-coding 512.
Reviewed by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59253
Diffstat (limited to 'contrib/texinfo')
0 files changed, 0 insertions, 0 deletions
