aboutsummaryrefslogtreecommitdiff
path: root/contrib/texinfo
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2026-08-28 17:51:31 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2026-09-21 16:31:34 +0000
commit51234535ddd6ec0afe9dd4e3f34a31b92d5cdd78 (patch)
tree004ae824469936043f0cb5c361aa48f76fe0e9c2 /contrib/texinfo
parent8943d47938216bfe5e162aaf237f27de2e3ce659 (diff)
bhyveload: validate character disk devicesHEADmain
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